Interface Handle

All Superinterfaces:
Serializable
All Known Implementing Classes:
HibernateHandle, HibernateHandle, SpaceKeyHandle, TransientHibernateHandle

public interface Handle extends 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

    Modifier and Type
    Method
    Description
    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 Details

    • toString

      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 Object
      Returns:
      a String representation of this Handle that can be resolved back to the same object.