Class FindPersistentEntityCommand
java.lang.Object
com.ptc.core.command.common.bean.AbstractCommand
com.ptc.core.command.common.bean.AbstractServerCommand
com.ptc.core.command.common.bean.entity.AbstractEntityCommand
com.ptc.core.command.common.bean.entity.AbstractPersistentEntityCommand
com.ptc.core.query.command.common.FindPersistentEntityCommand
- All Implemented Interfaces:
PageRequest,RepositoryCommand,Command,com.ptc.core.command.common.ServerCommand,Externalizable,Serializable
public class FindPersistentEntityCommand
extends com.ptc.core.command.common.bean.entity.AbstractPersistentEntityCommand
implements RepositoryCommand, Externalizable
This Command executes a query derived from the values int the source
TypeInstance.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields 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 TypeMethodDescriptionexecute()
Supported API: trueintgetCount()Gets the value of the attribute: count; Number of items for the page.Gets the value of the attribute: excludedTypes; An optional list of types that will be excluded from the results.intGets the value of the attribute: offset; Offset of the page.Gets the value of the attribute: pageMode; This attribute is an input that specifies the paging mode.Gets the value of the attribute: resultContainer; The container of type instances that are a result of a command being executed against a repository.
Supported API: trueGets the value of the attribute: resultSession; The Paging Session, if one has been established.getSort()Gets the value of the attribute: sort; This attribute is an input that specifies the sort order of the result TypeInstances.voidsetCount(int a_Count) Sets the value of the attribute: count; Number of items for the page.voidsetExcludedTypes(TypeIdentifier[] a_ExcludedTypes) Sets the value of the attribute: excludedTypes; An optional list of types that will be excluded from the results.voidsetOffset(int a_Offset) Sets the value of the attribute: offset; Offset of the page.voidsetPageMode(PageMode a_PageMode) Sets the value of the attribute: pageMode; This attribute is an input that specifies the paging mode.voidSets the value of the attribute: sort; This attribute is an input that specifies the sort order of the result TypeInstances.voidsetSource(TypeInstance a_Source)
Supported API: trueMethods inherited from class com.ptc.core.command.common.bean.entity.AbstractPersistentEntityCommand
readVersionMethods inherited from class com.ptc.core.command.common.bean.entity.AbstractEntityCommand
getRequestor, getSource, readVersion, setResult, setSource, setSourceMethods inherited from class com.ptc.core.command.common.bean.AbstractServerCommand
getCommandContext, isExecutable, putOnCommandContext, readVersion, setCommandContextMethods inherited from class com.ptc.core.command.common.bean.AbstractCommand
getLocale, getSelectorTypename, getTargetLanguage, readVersion, setLocale, setTargetLanguageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ptc.core.command.common.Command
getLocale, getSelectorTypename, getTargetLanguage, setLocale, setTargetLanguage
-
Method Details
-
getExcludedTypes
Gets the value of the attribute: excludedTypes; An optional list of types that will be excluded from the results.
Supported API: true- Returns:
- TypeIdentifier[]
-
setExcludedTypes
Sets the value of the attribute: excludedTypes; An optional list of types that will be excluded from the results.
Supported API: true- Parameters:
a_ExcludedTypes-- Throws:
WTPropertyVetoException
-
setSource
public void setSource(TypeInstance a_Source) throws UnsupportedOperationException, WTPropertyVetoException
Supported API: true- Overrides:
setSourcein classcom.ptc.core.command.common.bean.entity.AbstractEntityCommand- Parameters:
a_Source-- Throws:
UnsupportedOperationExceptionWTPropertyVetoException
-
execute
Supported API: true- Specified by:
executein interfaceCommand- Overrides:
executein classcom.ptc.core.command.common.bean.AbstractServerCommand- Returns:
- Command
- Throws:
CommandException
-
getResultList
Supported API: true- Specified by:
getResultListin interfacecom.ptc.core.command.common.ServerCommand- Overrides:
getResultListin classcom.ptc.core.command.common.bean.entity.AbstractEntityCommand- Returns:
- TypeInstance[]
-
getResultContainer
Gets the value of the attribute: resultContainer; The container of type instances that are a result of a command being executed against a repository.
Supported API: true- Specified by:
getResultContainerin interfaceRepositoryCommand- Returns:
- ResultContainer
-
getResultSession
Gets the value of the attribute: resultSession; The Paging Session, if one has been established.
Supported API: true- Specified by:
getResultSessionin interfaceRepositoryCommand- Returns:
- RepositoryPagingSession
- Throws:
UnsupportedOperationException
-
getSort
Gets the value of the attribute: sort; This attribute is an input that specifies the sort order of the result TypeInstances. Its implementation is derived by more specialized commands that extend this class.
Supported API: true- Specified by:
getSortin interfaceRepositoryCommand- Returns:
- SortSpec
- Throws:
UnsupportedOperationExceptionWTException
-
setSort
Sets the value of the attribute: sort; This attribute is an input that specifies the sort order of the result TypeInstances. Its implementation is derived by more specialized commands that extend this class.
Supported API: true- Specified by:
setSortin interfaceRepositoryCommand- Parameters:
a_Sort-- Throws:
UnsupportedOperationExceptionWTPropertyVetoException
-
getPageMode
Gets the value of the attribute: pageMode; This attribute is an input that specifies the paging mode. Its implementation is derived by more specialized commands that extend this class.
Supported API: true- Specified by:
getPageModein interfaceRepositoryCommand- 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. Its implementation is derived by more specialized commands that extend this class.
Supported API: true- Specified by:
setPageModein interfaceRepositoryCommand- Parameters:
a_PageMode-- Throws:
UnsupportedOperationExceptionWTPropertyVetoException
-
getOffset
public int getOffset()Gets the value of the attribute: offset; Offset of the page.
Supported API: true- Specified by:
getOffsetin interfacePageRequest- Returns:
- int
-
setOffset
Sets the value of the attribute: offset; Offset of the page.
Supported API: true- Specified by:
setOffsetin interfacePageRequest- Parameters:
a_Offset-- Throws:
WTPropertyVetoException
-
getCount
public int getCount()Gets the value of the attribute: count; Number of items for the page.
Supported API: true- Specified by:
getCountin interfacePageRequest- Returns:
- int
-
setCount
Sets the value of the attribute: count; Number of items for the page.
Supported API: true- Specified by:
setCountin interfacePageRequest- Parameters:
a_Count-- Throws:
WTPropertyVetoException
-