public class OwQueriedCollection extends OwObjectCollectionDelegator
An OwObjectCollection
that relates on an OwObjectsQuery
for the
default object contents.
The contents is refreshed when the collection is sorted using the collection query.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
ATTRIBUTE_IS_COMPLETE, ATTRIBUTE_SIZE, ATTRIBUTE_SQL
Constructor and Description |
---|
OwQueriedCollection(OwObjectCollection decoratedCollection_p,
OwObjectsQuery query_p) |
OwQueriedCollection(OwObjectsQuery query_p,
OwSort sort_p)
Constructor
Triggers a reload on this collection (see reload() using the given sort object. |
Modifier and Type | Method and Description |
---|---|
void |
reload()
Reloads this collection with no sort object
|
void |
reload(OwSort sort_p)
Executes the underlying query using the given sort criteria and replaces the delegate with the result.
|
void |
sort(OwSort sortCriteria_p)
Executes the underlying query using the given sort criteria and replaces the delegate with the result.
|
add, add, addAll, addAll, attributecount, clear, contains, containsAll, equals, get, getAttribute, getAttribute, getAttributeNames, getNext, getPrev, getSafeAttribute, hasAttribute, hashCode, hasNext, hasPrev, indexOf, isComplete, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceDelegatee, retainAll, set, size, subList, toArray, toArray, toString
public OwQueriedCollection(OwObjectCollection decoratedCollection_p, OwObjectsQuery query_p)
decoratedCollection_p
- query_p
- public OwQueriedCollection(OwObjectsQuery query_p, OwSort sort_p) throws OwException
reload()
using the given sort object.query_p
- sort_p
- OwException
public void reload() throws OwException
OwException
public void reload(OwSort sort_p) throws OwException
sort_p
- OwException
public void sort(OwSort sortCriteria_p) throws Exception
sort
in interface OwObjectCollection
sort
in class OwObjectCollectionDelegator
sortCriteria_p
- Exception
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.