Package | Description |
---|---|
org.datanucleus.enhancement |
DataNucleus ByteCode enhancement contract.
|
org.datanucleus.enhancer |
DataNucleus ByteCode enhancer framework.
|
org.datanucleus.state |
Provides classes relating to the life cycle state of a persistable object.
|
Modifier and Type | Method and Description |
---|---|
Persistable |
Persistable.dnNewInstance(StateManager sm)
Return a new instance of this class, with the StateManager set to the parameter, and dnFlags set to LOAD_REQUIRED.
|
Persistable |
Persistable.dnNewInstance(StateManager sm,
Object oid)
Return a new instance of this class, with the StateManager set to the parameter, key fields
initialized to the values in the oid, and dnFlags set to LOAD_REQUIRED.
|
Modifier and Type | Method and Description |
---|---|
boolean |
StateManager.getBooleanField(Persistable pc,
int field,
boolean currentValue)
Return the value for the field.
|
byte |
StateManager.getByteField(Persistable pc,
int field,
byte currentValue)
Return the value for the field.
|
char |
StateManager.getCharField(Persistable pc,
int field,
char currentValue)
Return the value for the field.
|
double |
StateManager.getDoubleField(Persistable pc,
int field,
double currentValue)
Return the value for the field.
|
ExecutionContextReference |
StateManager.getExecutionContext(Persistable pc)
Return the
ExecutionContext that owns this instance. |
float |
StateManager.getFloatField(Persistable pc,
int field,
float currentValue)
Return the value for the field.
|
int |
StateManager.getIntField(Persistable pc,
int field,
int currentValue)
Return the value for the field.
|
long |
StateManager.getLongField(Persistable pc,
int field,
long currentValue)
Return the value for the field.
|
Object |
StateManager.getObjectField(Persistable pc,
int field,
Object currentValue)
Return the value for the field.
|
Object |
StateManager.getObjectId(Persistable pc)
Return the object representing the identity of the calling instance.
|
short |
StateManager.getShortField(Persistable pc,
int field,
short currentValue)
Return the value for the field.
|
String |
StateManager.getStringField(Persistable pc,
int field,
String currentValue)
Return the value for the field.
|
Object |
StateManager.getTransactionalObjectId(Persistable pc)
Return the object representing the identity of the calling instance.
|
Object |
StateManager.getVersion(Persistable pc)
Return the object representing the version of the calling instance.
|
boolean |
StateManager.isDeleted(Persistable pc)
Tests whether this object has been deleted.
|
boolean |
StateManager.isDirty(Persistable pc)
Tests whether this object is dirty.
|
boolean |
StateManager.isLoaded(Persistable pc,
int field)
Return
true if the field is cached in the calling instance. |
boolean |
StateManager.isNew(Persistable pc)
Tests whether this object has been newly made persistent.
|
boolean |
StateManager.isPersistent(Persistable pc)
Tests whether this object is persistent.
|
boolean |
StateManager.isTransactional(Persistable pc)
Tests whether this object is transactional.
|
void |
StateManager.makeDirty(Persistable pc,
String fieldName)
Mark the associated
Persistable field dirty. |
void |
StateManager.preSerialize(Persistable pc)
Guarantee that the serializable transactional and persistent fields are loaded into the instance.
|
void |
StateManager.providedBooleanField(Persistable pc,
int field,
boolean currentValue)
The value of the field requested to be provided to the
StateManager . |
void |
StateManager.providedByteField(Persistable pc,
int field,
byte currentValue)
The value of the field requested to be provided to the
StateManager . |
void |
StateManager.providedCharField(Persistable pc,
int field,
char currentValue)
The value of the field requested to be provided to the
StateManager . |
void |
StateManager.providedDoubleField(Persistable pc,
int field,
double currentValue)
The value of the field requested to be provided to the
StateManager . |
void |
StateManager.providedFloatField(Persistable pc,
int field,
float currentValue)
The value of the field requested to be provided to the
StateManager . |
void |
StateManager.providedIntField(Persistable pc,
int field,
int currentValue)
The value of the field requested to be provided to the
StateManager . |
void |
StateManager.providedLongField(Persistable pc,
int field,
long currentValue)
The value of the field requested to be provided to the
StateManager . |
void |
StateManager.providedObjectField(Persistable pc,
int field,
Object currentValue)
The value of the field requested to be provided to the
StateManager . |
void |
StateManager.providedShortField(Persistable pc,
int field,
short currentValue)
The value of the field requested to be provided to the
StateManager . |
void |
StateManager.providedStringField(Persistable pc,
int field,
String currentValue)
The value of the field requested to be provided to the
StateManager . |
boolean |
StateManager.replacingBooleanField(Persistable pc,
int field)
The replacement value of the field in the calling instance.
|
byte |
StateManager.replacingByteField(Persistable pc,
int field)
The replacement value of the field in the calling instance.
|
char |
StateManager.replacingCharField(Persistable pc,
int field)
The replacement value of the field in the calling instance.
|
double |
StateManager.replacingDoubleField(Persistable pc,
int field)
The replacement value of the field in the calling instance.
|
byte |
StateManager.replacingFlags(Persistable pc)
The owning
StateManager uses this method to supply the value of the flags to the
Persistable instance. |
float |
StateManager.replacingFloatField(Persistable pc,
int field)
The replacement value of the field in the calling instance.
|
int |
StateManager.replacingIntField(Persistable pc,
int field)
The replacement value of the field in the calling instance.
|
long |
StateManager.replacingLongField(Persistable pc,
int field)
The replacement value of the field in the calling instance.
|
Object |
StateManager.replacingObjectField(Persistable pc,
int field)
The replacement value of the field in the calling instance.
|
short |
StateManager.replacingShortField(Persistable pc,
int field)
The replacement value of the field in the calling instance.
|
StateManager |
StateManager.replacingStateManager(Persistable pc,
StateManager sm)
Replace the current value of
dnStateManager . |
String |
StateManager.replacingStringField(Persistable pc,
int field)
The replacement value of the field in the calling instance.
|
void |
StateManager.setBooleanField(Persistable pc,
int field,
boolean currentValue,
boolean newValue)
Mark the field as modified by the user.
|
void |
StateManager.setByteField(Persistable pc,
int field,
byte currentValue,
byte newValue)
Mark the field as modified by the user.
|
void |
StateManager.setCharField(Persistable pc,
int field,
char currentValue,
char newValue)
Mark the field as modified by the user.
|
void |
StateManager.setDoubleField(Persistable pc,
int field,
double currentValue,
double newValue)
Mark the field as modified by the user.
|
void |
StateManager.setFloatField(Persistable pc,
int field,
float currentValue,
float newValue)
Mark the field as modified by the user.
|
void |
StateManager.setIntField(Persistable pc,
int field,
int currentValue,
int newValue)
Mark the field as modified by the user.
|
void |
StateManager.setLongField(Persistable pc,
int field,
long currentValue,
long newValue)
Mark the field as modified by the user.
|
void |
StateManager.setObjectField(Persistable pc,
int field,
Object currentValue,
Object newValue)
Mark the field as modified by the user.
|
void |
StateManager.setShortField(Persistable pc,
int field,
short currentValue,
short newValue)
Mark the field as modified by the user.
|
void |
StateManager.setStringField(Persistable pc,
int field,
String currentValue,
String newValue)
Mark the field as modified by the user.
|
Modifier and Type | Method and Description |
---|---|
protected Persistable |
ImplementationCreatorImpl.newInstance(ClassMetaData cmd,
ClassLoaderResolver clr)
Constructs an implementation for an abstract class and instantiates it.
|
Persistable |
EnhancementHelper.newInstance(Class pcClass,
StateManager sm)
Create a new instance of the class and assign its StateManager.
|
Persistable |
EnhancementHelper.newInstance(Class pcClass,
StateManager sm,
Object oid)
Create a new instance of the class and assign its StateManager and key values from the
ObjectId.
|
protected Persistable |
ImplementationCreatorImpl.newInstance(InterfaceMetaData imd,
ClassLoaderResolver clr)
Constructs an implementation for an interface and instantiates it.
|
Modifier and Type | Method and Description |
---|---|
static void |
EnhancementHelper.registerClass(Class pcClass,
String[] fieldNames,
Class[] fieldTypes,
byte[] fieldFlags,
Class persistableSuperclass,
Persistable pc)
Register metadata by class.
|
Modifier and Type | Field and Description |
---|---|
protected Persistable |
StateManagerImpl.savedImage
Image of the Persistable instance when the instance is enlisted in the transaction.
|
Modifier and Type | Method and Description |
---|---|
Persistable |
StateManagerImpl.attachCopy(Persistable detachedPC,
boolean embedded)
Method to attach a copy of the detached persistable instance and return the (attached) copy.
|
Persistable |
StateManagerImpl.detachCopy(FetchPlanState state)
Method to make detached copy of this instance
If the object is detachable then the copy will be migrated to DETACHED state, otherwise will migrate
the copy to TRANSIENT.
|
Persistable |
StateManagerImpl.getObject()
Accessor for the Persistent Capable object.
|
Modifier and Type | Method and Description |
---|---|
void |
StateManagerImpl.attach(Persistable detachedPC) |
Persistable |
StateManagerImpl.attachCopy(Persistable detachedPC,
boolean embedded)
Method to attach a copy of the detached persistable instance and return the (attached) copy.
|
protected boolean |
StateManagerImpl.disconnectClone(Persistable pc)
Method to disconnect any cloned persistence capable objects from their StateManager.
|
boolean |
StateManagerImpl.getBooleanField(Persistable pc,
int fieldNumber,
boolean currentValue) |
byte |
StateManagerImpl.getByteField(Persistable pc,
int fieldNumber,
byte currentValue) |
char |
StateManagerImpl.getCharField(Persistable pc,
int fieldNumber,
char currentValue) |
double |
StateManagerImpl.getDoubleField(Persistable pc,
int fieldNumber,
double currentValue) |
ExecutionContextReference |
StateManagerImpl.getExecutionContext(Persistable pc)
Accessor for the ExecutionContext that owns this instance.
|
float |
StateManagerImpl.getFloatField(Persistable pc,
int fieldNumber,
float currentValue) |
int |
StateManagerImpl.getIntField(Persistable pc,
int fieldNumber,
int currentValue) |
long |
StateManagerImpl.getLongField(Persistable pc,
int fieldNumber,
long currentValue) |
Object |
StateManagerImpl.getObjectField(Persistable pc,
int fieldNumber,
Object currentValue) |
Object |
StateManagerImpl.getObjectId(Persistable pc)
Return the object representing the JDO identity of the calling instance.
|
short |
StateManagerImpl.getShortField(Persistable pc,
int fieldNumber,
short currentValue) |
String |
StateManagerImpl.getStringField(Persistable pc,
int fieldNumber,
String currentValue) |
Object |
StateManagerImpl.getTransactionalObjectId(Persistable pc)
Return the object representing the JDO identity of the calling instance.
|
Object |
StateManagerImpl.getVersion(Persistable pc)
Return the object representing the version of the calling instance.
|
void |
StateManagerImpl.initialiseForDetached(Persistable pc,
Object id,
Object version)
Initialises the StateManager to manage a Persistable object in detached state.
|
void |
StateManagerImpl.initialiseForEmbedded(Persistable pc,
boolean copyPc)
Initialises a state manager to manage a Persistable instance that will be EMBEDDED/SERIALISED
into another Persistable object.
|
void |
StateManagerImpl.initialiseForHollowPreConstructed(Object id,
Persistable pc)
Initialises a state manager to manage the given hollow instance having the given object ID.
|
void |
StateManagerImpl.initialiseForPersistentClean(Object id,
Persistable pc)
Initialises a state manager to manage the passed persistent instance having the given object ID.
|
void |
StateManagerImpl.initialiseForPersistentNew(Persistable pc,
FieldValues preInsertChanges)
Initialises a state manager to manage a transient instance that is becoming newly persistent.
|
void |
StateManagerImpl.initialiseForPNewToBeDeleted(Persistable pc)
Initialises the StateManager to manage a Persistable object that is not persistent but is
about to be deleted.
|
void |
StateManagerImpl.initialiseForTransactionalTransient(Persistable pc)
Initialises a state manager to manage a Transactional Transient instance.
|
boolean |
StateManagerImpl.isDeleted(Persistable pc)
Tests whether this object has been deleted.
|
boolean |
StateManagerImpl.isDirty(Persistable pc)
Tests whether this object is dirty.
|
boolean |
StateManagerImpl.isLoaded(Persistable pc,
int fieldNumber)
Return true if the field is cached in the calling instance.
|
boolean |
StateManagerImpl.isNew(Persistable pc)
Tests whether this object has been newly made persistent.
|
boolean |
StateManagerImpl.isPersistent(Persistable pc)
Tests whether this object is persistent.
|
boolean |
StateManagerImpl.isTransactional(Persistable pc)
Tests whether this object is transactional.
|
void |
StateManagerImpl.makeDirty(Persistable pc,
String fieldName)
Mark the associated Persistable field dirty.
|
void |
StateManagerImpl.preSerialize(Persistable pc)
Guarantee that the serializable transactional and persistent fields are loaded into the instance.
|
protected Object |
StateManagerImpl.provideField(Persistable pc,
int fieldNumber)
Method to retrieve the value of a field from the PC object.
|
protected void |
StateManagerImpl.replaceField(Persistable pc,
int fieldNumber,
Object value)
Method to change the value of a field in the PC object.
|
protected void |
StateManagerImpl.replaceField(Persistable pc,
int fieldNumber,
Object value,
boolean makeDirty)
Method to change the value of a field in the PC object.
|
void |
StateManagerImpl.replaceManagedPC(Persistable pc)
Method that replaces the PC managed by this StateManager to be the supplied object.
|
protected void |
StateManagerImpl.replaceStateManager(Persistable pc,
StateManager sm)
Utility to update the passed object with the passed StateManager (can be null).
|
byte |
StateManagerImpl.replacingFlags(Persistable pc)
The StateManager uses this method to supply the value of jdoFlags to the
associated Persistable instance.
|
StateManager |
StateManagerImpl.replacingStateManager(Persistable pc,
StateManager sm)
Replace the current value of jdoStateManager.
|
void |
StateManagerImpl.setBooleanField(Persistable pc,
int fieldNumber,
boolean currentValue,
boolean newValue)
This method is called by the associated Persistable when the
corresponding mutator method (setXXX()) is called on the Persistable.
|
void |
StateManagerImpl.setByteField(Persistable pc,
int fieldNumber,
byte currentValue,
byte newValue)
This method is called by the associated Persistable when the
corresponding mutator method (setXXX()) is called on the Persistable.
|
void |
StateManagerImpl.setCharField(Persistable pc,
int fieldNumber,
char currentValue,
char newValue)
This method is called by the associated Persistable when the
corresponding mutator method (setXXX()) is called on the Persistable.
|
void |
StateManagerImpl.setDoubleField(Persistable pc,
int fieldNumber,
double currentValue,
double newValue)
This method is called by the associated Persistable when the
corresponding mutator method (setXXX()) is called on the Persistable.
|
void |
StateManagerImpl.setFloatField(Persistable pc,
int fieldNumber,
float currentValue,
float newValue)
This method is called by the associated Persistable when the
corresponding mutator method (setXXX()) is called on the Persistable.
|
void |
StateManagerImpl.setIntField(Persistable pc,
int fieldNumber,
int currentValue,
int newValue)
This method is called by the associated Persistable when the
corresponding mutator method (setXXX()) is called on the Persistable.
|
void |
StateManagerImpl.setLongField(Persistable pc,
int fieldNumber,
long currentValue,
long newValue)
This method is called by the associated Persistable when the
corresponding mutator method (setXXX()) is called on the Persistable.
|
void |
StateManagerImpl.setObjectField(Persistable pc,
int fieldNumber,
Object currentValue,
Object newValue)
This method is called by the associated Persistable when the
corresponding mutator method (setXXX()) is called on the Persistable.
|
void |
StateManagerImpl.setShortField(Persistable pc,
int fieldNumber,
short currentValue,
short newValue)
This method is called by the associated Persistable when the
corresponding mutator method (setXXX()) is called on the Persistable.
|
void |
StateManagerImpl.setStringField(Persistable pc,
int fieldNumber,
String currentValue,
String newValue)
This method is called by the associated Persistable when the
corresponding mutator method (setXXX()) is called on the Persistable.
|
protected void |
StateManagerImpl.updateField(Persistable pc,
int fieldNumber,
Object value)
Convenience method to perform the update of a field value when a setter is invoked.
|
Modifier and Type | Method and Description |
---|---|
void |
StateManagerImpl.initialiseForCachedPC(CachedPC<Persistable> cachedPC,
Object id)
Initialise the ObjectProvider, assigning the specified id to the object.
|
Copyright © 2017. All rights reserved.