org.jboss.seam.framework
Class HibernateEntityQuery<E>

java.lang.Object
  extended by org.jboss.seam.framework.Controller
      extended by org.jboss.seam.framework.PersistenceController<T>
          extended by org.jboss.seam.framework.Query<org.hibernate.Session,E>
              extended by org.jboss.seam.framework.HibernateEntityQuery<E>
All Implemented Interfaces:
java.io.Serializable

public class HibernateEntityQuery<E>
extends Query<org.hibernate.Session,E>

A Query object for Hibernate.

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
HibernateEntityQuery()
           
 
Method Summary
protected  org.hibernate.Query createCountQuery()
           
protected  org.hibernate.Query createQuery()
           
protected  java.lang.Boolean getCacheable()
           
protected  java.lang.String getCacheRegion()
           
protected  java.lang.Integer getFetchSize()
           
protected  java.lang.String getPersistenceContextName()
           
 java.lang.Long getResultCount()
           
 java.util.List<E> getResultList()
           
 org.hibernate.Session getSession()
           
 E getSingleResult()
           
 boolean isNextExists()
          Returns true if next page exists
 void refresh()
           
protected  void setCacheable(java.lang.Boolean cacheable)
           
protected  void setCacheRegion(java.lang.String cacheRegion)
           
protected  void setFetchSize(java.lang.Integer fetchSize)
           
 void setSession(org.hibernate.Session session)
           
 void validate()
           
 
Methods inherited from class org.jboss.seam.framework.Query
clearDataModel, evaluateAllParameters, first, getCountEjbql, getDataModel, getDataModelSelection, getDataModelSelectionIndex, getEjbql, getFirstResult, getGroupBy, getLastFirstResult, getMaxResults, getNextFirstResult, getOrder, getOrderColumn, getOrderDirection, getPageCount, getPreviousFirstResult, getQueryParameters, getQueryParameterValues, getRenderedEjbql, getRestrictionExpressionStrings, getRestrictionLogicOperator, getRestrictionParameters, getRestrictionParameterValues, getRestrictions, isAnyParameterDirty, isPaginated, isPreviousExists, isRestrictionParameterSet, isUseWildcardAsCountQuerySubject, last, next, parseEjbql, previous, setEjbql, setFirstResult, setGroupBy, setMaxResults, setOrder, setOrderColumn, setOrderDirection, setQueryParameterValues, setRestrictionExpressionStrings, setRestrictionLogicOperator, setRestrictionParameterValues, setRestrictions, setUseWildcardAsCountQuerySubject, truncResultList
 
Methods inherited from class org.jboss.seam.framework.PersistenceController
getPersistenceContext, setPersistenceContext
 
Methods inherited from class org.jboss.seam.framework.Controller
addCookie, addFacesMessage, addFacesMessageFromResourceBundle, createValueExpression, createValueExpression, debug, debug, error, error, evaluateValueExpression, evaluateValueExpression, failValidation, fatal, fatal, getApplicationContext, getBusinessProcessContext, getComponentInstance, getComponentInstance, getConversation, getConversationContext, getCookie, getEventContext, getEvents, getFacesContext, getFacesMessages, getIdentity, getLog, getMessages, getMethodContext, getPageContext, getRedirect, getSessionContext, getStatusMessages, getValidator, getValidator, info, info, interpolate, invalidateSession, isTransactionMarkedRollback, raiseAsynchronousEvent, raiseEvent, raiseTransactionSuccessEvent, render, sendHttpError, sendHttpError, trace, trace, validationFailed, validationSucceeded, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateEntityQuery

public HibernateEntityQuery()
Method Detail

validate

public void validate()
Overrides:
validate in class Query<org.hibernate.Session,E>

getResultList

@Transactional
public java.util.List<E> getResultList()
Specified by:
getResultList in class Query<org.hibernate.Session,E>

isNextExists

@Transactional
public boolean isNextExists()
Description copied from class: Query
Returns true if next page exists

Specified by:
isNextExists in class Query<org.hibernate.Session,E>

getSingleResult

@Transactional
public E getSingleResult()
Specified by:
getSingleResult in class Query<org.hibernate.Session,E>

getResultCount

@Transactional
public java.lang.Long getResultCount()
Specified by:
getResultCount in class Query<org.hibernate.Session,E>

refresh

public void refresh()
Overrides:
refresh in class Query<org.hibernate.Session,E>

getSession

public org.hibernate.Session getSession()

setSession

public void setSession(org.hibernate.Session session)

getPersistenceContextName

protected java.lang.String getPersistenceContextName()
Specified by:
getPersistenceContextName in class PersistenceController<org.hibernate.Session>

createQuery

protected org.hibernate.Query createQuery()

createCountQuery

protected org.hibernate.Query createCountQuery()

getCacheable

protected java.lang.Boolean getCacheable()

setCacheable

protected void setCacheable(java.lang.Boolean cacheable)

getCacheRegion

protected java.lang.String getCacheRegion()

setCacheRegion

protected void setCacheRegion(java.lang.String cacheRegion)

getFetchSize

protected java.lang.Integer getFetchSize()

setFetchSize

protected void setFetchSize(java.lang.Integer fetchSize)


Copyright © 2011 Seam Framework. All Rights Reserved.