it.cnr.contab.prevent00.bulk.Bilancio_preventivoHome Maven / Gradle / Ivy
/*
* Copyright (C) 2019 Consiglio Nazionale delle Ricerche
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package it.cnr.contab.prevent00.bulk;
import it.cnr.jada.bulk.*;
import it.cnr.jada.persistency.*;
import it.cnr.jada.persistency.beans.*;
import it.cnr.jada.persistency.sql.*;
public class Bilancio_preventivoHome extends BulkHome {
/**
*
* Costruisce un Bilancio_preventivoHome
*
* @param conn La java.sql.Connection su cui vengono effettuate le operazione di persistenza
*/
public Bilancio_preventivoHome(java.sql.Connection conn) {
super(Bilancio_preventivoBulk.class,conn);
}
/**
*
* Costruisce un Bilancio_preventivoHome
*
* @param conn La java.sql.Connection su cui vengono effettuate le operazione di persistenza
* @param persistentCache La PersistentCache in cui vengono cachati gli oggetti persistenti caricati da questo Home
*/
public Bilancio_preventivoHome(java.sql.Connection conn,PersistentCache persistentCache) {
super(Bilancio_preventivoBulk.class,conn,persistentCache);
}
/**
* Effettua la ricerca dell'ENTE valido nell'esercizio specificato come parametro
*
*
* @param bilancio istanza del bulk del bilancio preventivo
* @return una lista contenente l'ENTE
*/
public java.util.List cercaCdsEnte(Bilancio_preventivoBulk bilancio) throws PersistencyException, IntrospectionException
{
PersistentHome enteHome = getHomeCache().getHome(it.cnr.contab.config00.sto.bulk.EnteBulk.class, "V_CDS_VALIDO");
SQLBuilder sql = enteHome.createSQLBuilder();
sql.addSQLClause("AND","ESERCIZIO",sql.EQUALS, bilancio.getEsercizio());
return enteHome.fetchAll(sql);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy