115 lines
2.5 KiB
Java
115 lines
2.5 KiB
Java
package it.acxent.pg;
|
|
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.CRAdapter;
|
|
import it.acxent.db.DBAdapter;
|
|
import java.sql.Date;
|
|
|
|
public class LogFotoCR extends CRAdapter {
|
|
private long id_logFoto;
|
|
|
|
private Date dataLog;
|
|
|
|
private String descrizione;
|
|
|
|
private long id_users;
|
|
|
|
private String ipAddress;
|
|
|
|
private long id_foto;
|
|
|
|
private Users users;
|
|
|
|
private Foto foto;
|
|
|
|
private String descrizioneFotoNuove;
|
|
|
|
public LogFotoCR(ApplParmFull newApplParmFull) {
|
|
super(newApplParmFull);
|
|
}
|
|
|
|
public LogFotoCR() {}
|
|
|
|
public void setId_logFoto(long newId_logFoto) {
|
|
this.id_logFoto = newId_logFoto;
|
|
}
|
|
|
|
public void setDataLog(Date newDataLog) {
|
|
this.dataLog = newDataLog;
|
|
}
|
|
|
|
public void setDescrizione(String newDescrizione) {
|
|
this.descrizione = newDescrizione;
|
|
}
|
|
|
|
public void setId_users(long newId_users) {
|
|
this.id_users = newId_users;
|
|
setUsers(null);
|
|
}
|
|
|
|
public void setIpAddress(String newIpAddress) {
|
|
this.ipAddress = newIpAddress;
|
|
}
|
|
|
|
public void setId_foto(long newId_foto) {
|
|
this.id_foto = newId_foto;
|
|
setFoto(null);
|
|
}
|
|
|
|
public long getId_logFoto() {
|
|
return this.id_logFoto;
|
|
}
|
|
|
|
public Date getDataLog() {
|
|
return this.dataLog;
|
|
}
|
|
|
|
public String getDescrizione() {
|
|
return (this.descrizione == null) ? "" : this.descrizione.trim();
|
|
}
|
|
|
|
public long getId_users() {
|
|
return this.id_users;
|
|
}
|
|
|
|
public String getIpAddress() {
|
|
return (this.ipAddress == null) ? "" : this.ipAddress.trim();
|
|
}
|
|
|
|
public long getId_foto() {
|
|
return this.id_foto;
|
|
}
|
|
|
|
public void setUsers(Users newUsers) {
|
|
this.users = newUsers;
|
|
}
|
|
|
|
public Users getUsers() {
|
|
this.users = (Users)getSecondaryObject((DBAdapter)this.users, Users.class, getId_users());
|
|
return this.users;
|
|
}
|
|
|
|
public void setFoto(Foto newFoto) {
|
|
this.foto = newFoto;
|
|
}
|
|
|
|
public Foto getFoto() {
|
|
this.foto = (Foto)getSecondaryObject(this.foto, Foto.class, getId_foto());
|
|
return this.foto;
|
|
}
|
|
|
|
public boolean isEmpty() {
|
|
if (getId_foto() > 0L || getId_users() > 0L || !getDescrizione().isEmpty() || !getDescrizioneFotoNuove().isEmpty() ||
|
|
!getIpAddress().isEmpty())
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
public String getDescrizioneFotoNuove() {
|
|
return (this.descrizioneFotoNuove == null) ? AB_EMPTY_STRING : this.descrizioneFotoNuove.trim();
|
|
}
|
|
|
|
public void setDescrizioneFotoNuove(String descrizioneFotoNuove) {
|
|
this.descrizioneFotoNuove = descrizioneFotoNuove;
|
|
}
|
|
}
|