ostore.update
Class PredicateVersionId

java.lang.Object
  |
  +--ostore.update.Predicate
        |
        +--ostore.update.PredicateVersionId
All Implemented Interfaces:
QuickSerializable

public class PredicateVersionId
extends Predicate

The PredicateVersionId predicate evaluates to true if the object being updated matches the given version identifier.

Version:
$Id: PredicateVersionId.java,v 1.14 2003/11/17 23:52:43 emilong Exp $
Author:
Patrick R. Eaton

Constructor Summary
PredicateVersionId(InputBuffer buffer)
           
PredicateVersionId(SecureHash aguid, VID version_id)
          Construct a PredicateVersionId predicate.
 
Method Summary
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
          Return a representation of this predicate as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PredicateVersionId

public PredicateVersionId(SecureHash aguid,
                          VID version_id)
Construct a PredicateVersionId predicate.

Parameters:
aguid - TODO
version_id - the version id to match

PredicateVersionId

public PredicateVersionId(InputBuffer buffer)
                   throws QSException
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
Overrides:
serialize in class Predicate
Parameters:
buffer - the output buffer to add the object to

toString

public String toString()
Description copied from class: Predicate
Return a representation of this predicate as a string.

Specified by:
toString in class Predicate
Returns:
a string representation of this predicate