Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.seam.framework
Class Query<T>

    java.lang.Object
      org.jboss.seam.framework.Controller
          org.jboss.seam.framework.PersistenceController<T>
              org.jboss.seam.framework.Query<T>

All Implemented Interfaces:
  Serializable

Direct Known Subclasses:
  EntityQuery, HibernateEntityQuery

    public abstract class Query<T>

extends PersistenceController<T>

Base class for components which manage a query result set. This class may be reused by either configuration or extension, and may be bound directly to a view, or accessed by some intermediate Seam component.

Author:
  Gavin King
See Also:
  Serialized Form

Constructor Summary
`Query()`

Method Summary
`protected void` | `clearDataModel()`
`protected void` | `evaluateAllParameters()`
`void` | `first()`
`protected String` | `getCountEjbql()`
`javax.faces.model.DataModel` | `getDataModel()`
`String` | `getEjbql()`
`Integer` | `getFirstResult()`
`long` | `getLastFirstResult()`
`Integer` | `getMaxResults()`
`int` | `getNextFirstResult()`
`String` | `getOrder()`
`int` | `getPreviousFirstResult()`
`protected List<Expressions.ValueBinding>` | `getQueryParameters()`
`protected List<Object>` | `getQueryParameterValues()`
`protected String` | `getRenderedEjbql()`
`protected List<Expressions.ValueBinding>` | `getRestrictionParameters()`
`protected List<Object>` | `getRestrictionParameterValues()`
`List<String>` | `getRestrictions()`
`abstract Long` | `getResultCount()`
`abstract List` | `getResultList()`
`abstract Object` | `getSingleResult()`
`protected boolean` | `isAnyParameterDirty()`
`boolean` | `isNextExists()`
`boolean` | `isPreviousExists()`
`protected boolean` | `isRestrictionParameterSet(Object parameterValue)`
`void` | `last()`
`void` | `next()`
`protected void` | `parseEjbql()`
`void` | `previous()`
`void` | `refresh()`
`void` | `setEjbql(String ejbql)`
`void` | `setFirstResult(Integer firstResult)`
`void` | `setMaxResults(Integer maxResults)`
`void` | `setOrder(String order)`
`protected void` | `setQueryParameterValues(List<Object> queryParameterValues)`
`protected void` | `setRestrictionParameterValues(List<Object> restrictionParameterValues)`
`void` | `setRestrictions(List<String> restrictions)`
`void` | `validate()`

Methods inherited from class org.jboss.seam.framework.PersistenceController
`getPersistenceContext, getPersistenceContextName, setPersistenceContext`

Methods inherited from class org.jboss.seam.framework.Controller
`addCookie, addFacesMessage, addFacesMessageFromResourceBundle, debug, debug, error, error, failValidation, fatal, fatal, getApplicationContext, getBusinessProcessContext, getComponentInstance, getComponentInstance, getConversation, getConversationContext, getCookie, getEventContext, getEvents, getFacesContext, getFacesMessages, getIdentity, getLog, getMessages, getMethodContext, getPageContext, getRedirect, getSessionContext, 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

### Query

    public Query()

Method Detail

### getResultList

    public abstract List getResultList()

### getSingleResult

    public abstract Object getSingleResult()

### getResultCount

    public abstract Long getResultCount()

### validate

    @Create
    public void validate()

### getDataModel

    @Transactional
    public javax.faces.model.DataModel getDataModel()

### refresh

    public void refresh()

### last

    public void last()

### next

    public void next()

### previous

    public void previous()

### first

    public void first()

### clearDataModel

    protected void clearDataModel()

### getLastFirstResult

    @Transactional
    public long getLastFirstResult()

### getNextFirstResult

    public int getNextFirstResult()

### getPreviousFirstResult

    public int getPreviousFirstResult()

### parseEjbql

    protected void parseEjbql()

### getRenderedEjbql

    protected String getRenderedEjbql()

### isRestrictionParameterSet

    protected boolean isRestrictionParameterSet(Object parameterValue)

### getCountEjbql

    protected String getCountEjbql()

### getEjbql

    public String getEjbql()

### setEjbql

    public void setEjbql(String ejbql)

### getFirstResult

    public Integer getFirstResult()

### isPreviousExists

    public boolean isPreviousExists()

### isNextExists

    public boolean isNextExists()

### setFirstResult

    public void setFirstResult(Integer firstResult)

### getMaxResults

    public Integer getMaxResults()

### setMaxResults

    public void setMaxResults(Integer maxResults)

### getRestrictions

    public List<String> getRestrictions()

### setRestrictions

    public void setRestrictions(List<String> restrictions)

### getOrder

    public String getOrder()

### setOrder

    public void setOrder(String order)

### getQueryParameters

    protected List<Expressions.ValueBinding> getQueryParameters()

### getRestrictionParameters

    protected List<Expressions.ValueBinding> getRestrictionParameters()

### evaluateAllParameters

    protected void evaluateAllParameters()

### isAnyParameterDirty

    protected boolean isAnyParameterDirty()

### getQueryParameterValues

    protected List<Object> getQueryParameterValues()

### setQueryParameterValues

    protected void setQueryParameterValues(List<Object> queryParameterValues)

### getRestrictionParameterValues

    protected List<Object> getRestrictionParameterValues()

### setRestrictionParameterValues

    protected void setRestrictionParameterValues(List<Object> restrictionParameterValues)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD