Package com.emc.documentum.rest.dfc
Interface ObjectCollectionManager<T>
- Type Parameters:
T
- the object class
public interface ObjectCollectionManager<T>
The object collection manager that gets objects by DQL.
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the total count of the sql query.get
(String dql, int page, int itemsPerPage, AttributeView attributeView) Deprecated.get
(String dql, AttributeView attributeView) Get an object collection with the given DQL query.getPagedCollection
(String dql, boolean hasRangeSupport, int page, int itemsPerPage, AttributeView attributeView) Get an object collection with the given DQL query.
-
Method Details
-
get
@Deprecated List<T> get(String dql, int page, int itemsPerPage, AttributeView attributeView) throws com.documentum.fc.common.DfException Deprecated.Since 7.3, please usegetPagedCollection(String, boolean, int, int, com.emc.documentum.rest.attributeview.api.AttributeView)
instead.Get an object collection with the given DQL query.- Parameters:
dql
- the query to executepage
- the page number of paginated collectionitemsPerPage
- the number of items in the pageattributeView
- the attribute view of returning attributes filter- Returns:
- the collection of persistent objects
- Throws:
com.documentum.fc.common.DfException
- exception during the operation
-
getPagedCollection
CollectionResult<T> getPagedCollection(String dql, boolean hasRangeSupport, int page, int itemsPerPage, AttributeView attributeView) throws com.documentum.fc.common.DfException Get an object collection with the given DQL query.- Parameters:
dql
- the DQL query to executehasRangeSupport
- indicate whether range is enabling on the dql; when range is enabling, the dql result starts with the pagination offset; when not, the dql result starts with 0.page
- the page number of paginated collectionitemsPerPage
- the number of items in the pageattributeView
- the attribute view of returning attributes filter- Returns:
- the collection of persistent objects
- Throws:
com.documentum.fc.common.DfException
- exception during the operation
-
get
Get an object collection with the given DQL query. No extra pagination filtering on the result. The query may or may not contain return_range pagination control.- Parameters:
dql
- the DQL query to executeattributeView
- the attribute view of returning attributes filter- Returns:
- the collection of persistent objects
- Throws:
com.documentum.fc.common.DfException
- exception during the operation
-
count
Get the total count of the sql query.- Parameters:
dql
- the DQL query- Returns:
- the count of objects by this DQL
- Throws:
com.documentum.fc.common.DfException
- exception during the operation
-
getPagedCollection(String, boolean, int, int, com.emc.documentum.rest.attributeview.api.AttributeView)
instead.