tapestry.interweave
Class LastModifiedQuery

java.lang.Object
  |
  +--tapestry.interweave.LastModifiedQuery
All Implemented Interfaces:
QuickSerializable, TapestryQuery

public class LastModifiedQuery
extends Object
implements TapestryQuery

LastModifiedQuery is a TapestryQuery used in a TapestryLocateMsg used to find objects identified by a LastModifiedTag.

USAGE

To receive an object identified by a LastModifiedTag, dispatch a TapestryLocateMsg that contains a LastModifiedQuery.

Version:
$Id: LastModifiedQuery.java,v 1.1.1.1 2004/03/26 19:57:10 hweather Exp $
Author:
Benjamin K. Poon
See Also:
LastModifiedTag, TapestryTag, TapestryQuery, TapestryLocateMsg

Constructor Summary
LastModifiedQuery()
          Creates a new LastModifiedQuery.
LastModifiedQuery(InputBuffer buffer)
          Constructs a LastModifiedQuery from its serialized form.
 
Method Summary
 TapestryQueryResult query(SecureHash node_guid, SecureHash bp_guid, TapestryTag tag, TapestryQueryState state)
          Perform the query on the given backpointer and tag, possibly modifying the supplied state.
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LastModifiedQuery

public LastModifiedQuery()
Creates a new LastModifiedQuery.


LastModifiedQuery

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

Parameters:
buffer - serialized form of object.
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable

Specified by:
serialize in interface QuickSerializable

query

public TapestryQueryResult query(SecureHash node_guid,
                                 SecureHash bp_guid,
                                 TapestryTag tag,
                                 TapestryQueryState state)
Description copied from interface: TapestryQuery
Perform the query on the given backpointer and tag, possibly modifying the supplied state.

Specified by:
query in interface TapestryQuery
Parameters:
node_guid - the guid of the current node
bp_guid - the guid of the node to which the backpointer points
tag - the associated tag
state - the state, passed in and (possibly) modified
Returns:
the query result

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class Object