use of io.clownfish.clownfish.dbentities.CfQuartz in project Clownfish by rawdog71.
the class CfQuartzDAOImpl method findByName.
@Override
public CfQuartz findByName(String name) {
Session session = this.sessionFactory.getCurrentSession();
TypedQuery query = (TypedQuery) session.getNamedQuery("CfQuartz.findByName");
query.setParameter("name", name);
CfQuartz cfquartz = (CfQuartz) query.getSingleResult();
return cfquartz;
}
use of io.clownfish.clownfish.dbentities.CfQuartz in project Clownfish by rawdog71.
the class CfQuartzDAOImpl method findAll.
@Override
public List<CfQuartz> findAll() {
Session session = this.sessionFactory.getCurrentSession();
TypedQuery query = (TypedQuery) session.getNamedQuery("CfQuartz.findAll");
List<CfQuartz> cfquartzlist = query.getResultList();
return cfquartzlist;
}
use of io.clownfish.clownfish.dbentities.CfQuartz in project Clownfish by rawdog71.
the class CfQuartzDAOImpl method findById.
@Override
public CfQuartz findById(Long id) {
Session session = this.sessionFactory.getCurrentSession();
TypedQuery query = (TypedQuery) session.getNamedQuery("CfQuartz.findById");
query.setParameter("id", id);
CfQuartz cfquartz = (CfQuartz) query.getSingleResult();
return cfquartz;
}
use of io.clownfish.clownfish.dbentities.CfQuartz in project Clownfish by rawdog71.
the class QuartzList method onCreateJob.
public void onCreateJob(ActionEvent actionEvent) {
try {
CfQuartz newquartz = new CfQuartz();
newquartz.setName(jobname);
newquartz.setSchedule(jobvalue);
newquartz.setActive(active);
newquartz.setSiteRef(BigInteger.valueOf(siteref.getId()));
cfquartzService.create(newquartz);
quartzlist = cfquartzService.findAll();
clownfish.setInitmessage(false);
clownfish.init();
// fillPropertyMap();
} catch (ConstraintViolationException ex) {
LOGGER.error(ex.getMessage());
}
}
Aggregations