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.

Version:
$Revision: 1.3 $

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 jpoxCopyFields(java.lang.Object other, int[] fieldNumbers)
           
 void jpoxCopyKeyFieldsFromObjectId(org.datanucleus.store.fieldmanager.FieldConsumer fm, java.lang.Object oid)
           
 void jpoxCopyKeyFieldsToObjectId(org.datanucleus.store.fieldmanager.FieldSupplier fm, java.lang.Object oid)
           
 void jpoxCopyKeyFieldsToObjectId(java.lang.Object oid)
           
 java.lang.Object jpoxGetObjectId()
           
 org.datanucleus.StateManager jpoxGetStateManager()
           
 java.lang.Object jpoxGetTransactionalObjectId()
           
 java.lang.Object jpoxGetVersion()
           
 boolean jpoxIsDeleted()
           
 boolean jpoxIsDetached()
           
 boolean jpoxIsDirty()
           
 boolean jpoxIsNew()
           
 boolean jpoxIsPersistent()
           
 boolean jpoxIsTransactional()
           
 void jpoxMakeDirty(java.lang.String fieldName)
           
 Persistable jpoxNewInstance(org.datanucleus.StateManager sm)
           
 Persistable jpoxNewInstance(org.datanucleus.StateManager sm, java.lang.Object oid)
           
 java.lang.Object jpoxNewObjectIdInstance()
           
 java.lang.Object jpoxNewObjectIdInstance(java.lang.Object o)
           
 void jpoxProvideField(int fieldNumber)
           
 void jpoxProvideFields(int[] fieldNumbers)
           
 void jpoxReplaceDetachedState()
           
 void jpoxReplaceField(int fieldNumber)
           
 void jpoxReplaceFields(int[] fieldNumbers)
           
 void jpoxReplaceFlags()
           
 void jpoxReplaceStateManager(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

jpoxGetStateManager

org.datanucleus.StateManager jpoxGetStateManager()

jpoxReplaceStateManager

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

jpoxProvideField

void jpoxProvideField(int fieldNumber)

jpoxProvideFields

void jpoxProvideFields(int[] fieldNumbers)

jpoxReplaceField

void jpoxReplaceField(int fieldNumber)

jpoxReplaceFields

void jpoxReplaceFields(int[] fieldNumbers)

jpoxReplaceFlags

void jpoxReplaceFlags()

jpoxCopyFields

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

jpoxMakeDirty

void jpoxMakeDirty(java.lang.String fieldName)

jpoxGetObjectId

java.lang.Object jpoxGetObjectId()

jpoxGetTransactionalObjectId

java.lang.Object jpoxGetTransactionalObjectId()

jpoxGetVersion

java.lang.Object jpoxGetVersion()

jpoxIsDirty

boolean jpoxIsDirty()

jpoxIsTransactional

boolean jpoxIsTransactional()

jpoxIsPersistent

boolean jpoxIsPersistent()

jpoxIsNew

boolean jpoxIsNew()

jpoxIsDeleted

boolean jpoxIsDeleted()

jpoxIsDetached

boolean jpoxIsDetached()

jpoxNewInstance

Persistable jpoxNewInstance(org.datanucleus.StateManager sm)

jpoxNewInstance

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

jpoxNewObjectIdInstance

java.lang.Object jpoxNewObjectIdInstance()

jpoxNewObjectIdInstance

java.lang.Object jpoxNewObjectIdInstance(java.lang.Object o)

jpoxCopyKeyFieldsToObjectId

void jpoxCopyKeyFieldsToObjectId(java.lang.Object oid)

jpoxCopyKeyFieldsToObjectId

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

jpoxCopyKeyFieldsFromObjectId

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

jpoxReplaceDetachedState

void jpoxReplaceDetachedState()


Copyright © 2009. All Rights Reserved.