|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.vc.config.LatestConfigSpec
public final class LatestConfigSpec
Returns, in priority order, the latest iteration for a master owned by
the current principal, the latest iteration by comparing the iterationIdentifier's
series value if not owned by the current principal, or the latest by
create Timestamp if the series values are equivalent. Note that only
one iteration is returned for any given master.
Supported API: true
Extendable: false
Iterated,
IterationIdentifier,
Series,
Serialized Form| Method Summary | |
|---|---|
QuerySpec |
appendSearchCriteria(QuerySpec querySpec)
Appends a "latest == true" condition to the QuerySpec. |
QueryResult |
process(QueryResult results)
Returns (by priority) an iteration if the current principal owns it, the latest by IteratedSeriesValue if not, and the latest by creation Timestamp if the series values are equivalent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public QuerySpec appendSearchCriteria(QuerySpec querySpec)
throws WTException,
QueryException
appendSearchCriteria in interface ConfigSpecquerySpec - A QuerySpec with a target class that is Iterated.
WTException
QueryExceptionQuerySpec,
SearchCondition
public QueryResult process(QueryResult results)
throws WTException
process in interface ConfigSpecresults - QueryResult of iterations to filter. Assumed to be the result of a query that included the additional search conditions applied by appendSearchCriteria.
WTExceptionIterated,
wt.vc.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||