com.hp.ucmdb.api.topology
Interface QueryResultVersion

All Superinterfaces:
java.lang.Comparable<QueryResultVersion>, java.io.Serializable

@NotFinalAPI
public interface QueryResultVersion
extends java.io.Serializable, java.lang.Comparable<QueryResultVersion>

Represents a version of a query result.


Method Summary
 java.lang.String asString()
           
 int compareTo(QueryResultVersion queryResultVersion)
          Compares to another query result version (following Comparable rules).
 int compareTo(java.lang.String queryResultVersionAsString)
          Compares to another query result version string (following Comparable rules).
 QueryVersion queryVersion()
          Extracts the matching QueryVersion object for comparison with queries.
 

Method Detail

asString

java.lang.String asString()
Returns:
the string representation of this version.

compareTo

int compareTo(QueryResultVersion queryResultVersion)
Compares to another query result version (following Comparable rules).

Specified by:
compareTo in interface java.lang.Comparable<QueryResultVersion>
Parameters:
queryResultVersion - the query result version.
Returns:
a negative integer, zero, or a positive integer as this version is less than, equal to, or greater than the specified version.

compareTo

int compareTo(java.lang.String queryResultVersionAsString)
Compares to another query result version string (following Comparable rules).

Parameters:
queryResultVersionAsString - the query result version asString() result.
Returns:
a negative integer, zero, or a positive integer as this version is less than, equal to, or greater than the specified version.
Throws:
java.lang.IllegalArgumentException - if the given string cannot be parsed to a version object.

queryVersion

QueryVersion queryVersion()
Extracts the matching QueryVersion object for comparison with queries. In essence, if no change is done to a query before execution is performed, the QueryVersion from this method and the QueryVersion from the Query.queryVersion() will be equal.

Returns:
the matching QueryVersion object.
See Also:
Query.queryVersion()


Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.