Package wt.vc.config
Class OwnershipIndependentLatestConfigSpec
java.lang.Object
wt.vc.config.OwnershipIndependentLatestConfigSpec
- All Implemented Interfaces:
Externalizable,Serializable,ConfigSpec
public class OwnershipIndependentLatestConfigSpec
extends Object
implements ConfigSpec, Externalizable
This OwnershipIndependentLatestConfigSpec is similiar to the LatestConfigSpec,
except that it does not take ownership into account. It simply returns
the latest element regardless of ownership.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionappendSearchCriteria(QuerySpec querySpec) Appends a "latest = true" statement to the QuerySpec, indicating that only versions (latest iterations) should be considered.process(QueryResult results) Returns the latest of the versions based on the version identifier (A.A is greater than A and B is greater than both, for example).
-
Method Details
-
appendSearchCriteria
Appends a "latest = true" statement to the QuerySpec, indicating that only versions (latest iterations) should be considered.
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 the latest of the versions based on the version identifier (A.A is greater than A and B is greater than both, for example). Only a single version per master is returned. Ownership is not taken into consideration.
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. Note that after enumerating through the elements of this QueryResult, it should be reset.- Returns:
- QueryResult
- Throws:
WTException- See Also:
-