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 class com.ptc.core.command.common.bean.repository.AbstractRepositoryCommand
DEFAULT_REPOSITORY_SELECTORFields inherited from class com.ptc.core.command.common.bean.AbstractServerCommand
SERVERFields inherited from interface com.ptc.core.command.common.Command
FEEDBACK_SPEC, LOCALEFields inherited from interface com.ptc.core.command.common.bean.repository.PageRequest
COUNT, OBJECT_ID_OFFSET_LIST, OFFSETFields inherited from interface com.ptc.core.command.common.bean.repository.RepositoryCommand
PAGE_MODE, RESULT_CONTAINER, RESULT_SESSION, SORTFields inherited from interface com.ptc.core.command.common.ServerCommand
COMMAND_CONTEXT, CONTAINER_IDENTIFIER, FILTER -
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
buildCriteriaSpec, buildToString, getCriteriaAugmentor, getCriteriaSpec, getFilter, getFilterAttribute, getPageMode, readVersion, setCriteriaAugmentor, setCriteriaSpec, setPageModeMethods inherited from class com.ptc.core.command.common.bean.repository.AbstractRepositoryCommand
buildResultList, getCount, getObjectIdOffsetList, getOffset, getPagingSnapshotQueryLimit, getRepositorySelector, getRequestor, getResultContainer, getResultList, getResultSession, getSelectorTypename, readVersion, setCount, setObjectIdOffsetList, setOffset, setPagingSanpshotQueryLimit, setPagingSnapshotQueryLimit, setRepositorySelector, setResultContainer, setResultSession, toStringMethods inherited from class com.ptc.core.command.common.bean.AbstractServerCommand
execute, getCommandContext, getContainerIdentifier, isExecutable, putOnCommandContext, readVersion, setCommandContext, setContainerIdentifier, setFilterMethods inherited from class com.ptc.core.command.common.bean.AbstractCommand
getFeedbackSpec, getLocale, getTargetLanguage, readVersion, setFeedbackSpec, setLocale, setTargetLanguageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.ptc.core.command.common.Command
getFeedbackSpec, getLocale, getTargetLanguage, setFeedbackSpec, setLocale, setTargetLanguage
-
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
-