Class BasicQueryCommand
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
com.ptc.core.query.command.common.BasicQueryCommand
- All Implemented Interfaces:
PageRequest,RepositoryCommand,Command,com.ptc.core.command.common.ServerCommand,Externalizable,Serializable
- Direct Known Subclasses:
AttributeContainerQueryCommand
This class provies a basic implementation of a query comand the results,
criteria, and sort specifications are implemented as simple attributes
with setters and getters.
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 TypeMethodDescriptionvoidappendCriteria(AttributeContainerSet a_criteria, boolean a_union) Appends the specified criteria to the existing criteria.Gets the value of the attribute: criteria; Specifies the criteria that "filters" TypeInstances returned in the query.Gets the value of the attribute: result; Specificies the list of AttributeTypeIdentifiers that are to be included in the results.getSort()Gets the value of the attribute: sort; Specifies the TypeInstance sort order.voidsetCriteria(AttributeContainerSet a_Criteria) Sets the value of the attribute: criteria; Specifies the criteria that "filters" TypeInstances returned in the query.voidsetResult(ResultSpec a_Result) Sets the value of the attribute: result; Specificies the list of AttributeTypeIdentifiers that are to be included in the results.voidSets the value of the attribute: sort; Specifies the TypeInstance sort order.Methods inherited from class com.ptc.core.query.command.common.AbstractQueryCommand
getCriteriaAugmentor, getCriteriaSpec, getPageMode, setCriteriaAugmentor, setCriteriaSpec, setPageModeMethods inherited from class com.ptc.core.command.common.bean.repository.AbstractRepositoryCommand
getCount, getOffset, getResultContainer, getResultList, getResultSession, setCount, setOffset
-
Method Details
-
getSort
Gets the value of the attribute: sort; Specifies the TypeInstance sort order.
Supported API: true- Specified by:
getSortin interfaceRepositoryCommand- Specified by:
getSortin classAbstractQueryCommand- Returns:
- SortSpec
- Throws:
WTException
-
setSort
Sets the value of the attribute: sort; Specifies the TypeInstance sort order.
Supported API: true- Specified by:
setSortin interfaceRepositoryCommand- Overrides:
setSortin classAbstractRepositoryCommand- Parameters:
a_Sort-- Throws:
WTPropertyVetoException
-
getCriteria
Gets the value of the attribute: criteria; Specifies the criteria that "filters" TypeInstances returned in the query.
Supported API: true- Specified by:
getCriteriain classAbstractQueryCommand- Returns:
- AttributeContainerSet
- Throws:
WTException
-
setCriteria
Sets the value of the attribute: criteria; Specifies the criteria that "filters" TypeInstances returned in the query.
Supported API: true- Parameters:
a_Criteria-- Throws:
WTPropertyVetoException
-
getResult
Gets the value of the attribute: result; Specificies the list of AttributeTypeIdentifiers that are to be included in the results.
Supported API: true- Specified by:
getResultin classAbstractQueryCommand- Returns:
- ResultSpec
- Throws:
WTException
-
setResult
Sets the value of the attribute: result; Specificies the list of AttributeTypeIdentifiers that are to be included in the results.
Supported API: true- Parameters:
a_Result-- Throws:
WTPropertyVetoException
-
appendCriteria
Appends the specified criteria to the existing criteria.
Supported API: true- Parameters:
a_criteria- criteria instance to appenda_union- Indicates if the criteria should be a union (i.e. logical OR) or and intersection (i.e. logical AND).- Throws:
WTException
-