86 lines
1.8 KiB
Java
86 lines
1.8 KiB
Java
package it.acxent.anag;
|
|
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.CRAdapter;
|
|
|
|
public class VettoreCR extends CRAdapter {
|
|
private long id_vettore;
|
|
|
|
private long id_comune;
|
|
|
|
private String descrizione;
|
|
|
|
private String indirizzo;
|
|
|
|
private String nominativo;
|
|
|
|
private String numeroCivico;
|
|
|
|
private Comune comune;
|
|
|
|
public VettoreCR(ApplParmFull newApplParmFull) {
|
|
super(newApplParmFull);
|
|
}
|
|
|
|
public VettoreCR() {}
|
|
|
|
public void setId_vettore(long newId_vettore) {
|
|
this.id_vettore = newId_vettore;
|
|
}
|
|
|
|
public void setId_comune(long newId_comune) {
|
|
this.id_comune = newId_comune;
|
|
setComune(null);
|
|
}
|
|
|
|
public void setDescrizione(String newDescrizione) {
|
|
this.descrizione = newDescrizione;
|
|
}
|
|
|
|
public void setIndirizzo(String newIndirizzo) {
|
|
this.indirizzo = newIndirizzo;
|
|
}
|
|
|
|
public void setNominativo(String newNominativo) {
|
|
this.nominativo = newNominativo;
|
|
}
|
|
|
|
public void setNumeroCivico(String newNumeroCivico) {
|
|
this.numeroCivico = newNumeroCivico;
|
|
}
|
|
|
|
public long getId_vettore() {
|
|
return this.id_vettore;
|
|
}
|
|
|
|
public long getId_comune() {
|
|
return this.id_comune;
|
|
}
|
|
|
|
public String getDescrizione() {
|
|
return (this.descrizione == null) ? "" : this.descrizione.trim();
|
|
}
|
|
|
|
public String getIndirizzo() {
|
|
return (this.indirizzo == null) ? "" : this.indirizzo.trim();
|
|
}
|
|
|
|
public String getNominativo() {
|
|
return (this.nominativo == null) ? "" : this.nominativo.trim();
|
|
}
|
|
|
|
public String getNumeroCivico() {
|
|
return (this.numeroCivico == null) ? "" : this.numeroCivico.trim();
|
|
}
|
|
|
|
public void setComune(Comune newComune) {
|
|
this.comune = newComune;
|
|
}
|
|
|
|
public Comune getComune() {
|
|
this.comune = (Comune)getSecondaryObject(this.comune, Comune.class,
|
|
|
|
getId_comune());
|
|
return this.comune;
|
|
}
|
|
}
|