wt.vc.config
Class MultipleOwnershipIndependentLatestConfigSpec

java.lang.Object
  extended by wt.vc.config.MultipleOwnershipIndependentLatestConfigSpec
All Implemented Interfaces:
Externalizable, Serializable, ConfigSpec

public class MultipleOwnershipIndependentLatestConfigSpec
extends Object
implements ConfigSpec, Externalizable

This MultipleOwnershipIndependentLatestConfigSpec is similiar to the MultipleLatestConfigSpec, except that it does not take ownership into account. It simply returns the latest element regardless of ownership.

Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 QuerySpec appendSearchCriteria(QuerySpec querySpec)
          Appends a "latest = true" statement to the QuerySpec, indicating that only versions (latest iterations) should be considered.
 QueryResult process(QueryResult results)
          Returns the latest iteration of each version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

appendSearchCriteria

public QuerySpec appendSearchCriteria(QuerySpec querySpec)
                               throws WTException,
                                      QueryException
Appends a "latest = true" statement to the QuerySpec, indicating that only versions (latest iterations) should be considered.

Supported API: true

Specified by:
appendSearchCriteria in interface ConfigSpec
Parameters:
querySpec - A QuerySpec with a target class that is Iterated.
Returns:
QuerySpec
Throws:
WTException
QueryException
See Also:
QuerySpec, SearchCondition

process

public QueryResult process(QueryResult results)
                    throws WTException
Returns the latest iteration of each version. Only a single iteration per version is returned. Ownership is not taken into consideration.

Supported API: true

Specified by:
process in interface ConfigSpec
Parameters:
results -
Returns:
QueryResult
Throws:
WTException
See Also:
QueryResult, Iterated