org.catools.etl.dao.CEtlProjectDao Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of etl Show documentation
Show all versions of etl Show documentation
The base ETL to be used in other CATools project as a base contract.
package org.catools.etl.dao;
import org.slf4j.Logger;
import org.catools.etl.model.CEtlProject;
import org.catools.etl.model.CEtlProjects;
import org.hibernate.annotations.QueryHints;
public class CEtlProjectDao extends CEtlBaseDao {
public static void mergeProject(Logger logger, CEtlProject project) {
persist(logger, project);
}
public static CEtlProject getProjectById(Logger logger, String id) {
return find(logger, CEtlProject.class, id);
}
public static CEtlProjects getProjects(Logger logger) {
return getTransactionResult(logger, session -> {
return new CEtlProjects(session.createQuery("From CEtlProject", CEtlProject.class).setHint(QueryHints.CACHEABLE, true).getResultList());
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy