115 lines
2.4 KiB
Java
115 lines
2.4 KiB
Java
|
|
package it.acxent.banner;
|
||
|
|
|
||
|
|
import it.acxent.db.ApplParmFull;
|
||
|
|
import it.acxent.db.DBAdapter;
|
||
|
|
import it.acxent.db.ResParm;
|
||
|
|
import java.io.Serializable;
|
||
|
|
import java.sql.Timestamp;
|
||
|
|
|
||
|
|
public class BannerStats extends DBAdapter implements Serializable {
|
||
|
|
private static final long serialVersionUID = 6419058127916391758L;
|
||
|
|
|
||
|
|
private long id_bannerStats;
|
||
|
|
|
||
|
|
private Timestamp dataTimestamp;
|
||
|
|
|
||
|
|
private String entryPoint;
|
||
|
|
|
||
|
|
private String nazione;
|
||
|
|
|
||
|
|
private String ipAddress;
|
||
|
|
|
||
|
|
private long flgI_CT;
|
||
|
|
|
||
|
|
public static final long FLG_IMPRESSION = 0L;
|
||
|
|
|
||
|
|
public static final long FLG_CLICK_THROUGH = 1L;
|
||
|
|
|
||
|
|
private Banner banner;
|
||
|
|
|
||
|
|
private long id_banner;
|
||
|
|
|
||
|
|
public BannerStats(ApplParmFull newApplParmFull) {
|
||
|
|
super(newApplParmFull);
|
||
|
|
}
|
||
|
|
|
||
|
|
public BannerStats() {
|
||
|
|
initFields();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_bannerStats(long newId_stats) {
|
||
|
|
this.id_bannerStats = newId_stats;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDataTimestamp(Timestamp newDataTimestamp) {
|
||
|
|
this.dataTimestamp = newDataTimestamp;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEntryPoint(String newEntryPoint) {
|
||
|
|
this.entryPoint = newEntryPoint;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setNazione(String newNazione) {
|
||
|
|
this.nazione = newNazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setIpAddress(String newIp) {
|
||
|
|
this.ipAddress = newIp;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId_banner(long newId_banner) {
|
||
|
|
this.id_banner = newId_banner;
|
||
|
|
setBanner(null);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_bannerStats() {
|
||
|
|
return this.id_bannerStats;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Timestamp getDataTimestamp() {
|
||
|
|
return this.dataTimestamp;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getEntryPoint() {
|
||
|
|
return (this.entryPoint == null) ? "" :
|
||
|
|
this.entryPoint;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getNazione() {
|
||
|
|
return (this.nazione == null) ? "" :
|
||
|
|
this.nazione;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getIpAddress() {
|
||
|
|
return (this.ipAddress == null) ? "" :
|
||
|
|
this.ipAddress;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getId_banner() {
|
||
|
|
return this.id_banner;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected ResParm checkDeleteCascade() {
|
||
|
|
return new ResParm(true);
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void deleteCascade() {}
|
||
|
|
|
||
|
|
public void setBanner(Banner newBanner) {
|
||
|
|
this.banner = newBanner;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Banner getBanner() {
|
||
|
|
this.banner = (Banner)getSecondaryObject(this.banner, Banner.class,
|
||
|
|
getId_banner());
|
||
|
|
return this.banner;
|
||
|
|
}
|
||
|
|
|
||
|
|
public long getFlgI_CT() {
|
||
|
|
return this.flgI_CT;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFlgI_CT(long flgICT) {
|
||
|
|
this.flgI_CT = flgICT;
|
||
|
|
}
|
||
|
|
}
|