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,76 @@
|
|||
package it.acxent.art;
|
||||
|
||||
import it.acxent.db.ApplParmFull;
|
||||
import it.acxent.db.WcString;
|
||||
import it.acxent.util.Vectumerator;
|
||||
import java.io.Serializable;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class Componente extends _ArtAdapter implements Serializable {
|
||||
private static final long serialVersionUID = -4818220967606343494L;
|
||||
|
||||
private long id_componente;
|
||||
|
||||
private String sigla;
|
||||
|
||||
public Componente(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public Componente() {}
|
||||
|
||||
public long getId_componente() {
|
||||
return this.id_componente;
|
||||
}
|
||||
|
||||
public void setId_componente(long id_componente) {
|
||||
this.id_componente = id_componente;
|
||||
}
|
||||
|
||||
public String getDescrizione() {
|
||||
return getDescrizione("");
|
||||
}
|
||||
|
||||
public String getSigla() {
|
||||
return (this.sigla == null) ? "" : this.sigla;
|
||||
}
|
||||
|
||||
public void setSigla(String sigla) {
|
||||
this.sigla = sigla;
|
||||
}
|
||||
|
||||
public boolean useDescLangTables() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public Vectumerator<Componente> findByCR(ComponenteCR CR, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select A.* from COMPONENTE AS A";
|
||||
String s_Sql_Order = "";
|
||||
WcString wc = new WcString();
|
||||
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 findBySigla(String l_sigla) {
|
||||
String s_Sql_Find = "select A.* from COMPONENTE AS A";
|
||||
String s_Sql_Order = "";
|
||||
WcString wc = new WcString();
|
||||
wc.addWc("A.sigla='" + l_sigla + "'");
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find + s_Sql_Find + wc.toString());
|
||||
findFirstRecord(stmt);
|
||||
} catch (SQLException e) {
|
||||
handleDebug(e);
|
||||
}
|
||||
}
|
||||
|
||||
public String getDescrizioneCompleta(String lang) {
|
||||
return getSigla() + " " + getSigla();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue