109 lines
2.1 KiB
Java
109 lines
2.1 KiB
Java
package it.acxent.news;
|
|
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.CRAdapter;
|
|
import java.sql.Date;
|
|
|
|
public class NewsCR extends CRAdapter {
|
|
public static final long ORDER_BY_DATA_ASC = 0L;
|
|
|
|
public static final long ORDER_BY_DATA_DESC = 1L;
|
|
|
|
private String titolo;
|
|
|
|
private long flgVisibile = -1L;
|
|
|
|
private Date dataNews;
|
|
|
|
private Date dataFine;
|
|
|
|
private long flgTipo;
|
|
|
|
private long id_news;
|
|
|
|
private long flgPubblica;
|
|
|
|
private long id_tipoNews;
|
|
|
|
private TipoNews tipoNews;
|
|
|
|
public NewsCR() {}
|
|
|
|
public NewsCR(ApplParmFull newAp) {
|
|
super(newAp);
|
|
}
|
|
|
|
public Date getDataNews() {
|
|
return this.dataNews;
|
|
}
|
|
|
|
public String getTitolo() {
|
|
return (this.titolo == null) ? "" : this.titolo;
|
|
}
|
|
|
|
public void setDataNews(Date newData) {
|
|
this.dataNews = newData;
|
|
}
|
|
|
|
public void setTitolo(String newTitolo) {
|
|
this.titolo = newTitolo;
|
|
}
|
|
|
|
public long getFlgTipo() {
|
|
return this.flgTipo;
|
|
}
|
|
|
|
public void setFlgTipo(long flgTipo) {
|
|
this.flgTipo = flgTipo;
|
|
}
|
|
|
|
public void setFlgVisibile(long flgVisibile) {
|
|
this.flgVisibile = flgVisibile;
|
|
}
|
|
|
|
public long getFlgVisibile() {
|
|
return this.flgVisibile;
|
|
}
|
|
|
|
public long getId_news() {
|
|
return this.id_news;
|
|
}
|
|
|
|
public void setId_news(long id_news) {
|
|
this.id_news = id_news;
|
|
}
|
|
|
|
public long getFlgPubblica() {
|
|
return this.flgPubblica;
|
|
}
|
|
|
|
public void setFlgPubblica(long flgPubblica) {
|
|
this.flgPubblica = flgPubblica;
|
|
}
|
|
|
|
public long getId_tipoNews() {
|
|
return this.id_tipoNews;
|
|
}
|
|
|
|
public TipoNews getTipoNews() {
|
|
this.tipoNews = (TipoNews)getSecondaryObject(this.tipoNews, TipoNews.class, getId_tipoNews());
|
|
return this.tipoNews;
|
|
}
|
|
|
|
public void setId_tipoNews(long id_tipoNews) {
|
|
this.id_tipoNews = id_tipoNews;
|
|
setTipoNews(null);
|
|
}
|
|
|
|
public void setTipoNews(TipoNews newTipoNews) {
|
|
this.tipoNews = newTipoNews;
|
|
}
|
|
|
|
public Date getDataFine() {
|
|
return this.dataFine;
|
|
}
|
|
|
|
public void setDataFine(Date dataFine) {
|
|
this.dataFine = dataFine;
|
|
}
|
|
}
|