All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.cnr.contab.compensi00.docs.bulk.Minicarriera_rataHome 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.compensi00.docs.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 Minicarriera_rataHome extends BulkHome {
public Minicarriera_rataHome(Class clazz, java.sql.Connection conn) {
	super(clazz, conn);
}
public Minicarriera_rataHome(Class clazz, java.sql.Connection conn,PersistentCache persistentCache) {
	super(clazz, conn, persistentCache);
}
public Minicarriera_rataHome(java.sql.Connection conn) {
	super(Minicarriera_rataBulk.class,conn);
}
public Minicarriera_rataHome(java.sql.Connection conn,PersistentCache persistentCache) {
	super(Minicarriera_rataBulk.class,conn,persistentCache);
}
/**
 * Metodo per la restituzione dell'SQL atta alla ricerca delle rate di una 
 * minicarriera data
 */
 
public java.util.List findRate(CompensoBulk compenso) throws PersistencyException{

	SQLBuilder sql = createSQLBuilder();
	sql.addSQLClause("AND","CD_CDS_COMPENSO",sql.EQUALS, compenso.getCd_cds());
	sql.addSQLClause("AND","CD_UO_COMPENSO",sql.EQUALS, compenso.getCd_unita_organizzativa());
	sql.addSQLClause("AND","ESERCIZIO_COMPENSO",sql.EQUALS, compenso.getEsercizio());
	sql.addSQLClause("AND","PG_COMPENSO",sql.EQUALS, compenso.getPg_compenso());

	return fetchAll(sql);
}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy