List of usage examples for org.hibernate Query setLong
@Deprecated @SuppressWarnings("unchecked") default Query<R> setLong(String name, long val)
From source file:edu.monash.merc.dao.NXAnnotationDAO.java
License:Open Source License
/** * {@inheritDoc}/*from w w w . j a v a 2 s .c om*/ */ public void deleteNXAnnotationById(long id) { String del_hql = "DELETE FROM " + this.persistClass.getSimpleName() + " AS nxAnn WHERE nxAnn.id = :id"; Query query = this.session().createQuery(del_hql); query.setLong("id", id); query.executeUpdate(); }
From source file:edu.monash.merc.dao.NXIsoFormAnnDAO.java
License:Open Source License
/** * {@inheritDoc}/* w w w .j a va 2s . c om*/ */ public void deleteNXIsoFormAnnById(long id) { String del_hql = "DELETE FROM " + this.persistClass.getSimpleName() + " AS nxIsoAnn WHERE nxIsoAnn.id = :id"; Query query = this.session().createQuery(del_hql); query.setLong("id", id); query.executeUpdate(); }
From source file:edu.monash.merc.dao.PEEvidenceDAO.java
License:Open Source License
/** * {@inheritDoc}//from www .j a v a 2 s .c o m */ public void deletePEEvidenceById(long id) { String del_hql = "DELETE FROM " + this.persistClass.getSimpleName() + " AS ev WHERE ev.id = :id"; Query query = this.session().createQuery(del_hql); query.setLong("id", id); query.executeUpdate(); }
From source file:edu.monash.merc.dao.PTMEvidenceDAO.java
License:Open Source License
/** * {@inheritDoc}//from w ww. j a va 2 s .c o m */ @Override public void deletePTMEvidenceById(long id) { String del_hql = "DELETE FROM " + this.persistClass.getSimpleName() + " AS ptev WHERE ptev.id = :id"; Query query = this.session().createQuery(del_hql); query.setLong("id", id); query.executeUpdate(); }
From source file:edu.monash.merc.dao.RifcsDatasetDAO.java
License:Open Source License
/** * {@inheritDoc}/* w ww .ja v a 2 s. com*/ */ public void deleteRifcsDsById(long id) { String del_hql = "DELETE FROM " + this.persistClass.getSimpleName() + " AS rifcsDs WHERE rifcsDs.id = :id"; Query query = this.session().createQuery(del_hql); query.setLong("id", id); query.executeUpdate(); }
From source file:edu.monash.merc.dao.RifcsDatasetDAO.java
License:Open Source License
/** * {@inheritDoc}//from w w w .j a va 2 s. c o m */ public void deleteRifcsDsByTpbVersionAndTrackToken(long tpbVersionId, int trackToken) { String del_hql = "DELETE FROM " + this.persistClass.getSimpleName() + " AS rifcsDs WHERE rifcsDs.trackToken = :trackToken"; Query query = this.session().createQuery(del_hql); query.setLong("tpbVersionId", tpbVersionId); query.setInteger("trackToken", trackToken); query.executeUpdate(); }
From source file:edu.monash.merc.dao.TEEvidenceDAO.java
License:Open Source License
@Override public void deleteTEEvidenceById(long id) { String del_hql = "DELETE FROM " + this.persistClass.getSimpleName() + " AS te WHERE te.id = :id"; Query query = this.session().createQuery(del_hql); query.setLong("id", id); query.executeUpdate();/* w ww.j a va2 s . co m*/ }
From source file:edu.monash.merc.dao.TLColorDAO.java
License:Open Source License
/** * {@inheritDoc}/*from w w w . j a v a 2 s .c o m*/ */ public void deleteTLColorById(long id) { String del_hql = "DELETE FROM " + this.persistClass.getSimpleName() + " AS color WHERE color.id = :id"; Query query = this.session().createQuery(del_hql); query.setLong("id", id); query.executeUpdate(); }
From source file:edu.monash.merc.dao.TLGeneDAO.java
License:Open Source License
/** * {@inheritDoc}/*from www.j a v a 2 s . c om*/ */ public void deleteTLGeneById(long id) { String del_hql = "DELETE FROM " + this.persistClass.getSimpleName() + " AS tlg WHERE tlg.id = :id"; Query query = this.session().createQuery(del_hql); query.setLong("id", id); query.executeUpdate(); }
From source file:edu.monash.merc.dao.TPBDataTypeDAO.java
License:Open Source License
/** * {@inheritDoc}// w w w.ja v a2 s . co m */ public void deleteTPBDataTypeById(long id) { String del_hql = "DELETE FROM " + this.persistClass.getSimpleName() + " AS hpbdtype WHERE hpbdtype.id = :id"; Query query = this.session().createQuery(del_hql); query.setLong("id", id); query.executeUpdate(); }