List of usage examples for org.hibernate Criteria list
public List list() throws HibernateException;
From source file:au.org.theark.lims.model.dao.BiospecimenDao.java
License:Open Source License
public List<Unit> getUnits() { Criteria criteria = getSession().createCriteria(Unit.class); criteria.addOrder(Order.asc("order")); List<Unit> list = criteria.list(); return list;/* w w w. j a v a 2 s .co m*/ }
From source file:au.org.theark.lims.model.dao.BiospecimenDao.java
License:Open Source License
public List<BiospecimenAnticoagulant> getBiospecimenAnticoagulantList() { Criteria criteria = getSession().createCriteria(BiospecimenAnticoagulant.class); List<BiospecimenAnticoagulant> list = criteria.list(); return list;/*from w w w . jav a 2 s . c o m*/ }
From source file:au.org.theark.lims.model.dao.BiospecimenDao.java
License:Open Source License
public List<BiospecimenGrade> getBiospecimenGradeList() { Criteria criteria = getSession().createCriteria(BiospecimenGrade.class); List<BiospecimenGrade> list = criteria.list(); return list;/*from w w w.j a va2s .co m*/ }
From source file:au.org.theark.lims.model.dao.BiospecimenDao.java
License:Open Source License
public List<BiospecimenQuality> getBiospecimenQualityList() { Criteria criteria = getSession().createCriteria(BiospecimenQuality.class); List<BiospecimenQuality> list = criteria.list(); return list;//from w w w . j av a2 s . c om }
From source file:au.org.theark.lims.model.dao.BiospecimenDao.java
License:Open Source License
public List<BiospecimenStatus> getBiospecimenStatusList() { Criteria criteria = getSession().createCriteria(BiospecimenStatus.class); List<BiospecimenStatus> list = criteria.list(); return list;/* w w w. j a va 2 s . c o m*/ }
From source file:au.org.theark.lims.model.dao.BiospecimenDao.java
License:Open Source License
public List<BiospecimenStorage> getBiospecimenStorageList() { Criteria criteria = getSession().createCriteria(BiospecimenStorage.class); List<BiospecimenStorage> list = criteria.list(); return list;//w w w . j a v a 2 s . c o m }
From source file:au.org.theark.lims.model.dao.BiospecimenDao.java
License:Open Source License
public List<Biospecimen> getBiospecimenByBioCollection(BioCollection bioCollection) { Criteria criteria = getSession().createCriteria(Biospecimen.class); criteria.add(Restrictions.eq("bioCollection", bioCollection)); return criteria.list(); }
From source file:au.org.theark.lims.model.dao.BiospecimenDao.java
License:Open Source License
public List<BiospecimenProtocol> getBiospecimenProtocolList() { Criteria criteria = getSession().createCriteria(BiospecimenProtocol.class); List<BiospecimenProtocol> list = criteria.list(); return list;//from w w w . ja va 2 s . c o m }
From source file:au.org.theark.lims.model.dao.BiospecimenDao.java
License:Open Source License
public List<Biospecimen> getRootBiospecimensForBiocollection(BioCollection bc) { Criteria criteria = getSession().createCriteria(Biospecimen.class); criteria.add(Restrictions.eq("bioCollection", bc)); criteria.add(Restrictions.isNull("parent")); //criteria.setFetchMode("invBlah", FetchMode.JOIN); List<Biospecimen> list = criteria.list(); return list;//from ww w . j a v a 2s. c o m }
From source file:au.org.theark.lims.model.dao.BioTransactionDao.java
License:Open Source License
public List<BioTransaction> searchPageableBioTransactions(BioTransaction bioTransaction, int first, int count) { // Handle for biospecimen not in context if (bioTransaction.getBiospecimen() == null) { return new ArrayList<BioTransaction>(0); }/*from w ww. j a v a 2s. c o m*/ Criteria criteria = buildBioTransactionCriteria(bioTransaction); // sort by most recent first criteria.addOrder(Order.desc("transactionDate")); criteria.addOrder(Order.desc("id")); // support pageable results list criteria.setFirstResult(first); criteria.setMaxResults(count); List<BioTransaction> list = criteria.list(); return list; }