package it.acxent.news; import it.acxent.db.ApplParmFull; import it.acxent.db.CRAdapter; public class AllegatoNewsCR extends CRAdapter { private long id_allegatoNews; private long id_news; private String nomeFile; private News news; public AllegatoNewsCR(ApplParmFull newApplParmFull) { super(newApplParmFull); } public AllegatoNewsCR() {} public void setId_allegatoNews(long newId_allegato) { this.id_allegatoNews = newId_allegato; } public void setId_news(long newId_news) { this.id_news = newId_news; setNews(null); } public void setNomeFile(String newNomeFile) { this.nomeFile = newNomeFile; } public long getId_allegatoNews() { return this.id_allegatoNews; } public long getId_news() { return this.id_news; } public String getNomeFile() { return (this.nomeFile == null) ? "" : this.nomeFile; } public void setNews(News newNews) { this.news = newNews; } public News getNews() { this.news = (News)getSecondaryObject(this.news, News.class, getId_news()); return this.news; } }