435 lines
8.9 KiB
Java
435 lines
8.9 KiB
Java
package it.acxent.pg;
|
|
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.CRAdapter;
|
|
import java.sql.Date;
|
|
|
|
public class FotoCR extends CRAdapter {
|
|
private static final long serialVersionUID = -8282013621414045440L;
|
|
|
|
private long flgTipoEvento;
|
|
|
|
private long id_foto;
|
|
|
|
private String file;
|
|
|
|
private Date dataUltimaVisual;
|
|
|
|
private Gara gara;
|
|
|
|
private long id_gara;
|
|
|
|
private long id_puntoFoto;
|
|
|
|
private PuntoFoto puntoFoto;
|
|
|
|
private long anno;
|
|
|
|
private Date dataGaraInizio;
|
|
|
|
private Date dataGaraInizioDa;
|
|
|
|
private long id_tipoGara;
|
|
|
|
private TipoGara tipoGara;
|
|
|
|
private String tipoPuntoFoto;
|
|
|
|
private long flgEventoInLinea = -1L;
|
|
|
|
private Date dataGaraInizioFE;
|
|
|
|
private Date dataGaraInizioFS;
|
|
|
|
private long id_tipoGaraFE;
|
|
|
|
private long id_tipoGaraFS;
|
|
|
|
private Date dataGaraInizioA;
|
|
|
|
private String localita;
|
|
|
|
private String localitaFE;
|
|
|
|
private String localitaFS;
|
|
|
|
private long flgMese;
|
|
|
|
private long annoFS;
|
|
|
|
private long annoFE;
|
|
|
|
private long flgMeseFS;
|
|
|
|
private long flgMeseFE;
|
|
|
|
private long pageNumberFE = 1L;
|
|
|
|
private long pageNumberFS = 1L;
|
|
|
|
private long flgVisCompatta;
|
|
|
|
private String flgVisCompattaS;
|
|
|
|
private String pettorale;
|
|
|
|
private long flgTh;
|
|
|
|
private long id_fotoS;
|
|
|
|
private long flgConPettorali = -1L;
|
|
|
|
public FotoCR(ApplParmFull newApplParmFull) {
|
|
super(newApplParmFull);
|
|
}
|
|
|
|
public FotoCR() {}
|
|
|
|
public void setId_foto(long newId_foto) {
|
|
this.id_foto = newId_foto;
|
|
}
|
|
|
|
public void setFile(String newFile) {
|
|
this.file = newFile;
|
|
}
|
|
|
|
public void setDataUltimaVisual(Date newDataUltimaVisual) {
|
|
this.dataUltimaVisual = newDataUltimaVisual;
|
|
}
|
|
|
|
public long getId_foto() {
|
|
return this.id_foto;
|
|
}
|
|
|
|
public String getFile() {
|
|
return (this.file == null) ? "" : this.file.trim();
|
|
}
|
|
|
|
public Date getDataUltimaVisual() {
|
|
return this.dataUltimaVisual;
|
|
}
|
|
|
|
public Gara getGara() {
|
|
this.gara = (Gara)getSecondaryObject(this.gara, Gara.class, getId_gara());
|
|
return this.gara;
|
|
}
|
|
|
|
public long getId_gara() {
|
|
return this.id_gara;
|
|
}
|
|
|
|
public long getId_puntoFoto() {
|
|
return this.id_puntoFoto;
|
|
}
|
|
|
|
public PuntoFoto getPuntoFoto() {
|
|
this.puntoFoto = (PuntoFoto)getSecondaryObject(this.puntoFoto, PuntoFoto.class, getId_puntoFoto());
|
|
return this.puntoFoto;
|
|
}
|
|
|
|
public void setGara(Gara newGara) {
|
|
this.gara = newGara;
|
|
}
|
|
|
|
public void setId_gara(long newId_gara) {
|
|
this.id_gara = newId_gara;
|
|
setGara(null);
|
|
}
|
|
|
|
public void setId_puntoFoto(long newId_puntoFoto) {
|
|
this.id_puntoFoto = newId_puntoFoto;
|
|
setPuntoFoto(null);
|
|
}
|
|
|
|
public void setPuntoFoto(PuntoFoto newPuntoFoto) {
|
|
this.puntoFoto = newPuntoFoto;
|
|
}
|
|
|
|
public static final String getEventoInLinea(long l_flgEventoInLinea) {
|
|
return Gara.getEventoInLinea(l_flgEventoInLinea);
|
|
}
|
|
|
|
public long getAnno() {
|
|
return this.anno;
|
|
}
|
|
|
|
public void setAnno(long anno) {
|
|
this.anno = anno;
|
|
}
|
|
|
|
public Date getDataGaraInizioA() {
|
|
return this.dataGaraInizioA;
|
|
}
|
|
|
|
public void setDataGaraInizioA(Date dataGaraInizioA) {
|
|
this.dataGaraInizioA = dataGaraInizioA;
|
|
}
|
|
|
|
public Date getDataGaraInizioDa() {
|
|
return this.dataGaraInizioDa;
|
|
}
|
|
|
|
public void setDataGaraInizioDa(Date dataGaraInizioDa) {
|
|
this.dataGaraInizioDa = dataGaraInizioDa;
|
|
}
|
|
|
|
public long getId_tipoGara() {
|
|
return this.id_tipoGara;
|
|
}
|
|
|
|
public TipoGara getTipoGara() {
|
|
this.tipoGara = (TipoGara)getSecondaryObject(this.tipoGara, TipoGara.class, getId_tipoGara());
|
|
return this.tipoGara;
|
|
}
|
|
|
|
public void setId_tipoGara(long newId_tipoGara) {
|
|
this.id_tipoGara = newId_tipoGara;
|
|
setTipoGara(null);
|
|
}
|
|
|
|
public void setTipoGara(TipoGara newTipoGara) {
|
|
this.tipoGara = newTipoGara;
|
|
}
|
|
|
|
public String getTipoPuntoFoto() {
|
|
return (this.tipoPuntoFoto == null) ? AB_EMPTY_STRING : this.tipoPuntoFoto.trim();
|
|
}
|
|
|
|
public void setTipoPuntoFoto(String tipoPuntoFoto) {
|
|
this.tipoPuntoFoto = tipoPuntoFoto;
|
|
}
|
|
|
|
public long getFlgEventoInLinea() {
|
|
return this.flgEventoInLinea;
|
|
}
|
|
|
|
public void setFlgEventoInLinea(long flgEventoInLinea) {
|
|
this.flgEventoInLinea = flgEventoInLinea;
|
|
}
|
|
|
|
public Date getDataGaraInizioFE() {
|
|
return this.dataGaraInizioFE;
|
|
}
|
|
|
|
public Date getDataGaraInizioFS() {
|
|
return this.dataGaraInizioFS;
|
|
}
|
|
|
|
public long getId_tipoGaraFE() {
|
|
return this.id_tipoGaraFE;
|
|
}
|
|
|
|
public long getId_tipoGaraFS() {
|
|
return this.id_tipoGaraFS;
|
|
}
|
|
|
|
public void setDataGaraInizioFE(Date dataGaraInizioFE) {
|
|
this.dataGaraInizioFE = dataGaraInizioFE;
|
|
}
|
|
|
|
public void setDataGaraInizioFS(Date dataGaraInizioFS) {
|
|
this.dataGaraInizioFS = dataGaraInizioFS;
|
|
}
|
|
|
|
public void setId_tipoGaraFE(long id_tipoGaraFE) {
|
|
this.id_tipoGaraFE = id_tipoGaraFE;
|
|
}
|
|
|
|
public void setId_tipoGaraFS(long id_tipoGaraFS) {
|
|
this.id_tipoGaraFS = id_tipoGaraFS;
|
|
}
|
|
|
|
public Date getDataGaraInizio() {
|
|
return this.dataGaraInizio;
|
|
}
|
|
|
|
public void setDataGaraInizio(Date dataGaraInizio) {
|
|
this.dataGaraInizio = dataGaraInizio;
|
|
}
|
|
|
|
public String getLocalita() {
|
|
return (this.localita == null) ? AB_EMPTY_STRING : this.localita.trim();
|
|
}
|
|
|
|
public void setLocalita(String localita) {
|
|
this.localita = localita;
|
|
}
|
|
|
|
public String getLocalitaFE() {
|
|
return (this.localitaFE == null) ? AB_EMPTY_STRING : this.localitaFE.trim();
|
|
}
|
|
|
|
public void setLocalitaFE(String localitaFE) {
|
|
this.localitaFE = localitaFE;
|
|
}
|
|
|
|
public String getLocalitaFS() {
|
|
return (this.localitaFS == null) ? AB_EMPTY_STRING : this.localitaFS.trim();
|
|
}
|
|
|
|
public void setLocalitaFS(String localitaFS) {
|
|
this.localitaFS = localitaFS;
|
|
}
|
|
|
|
public static final String getMese(long l_flgMese) {
|
|
switch ((int)l_flgMese) {
|
|
case 1:
|
|
return "Gennaio";
|
|
case 2:
|
|
return "Febbraio";
|
|
case 3:
|
|
return "Marzo";
|
|
case 4:
|
|
return "Aprile";
|
|
case 5:
|
|
return "Maggio";
|
|
case 6:
|
|
return "Giugno";
|
|
case 7:
|
|
return "Luglio";
|
|
case 8:
|
|
return "Agosto";
|
|
case 9:
|
|
return "Settembre";
|
|
case 10:
|
|
return "Ottobre";
|
|
case 11:
|
|
return "Novembre";
|
|
case 12:
|
|
return "Dicembre";
|
|
}
|
|
return "Seleziona Mese";
|
|
}
|
|
|
|
public static final String getMeseFE(long l_flgMese) {
|
|
return getMese(l_flgMese);
|
|
}
|
|
|
|
public String getMese() {
|
|
return getMese(getFlgMese());
|
|
}
|
|
|
|
public void setFlgMese(long mese) {
|
|
this.flgMese = mese;
|
|
}
|
|
|
|
public long getFlgMese() {
|
|
return this.flgMese;
|
|
}
|
|
|
|
public long getAnnoFS() {
|
|
return this.annoFS;
|
|
}
|
|
|
|
public void setAnnoFS(long annoFS) {
|
|
this.annoFS = annoFS;
|
|
}
|
|
|
|
public long getAnnoFE() {
|
|
return this.annoFE;
|
|
}
|
|
|
|
public void setAnnoFE(long annoFE) {
|
|
this.annoFE = annoFE;
|
|
}
|
|
|
|
public long getFlgMeseFS() {
|
|
return this.flgMeseFS;
|
|
}
|
|
|
|
public void setFlgMeseFS(long flgMeseFS) {
|
|
this.flgMeseFS = flgMeseFS;
|
|
}
|
|
|
|
public long getFlgMeseFE() {
|
|
return this.flgMeseFE;
|
|
}
|
|
|
|
public void setFlgMeseFE(long flgMeseFE) {
|
|
this.flgMeseFE = flgMeseFE;
|
|
}
|
|
|
|
public String getMeseFS() {
|
|
return getMese(getFlgMese());
|
|
}
|
|
|
|
public String getMeseFE() {
|
|
return getMese(getFlgMese());
|
|
}
|
|
|
|
public long getPageNumberFE() {
|
|
return this.pageNumberFE;
|
|
}
|
|
|
|
public long getPageNumberFS() {
|
|
return this.pageNumberFS;
|
|
}
|
|
|
|
public void setPageNumberFE(long pageNumberFE) {
|
|
this.pageNumberFE = pageNumberFE;
|
|
}
|
|
|
|
public void setPageNumberFS(long pageNumberFS) {
|
|
this.pageNumberFS = pageNumberFS;
|
|
}
|
|
|
|
public static final String getMeseFS(long l_flgMese) {
|
|
return getMese(l_flgMese);
|
|
}
|
|
|
|
public long getFlgTipoEvento() {
|
|
return this.flgTipoEvento;
|
|
}
|
|
|
|
public void setFlgTipoEvento(long flgTipoEvento) {
|
|
this.flgTipoEvento = flgTipoEvento;
|
|
}
|
|
|
|
public long getFlgVisCompatta() {
|
|
return this.flgVisCompatta;
|
|
}
|
|
|
|
public void setFlgVisCompatta(long flgVisCompatta) {
|
|
this.flgVisCompatta = flgVisCompatta;
|
|
}
|
|
|
|
public String getFlgVisCompattaS() {
|
|
return (this.flgVisCompattaS == null) ? AB_EMPTY_STRING : this.flgVisCompattaS;
|
|
}
|
|
|
|
public void setFlgVisCompattaS(String flgVisCompattaS) {
|
|
this.flgVisCompattaS = flgVisCompattaS;
|
|
}
|
|
|
|
public String getPettorale() {
|
|
return (this.pettorale == null) ? AB_EMPTY_STRING : this.pettorale.trim();
|
|
}
|
|
|
|
public void setPettorale(String pettorale) {
|
|
this.pettorale = pettorale;
|
|
}
|
|
|
|
public long getFlgTh() {
|
|
return this.flgTh;
|
|
}
|
|
|
|
public void setFlgTh(long flgTh) {
|
|
this.flgTh = flgTh;
|
|
}
|
|
|
|
public long getId_fotoS() {
|
|
return this.id_fotoS;
|
|
}
|
|
|
|
public void setId_fotoS(long id_fotoS) {
|
|
this.id_fotoS = id_fotoS;
|
|
}
|
|
|
|
public long getFlgConPettorali() {
|
|
return this.flgConPettorali;
|
|
}
|
|
|
|
public void setFlgConPettorali(long flgConPettorali) {
|
|
this.flgConPettorali = flgConPettorali;
|
|
}
|
|
}
|