Search in sources :

Example 1 with SQLBuilder

use of it.cnr.jada.persistency.sql.SQLBuilder in project sigla-main by consiglionazionaledellericerche.

the class Scrittura_partita_doppiaHome method findByDocumentoCoge.

public List<Scrittura_partita_doppiaBulk> findByDocumentoCoge(IDocumentoCogeBulk documentoCogeBulk) throws PersistencyException {
    SQLBuilder sql = this.createSQLBuilder();
    sql.addClause("AND", "esercizio", SQLBuilder.EQUALS, documentoCogeBulk.getEsercizio());
    sql.addClause("AND", "cd_cds_documento", SQLBuilder.EQUALS, documentoCogeBulk.getCd_cds());
    sql.addClause("AND", "cd_uo_documento", SQLBuilder.EQUALS, documentoCogeBulk.getCd_uo());
    sql.addClause("AND", "pg_numero_documento", SQLBuilder.EQUALS, documentoCogeBulk.getPg_doc());
    sql.addClause("AND", "cd_tipo_documento", SQLBuilder.EQUALS, documentoCogeBulk.getCd_tipo_doc());
    return fetchAll(sql);
}
Also used : SQLBuilder(it.cnr.jada.persistency.sql.SQLBuilder)

Example 2 with SQLBuilder

use of it.cnr.jada.persistency.sql.SQLBuilder in project sigla-main by consiglionazionaledellericerche.

the class Classificazione_voci_ep_pat_liv1Home method selectByClause.

public SQLBuilder selectByClause(UserContext usercontext, CompoundFindClause compoundfindclause) throws PersistencyException {
    SQLBuilder sql = super.selectPat(usercontext, compoundfindclause);
    sql.addSQLClause("AND", "cd_livello1", SQLBuilder.ISNOTNULL, null);
    sql.addSQLClause("AND", "cd_livello2", SQLBuilder.ISNULL, null);
    return sql;
}
Also used : SQLBuilder(it.cnr.jada.persistency.sql.SQLBuilder)

Example 3 with SQLBuilder

use of it.cnr.jada.persistency.sql.SQLBuilder in project sigla-main by consiglionazionaledellericerche.

the class Classificazione_voci_ep_pat_liv2Home method selectByClause.

public SQLBuilder selectByClause(UserContext usercontext, CompoundFindClause compoundfindclause) throws PersistencyException {
    SQLBuilder sql = super.selectPat(usercontext, compoundfindclause);
    sql.addSQLClause("AND", "cd_livello2", SQLBuilder.ISNOTNULL, null);
    sql.addSQLClause("AND", "cd_livello3", SQLBuilder.ISNULL, null);
    return sql;
}
Also used : SQLBuilder(it.cnr.jada.persistency.sql.SQLBuilder)

Example 4 with SQLBuilder

use of it.cnr.jada.persistency.sql.SQLBuilder in project sigla-main by consiglionazionaledellericerche.

the class Classificazione_voci_ep_pat_liv4Home method selectByClause.

public SQLBuilder selectByClause(UserContext usercontext, CompoundFindClause compoundfindclause) throws PersistencyException {
    SQLBuilder sql = super.selectPat(usercontext, compoundfindclause);
    sql.addSQLClause("AND", "cd_livello4", SQLBuilder.ISNOTNULL, null);
    sql.addSQLClause("AND", "cd_livello5", SQLBuilder.ISNULL, null);
    return sql;
}
Also used : SQLBuilder(it.cnr.jada.persistency.sql.SQLBuilder)

Example 5 with SQLBuilder

use of it.cnr.jada.persistency.sql.SQLBuilder in project sigla-main by consiglionazionaledellericerche.

the class Classificazione_voci_ep_pat_liv5Home method selectByClause.

public SQLBuilder selectByClause(UserContext usercontext, CompoundFindClause compoundfindclause) throws PersistencyException {
    SQLBuilder sql = super.selectPat(usercontext, compoundfindclause);
    sql.addSQLClause("AND", "cd_livello5", SQLBuilder.ISNOTNULL, null);
    sql.addSQLClause("AND", "cd_livello6", SQLBuilder.ISNULL, null);
    return sql;
}
Also used : SQLBuilder(it.cnr.jada.persistency.sql.SQLBuilder)

Aggregations

SQLBuilder (it.cnr.jada.persistency.sql.SQLBuilder)1260 PersistencyException (it.cnr.jada.persistency.PersistencyException)239 PersistentHome (it.cnr.jada.persistency.sql.PersistentHome)232 ApplicationException (it.cnr.jada.comp.ApplicationException)161 ComponentException (it.cnr.jada.comp.ComponentException)160 List (java.util.List)160 CNRUserContext (it.cnr.contab.utenze00.bp.CNRUserContext)109 Unita_organizzativaBulk (it.cnr.contab.config00.sto.bulk.Unita_organizzativaBulk)103 Unita_organizzativa_enteBulk (it.cnr.contab.config00.sto.bulk.Unita_organizzativa_enteBulk)97 BulkList (it.cnr.jada.bulk.BulkList)86 BulkHome (it.cnr.jada.bulk.BulkHome)82 RemoteException (java.rmi.RemoteException)79 IntrospectionException (it.cnr.jada.persistency.IntrospectionException)76 SQLException (java.sql.SQLException)76 CdrBulk (it.cnr.contab.config00.sto.bulk.CdrBulk)67 Iterator (java.util.Iterator)67 RemoteIterator (it.cnr.jada.util.RemoteIterator)62 BigDecimal (java.math.BigDecimal)62 EJBException (javax.ejb.EJBException)52 Parametri_cnrBulk (it.cnr.contab.config00.bulk.Parametri_cnrBulk)46