public class StaticSentenceCriteria<Type extends AbstractHibernateObject<Type>,KeyType extends Serializable> extends Object implements SentenceList<Type>
| Constructor and Description |
|---|
StaticSentenceCriteria(HibernateDAO<Type,KeyType> dao) |
StaticSentenceCriteria(HibernateDAO<Type,KeyType> dao,
org.hibernate.criterion.Order order)
Adds an order to this critieria, this constructor is a bit of a hack but
it's cleaner than getting lists of Objects again and having to instanceof
types.
|
| Modifier and Type | Method and Description |
|---|---|
List<Type> |
list() |
List<Type> |
list(QueryFilter[] filters) |
List<Type> |
listPage(int offset,
int length) |
List<Type> |
listPage(QueryFilter[] filters,
int offset,
int length) |
public StaticSentenceCriteria(HibernateDAO<Type,KeyType> dao)
string - basic - public StaticSentenceCriteria(HibernateDAO<Type,KeyType> dao, org.hibernate.criterion.Order order)
dao - We use this to run the criteriaorder - An order to add to the criteriapublic List<Type> list()
list in interface SentenceList<Type extends AbstractHibernateObject<Type>>public List<Type> list(QueryFilter[] filters)
list in interface SentenceList<Type extends AbstractHibernateObject<Type>>public List<Type> listPage(int offset, int length) throws BasicException
listPage in interface SentenceList<Type extends AbstractHibernateObject<Type>>BasicExceptionpublic List<Type> listPage(QueryFilter[] filters, int offset, int length) throws BasicException
listPage in interface SentenceList<Type extends AbstractHibernateObject<Type>>BasicExceptionCopyright © 2021. All rights reserved.