org.datanucleus.jpa
Interface Persistable


public interface Persistable

Standard interface that any class that is persistable should implement when not using JDO. Based roughly on the javax.jdo.spi.PersistenceCapable.


Field Summary
static byte CHECK_READ
           
static byte CHECK_WRITE
           
static byte LOAD_REQUIRED
           
static byte MEDIATE_READ
           
static byte MEDIATE_WRITE
           
static byte READ_OK
           
static byte READ_WRITE_OK
           
static byte SERIALIZABLE
           
 
Method Summary
 void dnCopyFields(java.lang.Object other, int[] fieldNumbers)
           
 void dnCopyKeyFieldsFromObjectId(org.datanucleus.store.fieldmanager.FieldConsumer fm, java.lang.Object oid)
           
 void dnCopyKeyFieldsToObjectId(org.datanucleus.store.fieldmanager.FieldSupplier fm, java.lang.Object oid)
           
 void dnCopyKeyFieldsToObjectId(java.lang.Object oid)
           
 java.lang.Object dnGetObjectId()
           
 org.datanucleus.StateManager dnGetStateManager()
           
 java.lang.Object dnGetTransactionalObjectId()
           
 java.lang.Object dnGetVersion()
           
 boolean dnIsDeleted()
           
 boolean dnIsDetached()
           
 boolean dnIsDirty()
           
 boolean dnIsNew()
           
 boolean dnIsPersistent()
           
 boolean dnIsTransactional()
           
 void dnMakeDirty(java.lang.String fieldName)
           
 Persistable dnNewInstance(org.datanucleus.StateManager sm)
           
 Persistable dnNewInstance(org.datanucleus.StateManager sm, java.lang.Object oid)
           
 java.lang.Object dnNewObjectIdInstance()
           
 java.lang.Object dnNewObjectIdInstance(java.lang.Object o)
           
 void dnProvideField(int fieldNumber)
           
 void dnProvideFields(int[] fieldNumbers)
           
 void dnReplaceDetachedState()
           
 void dnReplaceField(int fieldNumber)
           
 void dnReplaceFields(int[] fieldNumbers)
           
 void dnReplaceFlags()
           
 void dnReplaceStateManager(org.datanucleus.StateManager sm)
           
 

Field Detail

READ_WRITE_OK

static final byte READ_WRITE_OK
See Also:
Constant Field Values

LOAD_REQUIRED

static final byte LOAD_REQUIRED
See Also:
Constant Field Values

READ_OK

static final byte READ_OK
See Also:
Constant Field Values

CHECK_READ

static final byte CHECK_READ
See Also:
Constant Field Values

MEDIATE_READ

static final byte MEDIATE_READ
See Also:
Constant Field Values

CHECK_WRITE

static final byte CHECK_WRITE
See Also:
Constant Field Values

MEDIATE_WRITE

static final byte MEDIATE_WRITE
See Also:
Constant Field Values

SERIALIZABLE

static final byte SERIALIZABLE
See Also:
Constant Field Values
Method Detail

dnGetStateManager

org.datanucleus.StateManager dnGetStateManager()

dnReplaceStateManager

void dnReplaceStateManager(org.datanucleus.StateManager sm)
                           throws java.lang.SecurityException
Throws:
java.lang.SecurityException

dnProvideField

void dnProvideField(int fieldNumber)

dnProvideFields

void dnProvideFields(int[] fieldNumbers)

dnReplaceField

void dnReplaceField(int fieldNumber)

dnReplaceFields

void dnReplaceFields(int[] fieldNumbers)

dnReplaceFlags

void dnReplaceFlags()

dnCopyFields

void dnCopyFields(java.lang.Object other,
                  int[] fieldNumbers)

dnMakeDirty

void dnMakeDirty(java.lang.String fieldName)

dnGetObjectId

java.lang.Object dnGetObjectId()

dnGetTransactionalObjectId

java.lang.Object dnGetTransactionalObjectId()

dnGetVersion

java.lang.Object dnGetVersion()

dnIsDirty

boolean dnIsDirty()

dnIsTransactional

boolean dnIsTransactional()

dnIsPersistent

boolean dnIsPersistent()

dnIsNew

boolean dnIsNew()

dnIsDeleted

boolean dnIsDeleted()

dnIsDetached

boolean dnIsDetached()

dnNewInstance

Persistable dnNewInstance(org.datanucleus.StateManager sm)

dnNewInstance

Persistable dnNewInstance(org.datanucleus.StateManager sm,
                          java.lang.Object oid)

dnNewObjectIdInstance

java.lang.Object dnNewObjectIdInstance()

dnNewObjectIdInstance

java.lang.Object dnNewObjectIdInstance(java.lang.Object o)

dnCopyKeyFieldsToObjectId

void dnCopyKeyFieldsToObjectId(java.lang.Object oid)

dnCopyKeyFieldsToObjectId

void dnCopyKeyFieldsToObjectId(org.datanucleus.store.fieldmanager.FieldSupplier fm,
                               java.lang.Object oid)

dnCopyKeyFieldsFromObjectId

void dnCopyKeyFieldsFromObjectId(org.datanucleus.store.fieldmanager.FieldConsumer fm,
                                 java.lang.Object oid)

dnReplaceDetachedState

void dnReplaceDetachedState()


Copyright © 2011. All Rights Reserved.