|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anasoft.os.daofusion.util.SimpleListContainer<T>
com.anasoft.os.daofusion.criteria.AbstractCriterionGroup<T,V>
T
- Type of the criterion managed by the group.V
- Type of the criterion visitor applicable
for managed criterion instances.public abstract class AbstractCriterionGroup<T extends PersistentEntityCriterion<V>,V>
Base class for persistent entity criteria implementations
working with PersistentEntityCriterion
instances.
This class defines the contract for paging criteria
(firstResult and maxResults) as well
as its application to the target Criteria
instance.
PersistentEntityCriterion
,
PersistentEntityCriteria
,
SimpleListContainer
Constructor Summary | |
---|---|
AbstractCriterionGroup()
|
Method Summary | |
---|---|
void |
apply(org.hibernate.Criteria targetCriteria)
Applies query constraints defined by the persistent entity criteria implementation to the targetCriteria. |
protected void |
applyPagingCriteria(org.hibernate.Criteria targetCriteria)
Applies paging criteria to the targetCriteria. |
protected abstract V |
getCriterionVisitor(org.hibernate.Criteria targetCriteria)
Returns the criterion visitor instance to be used within the apply(Criteria) method. |
java.lang.Integer |
getFirstResult()
|
java.lang.Integer |
getMaxResults()
|
void |
setFirstResult(java.lang.Integer firstResult)
|
void |
setMaxResults(java.lang.Integer maxResults)
|
Methods inherited from class com.anasoft.os.daofusion.util.SimpleListContainer |
---|
add, clear, getObjectList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCriterionGroup()
Method Detail |
---|
public java.lang.Integer getFirstResult()
public void setFirstResult(java.lang.Integer firstResult)
firstResult
- Index of the starting element or
null representing no constraints on this
paging parameter.public java.lang.Integer getMaxResults()
public void setMaxResults(java.lang.Integer maxResults)
maxResults
- Maximum number of elements to return
or null representing no constraints on this
paging parameter.protected void applyPagingCriteria(org.hibernate.Criteria targetCriteria)
targetCriteria
- Criteria
instance to update.public void apply(org.hibernate.Criteria targetCriteria)
PersistentEntityCriteria
apply
in interface PersistentEntityCriteria
targetCriteria
- Criteria
instance to update.PersistentEntityCriteria.apply(org.hibernate.Criteria)
protected abstract V getCriterionVisitor(org.hibernate.Criteria targetCriteria)
apply(Criteria)
method.
targetCriteria
- Root Criteria
instance for visitor to work with.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |