org.riotfamily.riot.hibernate.dao
Class AbstractHqlDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.riotfamily.riot.hibernate.dao.AbstractHibernateRiotDao
org.riotfamily.riot.hibernate.dao.AbstractHqlDao
- All Implemented Interfaces:
- RiotDao, SortableDao, InitializingBean
- Direct Known Subclasses:
- HqlDao
public abstract class AbstractHqlDao
- extends AbstractHibernateRiotDao
- implements SortableDao
RiotDao implementation based on Hibernate.
Constructor Summary |
AbstractHqlDao(org.hibernate.SessionFactory sessionFactory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractHqlDao
public AbstractHqlDao(org.hibernate.SessionFactory sessionFactory)
isPolymorph
protected boolean isPolymorph()
getSelect
protected String getSelect()
getFrom
protected String getFrom(ListParams params)
getWhere
protected String getWhere()
isPrefixSearch
protected boolean isPrefixSearch()
isSuffixSearch
protected boolean isSuffixSearch()
listInternal
protected final List<?> listInternal(Object parent,
ListParams params)
- Returns a list of items.
- Overrides:
listInternal
in class AbstractHibernateRiotDao
getListSize
public final int getListSize(Object parent,
ListParams params)
- Returns the total number of items.
- Specified by:
getListSize
in interface RiotDao
- Overrides:
getListSize
in class AbstractHibernateRiotDao
setQueryParameters
protected void setQueryParameters(org.hibernate.Query query,
Object parent,
ListParams params)
buildCountHql
protected final String buildCountHql(Object parent,
ListParams params)
- Builds a HQL query string to retrieve the total number of items.
buildHql
protected final String buildHql(Object parent,
ListParams params)
- Builds a HQL query string to retrieve a list of items.
getWhereClause
protected String getWhereClause(Object parent,
ListParams params)
getFilterWhereClause
protected String getFilterWhereClause(ListParams params)
setFilterParameters
protected void setFilterParameters(org.hibernate.Query query,
ListParams params)
getSearchWhereClause
protected String getSearchWhereClause(ListParams params)
getOrderBy
protected String getOrderBy(ListParams params)