|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anasoft.os.daofusion.cto.server.CriteriaTransferObjectCountWrapper
public class CriteriaTransferObjectCountWrapper
Server-side CriteriaTransferObject wrapper for entity
instance count purposes.
Use this class to wrap CriteriaTransferObject instances which
should suppress paging and sort constraints in conjunction with entity
instance count methods defined by the PersistentEntityDao.
CriteriaTransferObject,
PersistentEntityDao| Constructor Summary | |
|---|---|
CriteriaTransferObjectCountWrapper(CriteriaTransferObject transferObject)
Creates a new CriteriaTransferObject wrapper. |
|
| Method Summary | |
|---|---|
CriteriaTransferObject |
wrap()
Returns a CriteriaTransferObject instance suitable for entity
instance count methods defined by the PersistentEntityDao. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CriteriaTransferObjectCountWrapper(CriteriaTransferObject transferObject)
CriteriaTransferObject wrapper.
transferObject - CriteriaTransferObject instance to wrap.| Method Detail |
|---|
public CriteriaTransferObject wrap()
CriteriaTransferObject instance suitable for entity
instance count methods defined by the PersistentEntityDao.
Resulting transfer object delegates most of its methods to the wrapped
CriteriaTransferObject instance with the exception of paging
and sort constraints and methods that modify internal state of the
transfer object.
Use this method after receiving the original CriteriaTransferObject
instance from the client prior to conversion, for example:
PersistentEntityCriteria countCriteria = converter.convert(
new CriteriaTransferObjectCountWrapper(transferObject).wrap(),
myMappingGroup);
int totalRecords = myDao.count(countCriteria);
CriteriaTransferObject instance suitable for entity
instance count methods.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||