ostore.client
Class OSVersionPredicate

java.lang.Object
  |
  +--ostore.client.OSVersionPredicate
All Implemented Interfaces:
QuickSerializable
Direct Known Subclasses:
OSVPFresh, OSVPLatest, OSVPOnNode, OSVPSeqNum, OSVPTimed, OSVPVersionId

public abstract class OSVersionPredicate
extends Object
implements QuickSerializable

The OSVersionPredicate class is the abstract super class for all version predicates that are used in read requests to specify requirements of the versions to be read.

This class also defines a number of constants that are used in conjunction with the specific version predicates. For example, the constants LT, LEQ, EQ, GEQ, and GT correspond to the different types of comparisons that can be used to evaluate versions with predicates such as OSVPSeqNum.

Version:
$Id: OSVersionPredicate.java,v 1.13 2002/07/20 19:18:14 srhea Exp $
Author:
Patrick R. Eaton

Constructor Summary
OSVersionPredicate(InputBuffer buffer)
           
 
Method Summary
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
abstract  String toString()
          Returns a String representation of this OSVersionPredicate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSVersionPredicate

public OSVersionPredicate(InputBuffer buffer)
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to

toString

public abstract String toString()
Returns a String representation of this OSVersionPredicate.

Overrides:
toString in class Object
Returns:
a String represenation of this OSVersionPredicate