ostore.read
Class VIDPredicate

java.lang.Object
  |
  +--ostore.read.VIDPredicate
All Implemented Interfaces:
QuickSerializable, VersionPredicate

public class VIDPredicate
extends Object
implements VersionPredicate

A VersionPredicate that requires the single version with the specified VID.

Version:
$Id: VIDPredicate.java,v 1.15 2002/07/29 18:48:54 geels Exp $
Author:
Dennis Geels
See Also:
VID

Constructor Summary
VIDPredicate(InputBuffer buffer)
          Constructs a VIDPredicate from its serialized form.
VIDPredicate(VID vid)
          Constructs a new VIDPredicate.
 
Method Summary
 VID get_vid()
          Returns the id of the desired version.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
          Returns a human-readable representation of this predicate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VIDPredicate

public VIDPredicate(VID vid)
Constructs a new VIDPredicate.

Parameters:
vid - The id of the desired version.

VIDPredicate

public VIDPredicate(InputBuffer buffer)
             throws QSException
Constructs a VIDPredicate from its serialized form.

Method Detail

get_vid

public VID get_vid()
Returns the id of the desired version.


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 String toString()
Returns a human-readable representation of this predicate.

Overrides:
toString in class Object