org.apache.turbine.om
Interface Retrievable


public interface Retrievable

This interface specifies methods for uniquely identifying an object.

Version:
$Id: Retrievable.java 534527 2007-05-02 16:10:59Z tv $
Author:
John D. McNally

Method Summary
 java.lang.String getQueryKey()
          get an id that differentiates this object from others of its class.
 void setQueryKey(java.lang.String key)
          set an id that differentiates this object from others of its class.
 

Method Detail

getQueryKey

public java.lang.String getQueryKey()
get an id that differentiates this object from others of its class.

Returns:
The id value

setQueryKey

public void setQueryKey(java.lang.String key)
                 throws java.lang.Exception
set an id that differentiates this object from others of its class.

Parameters:
key - The new id value
Throws:
java.lang.Exception - A problem occured while setting the id.


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.