com.atlassian.bonnie
Interface Handle

All Superinterfaces:
java.io.Serializable

public interface Handle
extends java.io.Serializable

A token by which the AnyTypeObjectDao (for example) can resolve any persistent object. Handle is marker-interface with no required methods, but implementors must follow the contract for the toString method.

Handles are used to represent persistent objects in places such as the full-search index, providing a way to go back from some text representation to a full object.


Method Summary
 java.lang.String toString()
          The toString() method of a Handle must be written so that the AnyTypeObjectDao (for example) can resolve the String representation of a Handle back to a Handle object, and thus find the referenced object
 

Method Detail

toString

java.lang.String toString()
The toString() method of a Handle must be written so that the AnyTypeObjectDao (for example) can resolve the String representation of a Handle back to a Handle object, and thus find the referenced object

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this Handle that can be resolved back to the same object.


Copyright © 2006-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.