|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainQuery
com.arsdigita.domain.DomainCollection
com.arsdigita.workflow.simple.TaskCollection
Represents a collection on a task.
Field Summary | |
static String |
versionId
|
Fields inherited from class com.arsdigita.domain.DomainCollection |
m_dataCollection |
Fields inherited from class com.arsdigita.domain.DomainQuery |
m_dataQuery |
Constructor Summary | |
TaskCollection(DataCollection dataCollection)
Constructor. |
Method Summary | |
void |
addOrder(String order)
Sets the order of this collection. |
void |
childrenOf(Task parent)
|
Task |
getTask()
Wrapper to getDomainObject() that casts the
returned domain object as a task. |
Methods inherited from class com.arsdigita.domain.DomainCollection |
getDomainObject |
Methods inherited from class com.arsdigita.domain.DomainQuery |
addEqualsFilter, addFilter, addFilter, addInSubqueryFilter, addInSubqueryFilter, addNotEqualsFilter, addNotInSubqueryFilter, addOrderWithNull, addPath, alias, clearFilter, clearOrder, close, first, get, getFilterFactory, getParameter, getPosition, getPropertyValues, getType, hasProperty, isAfterLast, isBeforeFirst, isEmpty, isFirst, isLast, last, next, previous, removeFilter, reset, rewind, setFilter, setOrder, setParameter, setRange, setRange, setReturnsLowerBound, setReturnsUpperBound, size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public TaskCollection(DataCollection dataCollection)
dataCollection
- the data collectionDomainCollection.DomainCollection(DataCollection)
Method Detail |
public Task getTask()
getDomainObject()
that casts the
returned domain object as a task.
public void addOrder(String order)
next()
is called on this collection.
addOrder
in interface DataQuery
addOrder
in class DomainQuery
order
- This String parameter specifies the ordering of the
output. This should be a comma seperated list
of Attribute names (not the database column names)
in the order of precedence.
Separating attributes by commas is the same as
calling addOrder multiple times, each with the
next attribute. For instance, this
addOrder("creationDate");
addOrder("creationUser");
is the same as
addOrder("creationDate, creationUser");
If the items should be ordered in ascending order, the attribute name should be followed by the word "asc" If the items should be ordered in descending order, the attribute should be followed by the word "desc" For instance, or order by ascending date and descending user (for users created with the same date), you would use the following:
addOrder("creationDate asc, creationUser desc");
public final void childrenOf(Task parent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |