Class AbstractQueryCommand
java.lang.Object
com.ptc.core.command.common.bean.AbstractCommand
com.ptc.core.command.common.bean.AbstractServerCommand
com.ptc.core.command.common.bean.repository.AbstractRepositoryCommand
com.ptc.core.query.command.common.AbstractQueryCommand
- All Implemented Interfaces:
PageRequest,RepositoryCommand,Command,com.ptc.core.command.common.ServerCommand,Externalizable,Serializable
- Direct Known Subclasses:
AbstractReportQueryCommand,BasicQueryCommand
public abstract class AbstractQueryCommand
extends AbstractRepositoryCommand
implements Externalizable
This abstract class defines a command for all queries that use com.ptc.core.query
services. The result, criteria and sort specifications are derived and
must be implemented by subclasses.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from interface com.ptc.core.command.common.bean.repository.PageRequest
COUNT, OFFSETFields inherited from interface com.ptc.core.command.common.bean.repository.RepositoryCommand
PAGE_MODE, RESULT_CONTAINER, RESULT_SESSION, SORT -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the attribute: criteriaAugmentor; this instance can be used to augment the query with additional criteria.Gets the value of the attribute: criterionSpec; this instance can be used to specify type based query criteria.Gets the value of the attribute: pageMode; This attribute is an input that specifies the paging mode.voidsetCriteriaAugmentor(CriteriaAugmentor a_CriteriaAugmentor) Sets the value of the attribute: criteriaAugmentor; this instance can be used to augment the query with additional criteria.voidsetCriteriaSpec(CriterionSpec a_CriteriaSpec) Sets the value of the attribute: criterionSpec; this instance can be used to specify type based query criteria.voidsetPageMode(PageMode a_PageMode) Sets the value of the attribute: pageMode; This attribute is an input that specifies the paging mode.Methods inherited from class com.ptc.core.command.common.bean.repository.AbstractRepositoryCommand
getCount, getOffset, getResultContainer, getResultList, getResultSession, setCount, setOffset, setSort
-
Method Details
-
getPageMode
Gets the value of the attribute: pageMode; This attribute is an input that specifies the paging mode.
Supported API: true- Specified by:
getPageModein interfaceRepositoryCommand- Overrides:
getPageModein classAbstractRepositoryCommand- Returns:
- PageMode
- Throws:
UnsupportedOperationException
-
setPageMode
public void setPageMode(PageMode a_PageMode) throws UnsupportedOperationException, WTPropertyVetoException Sets the value of the attribute: pageMode; This attribute is an input that specifies the paging mode.
Supported API: true- Specified by:
setPageModein interfaceRepositoryCommand- Overrides:
setPageModein classAbstractRepositoryCommand- Parameters:
a_PageMode-- Throws:
UnsupportedOperationExceptionWTPropertyVetoException
-
getCriteriaAugmentor
Gets the value of the attribute: criteriaAugmentor; this instance can be used to augment the query with additional criteria.
Supported API: true- Returns:
- CriteriaAugmentor
-
setCriteriaAugmentor
public void setCriteriaAugmentor(CriteriaAugmentor a_CriteriaAugmentor) throws WTPropertyVetoException Sets the value of the attribute: criteriaAugmentor; this instance can be used to augment the query with additional criteria.
Supported API: true- Parameters:
a_CriteriaAugmentor-- Throws:
WTPropertyVetoException
-
getCriteriaSpec
Gets the value of the attribute: criterionSpec; this instance can be used to specify type based query criteria.
Supported API: true- Returns:
- CriterionSpec
-
setCriteriaSpec
Sets the value of the attribute: criterionSpec; this instance can be used to specify type based query criteria.
Supported API: true- Parameters:
a_CriteriaSpec-- Throws:
WTPropertyVetoException
-