|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.odi.Persistent
In previous releases, to be persistence-capable, a class had to extend Persistent or HashPersistent. In this release, to be persistence-capable, a class or its superclass must implement the IPersistent interface.
A class whose instances can be stored in a database is considered
to be a persistence-capable class.
Normally, to define a persistence-capable class, you run the
Class File Postprocessor
to annotate your class so that it implements IPersistent. In rare
situations, you can explicitly define your class to implement
IPersistent and the methods it defines. See
IPersistent for more details
on the interface and the methods it requires.
Method Summary | |
protected Object |
clone()
Deprecated. Clones the persistence-capable object. |
static void |
deepFetch(Object object)
Deprecated. |
void |
destroy()
Deprecated. Use ObjectStore.destroy() in place of this deprecated method. |
static void |
dirty(Object object)
Deprecated. |
static void |
fetch(Object object)
Deprecated. |
boolean |
isDestroyed()
Deprecated. Use ObjectStore.isDestroyed() in place of this deprecated method. |
void |
postInitializeContents()
Deprecated. Called by PSE/PSE Pro immediately after calling the initializeContents() method. |
void |
preClearContents()
Deprecated. Called by PSE/PSE Pro immediately before calling the clearContents() method. |
void |
preDestroyPersistent()
Deprecated. Hook for ObjectStore.destroy(object). |
void |
preFlushContents()
Deprecated. Called by PSE/PSE Pro immediately before calling the flushContents() method. |
Method Detail |
public void postInitializeContents()
This method must not call any methods of the class and must not start or end a transaction. For more information, see Implementing Customized Methods and Hook Methods in Chapter 9 of the API User Guide.
postInitializeContents
in interface IPersistentHooks
public void preFlushContents()
This method must not call any methods of the class and must not start or end a transaction. For more information, see Implementing Customized Methods and Hook Methods in Chapter 9 of the API User Guide.
preFlushContents
in interface IPersistentHooks
public void preClearContents()
This method must not call any methods of the class and must not start or end a transaction. For more information, see Implementing Customized Methods and Hook Methods in Chapter 9 of the API User Guide.
preClearContents
in interface IPersistentHooks
public static void fetch(Object object)
ObjectStore.fetch(java.lang.Object)
public static void deepFetch(Object object)
ObjectStore.deepFetch(java.lang.Object)
public static void dirty(Object object)
ObjectStore.dirty(java.lang.Object)
protected Object clone() throws CloneNotSupportedException
CloneNotSupportedException
- If the subclass of Persistent
does not implement the Cloneable interface.public void destroy()
public void preDestroyPersistent()
The default implementation of this method does nothing.
preDestroyPersistent
in interface IPersistentHooks
public boolean isDestroyed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |