org.wamblee.persistence
Interface Detachable<T>

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractDetachable, InMemoryDetachable, JpaDetachable

public interface Detachable<T>
extends Serializable

Represents a detachable object. It represent a reference to a persistent object. The object is detachable in that the memory footprint can be reduced by not keeping a reference to the complete java object, but only to its identify in persistent storage. This is typically the primary key in a relational database.


Method Summary
 void detach()
          Detaches the object.
 T get()
          Gets the object, attaching it if needed.
 

Method Detail

detach

void detach()
Detaches the object.


get

T get()
Gets the object, attaching it if needed.

Returns:


Copyright © 2011. All Rights Reserved.