www in docker support
This commit is contained in:
parent
539a848e95
commit
c227fce036
2145 changed files with 399596 additions and 58 deletions
|
|
@ -0,0 +1,215 @@
|
|||
package it.acxent.anag;
|
||||
|
||||
import it.acxent.db.ApplParmFull;
|
||||
import it.acxent.db.WcString;
|
||||
import it.acxent.fattele.FEDatiAnagraficiInterface;
|
||||
import it.acxent.util.StringTokenizer;
|
||||
import it.acxent.util.Vectumerator;
|
||||
import java.io.Serializable;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class Vettore extends _AnagAdapter implements Serializable, FEDatiAnagraficiInterface {
|
||||
private long id_vettore;
|
||||
|
||||
private long id_comune;
|
||||
|
||||
private String descrizione;
|
||||
|
||||
private String indirizzo;
|
||||
|
||||
private String nominativo;
|
||||
|
||||
private String numeroCivico;
|
||||
|
||||
private String pIva;
|
||||
|
||||
private String codFiscale;
|
||||
|
||||
private String iscrizioneAlbo;
|
||||
|
||||
private Comune comune;
|
||||
|
||||
private String linkTracking;
|
||||
|
||||
private String id_nazione;
|
||||
|
||||
private Nazione nazione;
|
||||
|
||||
public Vettore(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public Vettore() {}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
protected void deleteCascade() {}
|
||||
|
||||
public Vectumerator findByCR(VettoreCR CR, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select A.* from VETTORE AS A";
|
||||
String s_Sql_Order = "";
|
||||
WcString wc = new WcString();
|
||||
if (!CR.getSearchTxt().trim().isEmpty()) {
|
||||
StringTokenizer st = new StringTokenizer(CR.getSearchTxt().trim(), " ");
|
||||
StringBuffer txt = new StringBuffer("(");
|
||||
while (st.hasMoreTokens()) {
|
||||
String token = st.nextToken();
|
||||
txt.append("(A.Cognome like '%" + token + "%' or A.Nome like '%" + token + "%')");
|
||||
if (st.hasMoreTokens())
|
||||
txt.append(" and ");
|
||||
}
|
||||
txt.append(")");
|
||||
wc.addWc(txt.toString());
|
||||
}
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find + s_Sql_Find + wc.toString());
|
||||
return findRows(stmt, pageNumber, pageRows);
|
||||
} catch (SQLException e) {
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
|
||||
public void setLinkTracking(String newLinkTraking) {
|
||||
this.linkTracking = newLinkTraking;
|
||||
}
|
||||
|
||||
public String getLinkTracking() {
|
||||
return (this.linkTracking == null) ? "" : this.linkTracking;
|
||||
}
|
||||
|
||||
public String getPIva() {
|
||||
return (this.pIva == null) ? "" : this.pIva.trim();
|
||||
}
|
||||
|
||||
public void setPIva(String pIva) {
|
||||
this.pIva = pIva;
|
||||
}
|
||||
|
||||
public String getCodFiscale() {
|
||||
return (this.codFiscale == null) ? "" : this.codFiscale.trim();
|
||||
}
|
||||
|
||||
public void setCodFiscale(String codFiscale) {
|
||||
this.codFiscale = codFiscale;
|
||||
}
|
||||
|
||||
public String getIscrizioneAlbo() {
|
||||
return (this.iscrizioneAlbo == null) ? "" : this.iscrizioneAlbo.trim();
|
||||
}
|
||||
|
||||
public void setIscrizioneAlbo(String iscrizioneAlbo) {
|
||||
this.iscrizioneAlbo = iscrizioneAlbo;
|
||||
}
|
||||
|
||||
public String getFEPartitaIva() {
|
||||
return getPIva();
|
||||
}
|
||||
|
||||
public String getFECodiceFiscale() {
|
||||
return getCodFiscale();
|
||||
}
|
||||
|
||||
public String getFEDenominazione() {
|
||||
return getNominativo();
|
||||
}
|
||||
|
||||
public String getFECognome() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getFENome() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getFETitolo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getFECodEORI() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getFEPaese() {
|
||||
return getId_nazione();
|
||||
}
|
||||
|
||||
public String getId_nazione() {
|
||||
return (this.id_nazione == null) ? "" : this.id_nazione.trim();
|
||||
}
|
||||
|
||||
public Nazione getNazione() {
|
||||
this.nazione = (Nazione)getSecondaryObject(this.nazione, Nazione.class, getId_nazione());
|
||||
return this.nazione;
|
||||
}
|
||||
|
||||
public void setId_nazione(String newId_nazione) {
|
||||
this.id_nazione = newId_nazione;
|
||||
setNazione(null);
|
||||
}
|
||||
|
||||
public void setNazione(Nazione newNazione) {
|
||||
this.nazione = newNazione;
|
||||
}
|
||||
|
||||
public boolean isFEPaeseCEE() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue