172 lines
3.9 KiB
Java
172 lines
3.9 KiB
Java
package it.acxent.newsletter;
|
|
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.CRAdapter;
|
|
import it.acxent.rd.RemoteDevice;
|
|
import java.sql.Date;
|
|
|
|
public class CodaMessaggiCR extends CRAdapter {
|
|
private long id_codaMessaggi;
|
|
|
|
private long flgTipo = -1L;
|
|
|
|
private long flgStatoInvio = 0L;
|
|
|
|
private Date dataCreazione;
|
|
|
|
private String messaggio;
|
|
|
|
private String cellulare;
|
|
|
|
private String mailTo;
|
|
|
|
private String mailCc;
|
|
|
|
private String mailBcc;
|
|
|
|
private String campagna;
|
|
|
|
private long id_codaMessaggiS;
|
|
|
|
private String destinatario;
|
|
|
|
private long id_remoteDevice;
|
|
|
|
private RemoteDevice remoteDevice;
|
|
|
|
public CodaMessaggiCR(ApplParmFull newApplParmFull) {
|
|
super(newApplParmFull);
|
|
}
|
|
|
|
public CodaMessaggiCR() {}
|
|
|
|
public void setId_codaMessaggi(long newId_codaInvio) {
|
|
this.id_codaMessaggi = newId_codaInvio;
|
|
}
|
|
|
|
public void setFlgTipo(long newFlgTipo) {
|
|
this.flgTipo = newFlgTipo;
|
|
}
|
|
|
|
public void setFlgStatoInvio(long newFlgStatoInvio) {
|
|
this.flgStatoInvio = newFlgStatoInvio;
|
|
}
|
|
|
|
public void setDataCreazione(Date newDataCreazione) {
|
|
this.dataCreazione = newDataCreazione;
|
|
}
|
|
|
|
public void setMessaggio(String newMessaggio) {
|
|
this.messaggio = newMessaggio;
|
|
}
|
|
|
|
public void setCellulare(String newCellulare) {
|
|
this.cellulare = newCellulare;
|
|
}
|
|
|
|
public void setMailTo(String newMailTo) {
|
|
this.mailTo = newMailTo;
|
|
}
|
|
|
|
public void setMailCc(String newMailCc) {
|
|
this.mailCc = newMailCc;
|
|
}
|
|
|
|
public void setMailBcc(String newMailBcc) {
|
|
this.mailBcc = newMailBcc;
|
|
}
|
|
|
|
public long getId_codaMessaggi() {
|
|
return this.id_codaMessaggi;
|
|
}
|
|
|
|
public long getFlgTipo() {
|
|
return this.flgTipo;
|
|
}
|
|
|
|
public long getFlgStatoInvio() {
|
|
return this.flgStatoInvio;
|
|
}
|
|
|
|
public Date getDataCreazione() {
|
|
return this.dataCreazione;
|
|
}
|
|
|
|
public String getMessaggio() {
|
|
return (this.messaggio == null) ? "" : this.messaggio.trim();
|
|
}
|
|
|
|
public String getCellulare() {
|
|
return (this.cellulare == null) ? "" : this.cellulare.trim();
|
|
}
|
|
|
|
public String getMailTo() {
|
|
return (this.mailTo == null) ? "" : this.mailTo.trim();
|
|
}
|
|
|
|
public String getMailCc() {
|
|
return (this.mailCc == null) ? "" : this.mailCc.trim();
|
|
}
|
|
|
|
public String getMailBcc() {
|
|
return (this.mailBcc == null) ? "" : this.mailBcc.trim();
|
|
}
|
|
|
|
public static final String getStatoInvio(long l_flgStatoInvio) {
|
|
return CodaMessaggi.getStatoInvio(l_flgStatoInvio);
|
|
}
|
|
|
|
public String getStatoInvio() {
|
|
return CodaMessaggi.getStatoInvio(getFlgStatoInvio());
|
|
}
|
|
|
|
public static final String getTipo(long l_flgTipo) {
|
|
return CodaMessaggi.getTipo(l_flgTipo);
|
|
}
|
|
|
|
public String getTipo() {
|
|
return CodaMessaggi.getTipo(getFlgTipo());
|
|
}
|
|
|
|
public String getCampagna() {
|
|
return (this.campagna == null) ? AB_EMPTY_STRING : this.campagna.trim();
|
|
}
|
|
|
|
public void setCampagna(String campagna) {
|
|
this.campagna = campagna;
|
|
}
|
|
|
|
public long getId_codaMessaggiS() {
|
|
return this.id_codaMessaggiS;
|
|
}
|
|
|
|
public void setId_codaMessaggiS(long id_codaMessaggiS) {
|
|
this.id_codaMessaggiS = id_codaMessaggiS;
|
|
}
|
|
|
|
public String getDestinatario() {
|
|
return (this.destinatario == null) ? AB_EMPTY_STRING : this.destinatario.trim();
|
|
}
|
|
|
|
public void setDestinatario(String destinatario) {
|
|
this.destinatario = destinatario;
|
|
}
|
|
|
|
public long getId_remoteDevice() {
|
|
return this.id_remoteDevice;
|
|
}
|
|
|
|
public RemoteDevice getRemoteDevice() {
|
|
this.remoteDevice = (RemoteDevice)getSecondaryObject(this.remoteDevice, RemoteDevice.class, getId_remoteDevice());
|
|
return this.remoteDevice;
|
|
}
|
|
|
|
public void setId_remoteDevice(long id_remoteDevice) {
|
|
this.id_remoteDevice = id_remoteDevice;
|
|
setRemoteDevice(null);
|
|
}
|
|
|
|
public void setRemoteDevice(RemoteDevice remoteDevice) {
|
|
this.remoteDevice = remoteDevice;
|
|
}
|
|
}
|