Package wt.vc.config
Class LatestConfigSpec
java.lang.Object
wt.vc.config.LatestConfigSpec
- All Implemented Interfaces:
Externalizable,Serializable,ConfigSpec
- Direct Known Subclasses:
PlantLatestConfigSpec
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: true
Supported API: true
Extendable: true
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionappendSearchCriteria(QuerySpec querySpec) Appends a "latest == true" condition to the QuerySpec.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.
-
Method Details
-
appendSearchCriteria
Appends a "latest == true" condition to the QuerySpec.
Supported API: true- Specified by:
appendSearchCriteriain interfaceConfigSpec- Parameters:
querySpec- A QuerySpec with a target class that is Iterated.- Returns:
- QuerySpec
- Throws:
WTExceptionQueryException- See Also:
-
process
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. Note that only one iteration is returned per master.
Supported API: true- Specified by:
processin interfaceConfigSpec- Parameters:
results- QueryResult of iterations to filter. Assumed to be the result of a query that included the additional search conditions applied by appendSearchCriteria.- Returns:
- QueryResult
- Throws:
WTException- See Also:
-