X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fpersistence%2FDetachable.java;h=ea5adfe6e222043928ee9c4279359951904f351b;hb=e897c0b96075ff833db4bb42c6bb267275376c7c;hp=0d681d0c8e0b2bbbba0fea561f1c4a104bb673e5;hpb=01c8f2209a39eb4590baf8cf2a1b5bf2e7812f18;p=utils diff --git a/support/general/src/main/java/org/wamblee/persistence/Detachable.java b/support/general/src/main/java/org/wamblee/persistence/Detachable.java index 0d681d0c..ea5adfe6 100644 --- a/support/general/src/main/java/org/wamblee/persistence/Detachable.java +++ b/support/general/src/main/java/org/wamblee/persistence/Detachable.java @@ -18,22 +18,23 @@ package org.wamblee.persistence; import java.io.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. + * 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. */ public interface Detachable extends Serializable { - - /** - * Detaches the object. - */ - void detach(); - - /** - * Gets the object, attaching it if needed. - * @return - */ - T get(); + /** + * Detaches the object. + */ + void detach(); + + /** + * Gets the object, attaching it if needed. + * + * @return + */ + T get(); }