Interface PersistenceCapable
-
- All Superinterfaces:
PersistenceCapable
public interface PersistenceCapable extends PersistenceCapable
Internal PersistenceCapable interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
jdoClear()
Clears the fields of each persistent field.Object
jdoGetField(int fieldNumber)
Returns the value of the specified field.byte
jdoGetFlags()
Returns the value of the JDO flags.StateManager
jdoGetStateManager()
Returns the associated state manager.Object
jdoNewInstance(StateManager statemanager)
Creates an instance of the same class as this object.void
jdoSetField(int fieldNumber, Object value)
Sets the value of the specified field.void
jdoSetFlags(byte flags)
Sets the value of the JDO flags, and returns the previous value.void
jdoSetStateManager(StateManager sm)
Sets the associated state manager.-
Methods inherited from interface com.sun.jdo.api.persistence.support.PersistenceCapable
jdoGetObjectId, jdoGetPersistenceManager, jdoIsDeleted, jdoIsDirty, jdoIsNew, jdoIsPersistent, jdoIsTransactional, jdoMakeDirty
-
-
-
-
Method Detail
-
jdoGetStateManager
StateManager jdoGetStateManager()
Returns the associated state manager.
-
jdoSetStateManager
void jdoSetStateManager(StateManager sm)
Sets the associated state manager.
-
jdoGetFlags
byte jdoGetFlags()
Returns the value of the JDO flags.
-
jdoSetFlags
void jdoSetFlags(byte flags)
Sets the value of the JDO flags, and returns the previous value.
-
jdoGetField
Object jdoGetField(int fieldNumber)
Returns the value of the specified field. Primitive valued fields are wrapped with the corresponding Object wrapper type.
-
jdoSetField
void jdoSetField(int fieldNumber, Object value)
Sets the value of the specified field. Primitive valued fields are wrapped with the corresponding Object wrapper type.
-
jdoNewInstance
Object jdoNewInstance(StateManager statemanager)
Creates an instance of the same class as this object.
-
jdoClear
void jdoClear()
Clears the fields of each persistent field. This method stores zero or null values into each persistent field of the instance, in effect reverting it to its initial state. Clearing fields allows objects referred to by this instance to be garbage collected. The associated StateManager calls this method when transitioning an instance to the hollow state. This will normally be during post completion.
-
-