|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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 java.lang.Object |
clone()
Deprecated. Clones the persistence-capable object. |
void |
postInitializeContents()
Deprecated. Called by ObjectStore immediately after calling the initializeContents() method. |
void |
preClearContents()
Deprecated. Called by ObjectStore immediately before calling the clearContents() method. |
void |
preDestroyPersistent()
Deprecated. Hook for ObjectStore.destroy(object). |
void |
preFlushContents()
Deprecated. Called by ObjectStore immediately before calling the flushContents() method. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.odi.IPersistent |
clearContents, flushContents, initializeContents, ODIgetRef, ODIgetState, ODIsetRef, ODIsetState |
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
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- If the subclass of Persistent
does not implement the Cloneable interface.public void preDestroyPersistent()
The default implementation of this method does nothing.
preDestroyPersistent
in interface IPersistentHooks
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |