Interface RepositoryCommand
- All Superinterfaces:
PageRequest
- All Known Implementing Classes:
AbstractQueryCommand,AbstractReportQueryCommand,AbstractRepositoryCommand,AttributeContainerQueryCommand,BasicFetchPagingRepositoryCommand,BasicQueryCommand,BasicReportQueryCommand,FindPersistentEntityCommand,PersistedReportQueryCommand
This interface specifies a command for retrieving data results from a
repository of data. A repository could store data in a variety of forms
such as database, flat file, legacay API interface, etc.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringLabel for the attribute; This attribute is an input that specifies the paging mode.static final StringLabel for the attribute; The container of type instances that are a result of a command being executed against a repository.static final StringLabel for the attribute; The Paging Session, if one has been established.static final StringLabel for the attribute; This attribute is an input that specifies the sort order of the result TypeInstances.Fields inherited from interface com.ptc.core.command.common.bean.repository.PageRequest
COUNT, OBJECT_ID_OFFSET_LIST, OFFSET -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the attribute: PAGE_MODE.Gets the value of the attribute: RESULT_CONTAINER.Gets the value of the attribute: RESULT_SESSION.getSort()Gets the value of the attribute: SORT.voidsetPageMode(PageMode a_PageMode) Sets the value of the attribute: PAGE_MODE.voidSets the value of the attribute: SORT.Methods inherited from interface com.ptc.core.command.common.bean.repository.PageRequest
getCount, getObjectIdOffsetList, getOffset, setCount, setObjectIdOffsetList, setOffset
-
Field Details
-
RESULT_CONTAINER
Label for the attribute; The container of type instances that are a result of a command being executed against a repository.
Supported API: true- See Also:
-
RESULT_SESSION
Label for the attribute; The Paging Session, if one has been established.
Supported API: true- See Also:
-
SORT
Label for the attribute; 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- See Also:
-
PAGE_MODE
Label for the attribute; 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- See Also:
-
-
Method Details
-
getResultContainer
ResultContainer getResultContainer()Gets the value of the attribute: RESULT_CONTAINER. The container of type instances that are a result of a command being executed against a repository.
Supported API: true- Returns:
- ResultContainer
-
getResultSession
Gets the value of the attribute: RESULT_SESSION. The Paging Session, if one has been established.
Supported API: true- 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- 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- Parameters:
a_Sort-- Throws:
UnsupportedOperationExceptionWTPropertyVetoException
-
getPageMode
Gets the value of the attribute: PAGE_MODE. 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- Returns:
- PageMode
- Throws:
UnsupportedOperationException
-
setPageMode
Sets the value of the attribute: PAGE_MODE. 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- Parameters:
a_PageMode-- Throws:
UnsupportedOperationExceptionWTPropertyVetoException
-