152 lines
3.3 KiB
Java
152 lines
3.3 KiB
Java
package it.acxent.pg;
|
|
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.CRAdapter;
|
|
import java.sql.Date;
|
|
|
|
public class GaraCR extends CRAdapter {
|
|
private long id_gara;
|
|
|
|
private long id_tipoGara;
|
|
|
|
private String descrizione;
|
|
|
|
private String localita;
|
|
|
|
private Date dataGaraInizioDa;
|
|
|
|
private String pathBase;
|
|
|
|
private String imgTmst;
|
|
|
|
private TipoGara tipoGara;
|
|
|
|
private Date dataGaraInizioA;
|
|
|
|
private long anno;
|
|
|
|
private long flgEventoInLinea = -1L;
|
|
|
|
private String descrizioneGara;
|
|
|
|
public GaraCR(ApplParmFull newApplParmFull) {
|
|
super(newApplParmFull);
|
|
}
|
|
|
|
public GaraCR() {}
|
|
|
|
public void setId_gara(long newId_gara) {
|
|
this.id_gara = newId_gara;
|
|
}
|
|
|
|
public void setId_tipoGara(long newId_tipoGara) {
|
|
this.id_tipoGara = newId_tipoGara;
|
|
setTipoGara(null);
|
|
}
|
|
|
|
public void setDescrizione(String newDescrizione) {
|
|
this.descrizione = newDescrizione;
|
|
}
|
|
|
|
public void setLocalita(String newLocalita) {
|
|
this.localita = newLocalita;
|
|
}
|
|
|
|
public void setDataGaraInizioA(Date newDataGaraInizio) {
|
|
this.dataGaraInizioA = newDataGaraInizio;
|
|
}
|
|
|
|
public void setPathBase(String newPathBase) {
|
|
this.pathBase = newPathBase;
|
|
}
|
|
|
|
public void setImgTmst(String newImgTmst) {
|
|
this.imgTmst = newImgTmst;
|
|
}
|
|
|
|
public long getId_gara() {
|
|
return this.id_gara;
|
|
}
|
|
|
|
public long getId_tipoGara() {
|
|
return this.id_tipoGara;
|
|
}
|
|
|
|
public String getDescrizione() {
|
|
return (this.descrizione == null) ? "" : this.descrizione.trim();
|
|
}
|
|
|
|
public String getLocalita() {
|
|
return (this.localita == null) ? "" : this.localita.trim();
|
|
}
|
|
|
|
public Date getDataGaraInizioA() {
|
|
return this.dataGaraInizioA;
|
|
}
|
|
|
|
public String getPathBase() {
|
|
return (this.pathBase == null) ? "" : this.pathBase.trim();
|
|
}
|
|
|
|
public String getImgTmst() {
|
|
return (this.imgTmst == null) ? "" : this.imgTmst.trim();
|
|
}
|
|
|
|
public void setTipoGara(TipoGara newTipoGara) {
|
|
this.tipoGara = newTipoGara;
|
|
}
|
|
|
|
public TipoGara getTipoGara() {
|
|
this.tipoGara = (TipoGara)getSecondaryObject(this.tipoGara, TipoGara.class, getId_tipoGara());
|
|
return this.tipoGara;
|
|
}
|
|
|
|
public Date getDataGaraInizioDa() {
|
|
return this.dataGaraInizioDa;
|
|
}
|
|
|
|
public void setDataGaraInizioDa(Date dataGaraInizioDa) {
|
|
this.dataGaraInizioDa = dataGaraInizioDa;
|
|
}
|
|
|
|
public long getAnno() {
|
|
return this.anno;
|
|
}
|
|
|
|
public void setAnno(long anno) {
|
|
this.anno = anno;
|
|
}
|
|
|
|
public long getFlgEventoInLinea() {
|
|
return this.flgEventoInLinea;
|
|
}
|
|
|
|
public void setFlgEventoInLinea(long flgEventoInLinea) {
|
|
this.flgEventoInLinea = flgEventoInLinea;
|
|
}
|
|
|
|
public static final String getEventoInLinea(long l_flgEventoInLinea) {
|
|
return Gara.getEventoInLinea(l_flgEventoInLinea);
|
|
}
|
|
|
|
public String getEventoInLinea() {
|
|
return Gara.getEventoInLinea(getFlgEventoInLinea());
|
|
}
|
|
|
|
public String getDescrizioneGara() {
|
|
return (this.descrizioneGara == null) ? "" : this.descrizioneGara.trim();
|
|
}
|
|
|
|
public void setDescrizioneGara(String descrizioneGara) {
|
|
this.descrizioneGara = descrizioneGara;
|
|
}
|
|
|
|
public boolean isModGara() {
|
|
if (getApFull() == null)
|
|
return false;
|
|
long mg = getParm("MODGARA").getNumeroLong();
|
|
if (mg > 0L)
|
|
return true;
|
|
return false;
|
|
}
|
|
}
|