Uses of Interface
org.datanucleus.enhancement.Persistable
-
Packages that use Persistable Package Description org.datanucleus This package provides classes that are typically externally called, whether that means by developers or by other DataNucleus plugins.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 management of a persistable object. -
-
Uses of Persistable in org.datanucleus
Methods in org.datanucleus that return Persistable Modifier and Type Method Description PersistableExecutionContext. findObject(Object id, boolean validate)Shortcut to calling "findObject(id, validate, validate, null)".PersistableExecutionContext. findObject(Object id, boolean validate, boolean checkInheritance, String objectClassName)Accessor for an object given the object id.PersistableExecutionContext. findObject(Object id, FieldValues fv, Class pcClass, boolean ignoreCache, boolean checkInheritance)Accessor for an object given the object id and a set of field values to apply to it.PersistableExecutionContextImpl. findObject(Object id, boolean validate)PersistableExecutionContextImpl. findObject(Object id, boolean validate, boolean checkInheritance, String objectClassName)Accessor for an object given the object id.PersistableExecutionContextImpl. findObject(Object id, FieldValues fv, Class cls, boolean ignoreCache, boolean checkInheritance)Persistable[]ExecutionContext. findObjectsById(Object[] ids, boolean validate)Accessor for objects with the specified identities.Persistable[]ExecutionContextImpl. findObjectsById(Object[] identities, boolean validate)PersistableExecutionContext. getObjectFromCache(Object id)Convenience method to access an object in the cache.PersistableExecutionContextImpl. getObjectFromCache(Object id)Convenience method to access an object in the cache.protected PersistableExecutionContextImpl. getObjectFromLevel1Cache(Object id)Convenience method to access an object in the Level 1 cache.protected PersistableExecutionContextImpl. getObjectFromLevel2Cache(Object id)Convenience method to access an object in the Level 2 cache.protected PersistableExecutionContextImpl. getObjectFromLevel2CacheForUnique(CacheUniqueKey uniKey)Convenience method to access the identity that corresponds to a unique key, in the Level 2 cache.Persistable[]ExecutionContext. getObjectsFromCache(Object[] ids)Convenience method to access objects in the cache.Persistable[]ExecutionContextImpl. getObjectsFromCache(Object[] ids)Convenience method to access objects in the cache.Methods in org.datanucleus that return types with arguments of type Persistable Modifier and Type Method Description protected Map<Object,Persistable>ExecutionContextImpl. getObjectsFromLevel2Cache(Collection ids)Convenience method to access a collection of objects from the Level 2 cache.Methods in org.datanucleus with parameters of type Persistable Modifier and Type Method Description voidExecutionContext. replaceObjectId(Persistable pc, Object oldID, Object newID)Replace the previous object id for a PC object to a newvoidExecutionContextImpl. replaceObjectId(Persistable pc, Object oldID, Object newID)Replace the previous object id for a persistable object with a new one.voidExecutionContextThreadedImpl. replaceObjectId(Persistable pc, Object oldID, Object newID) -
Uses of Persistable in org.datanucleus.enhancement
Methods in org.datanucleus.enhancement that return Persistable Modifier and Type Method Description PersistablePersistable. dnNewInstance(StateManager sm)Return a new instance of this class, with the StateManager set to the parameter, and dnFlags set to LOAD_REQUIRED.PersistablePersistable. dnNewInstance(StateManager sm, Object oid)Return a new instance of this class, with the StateManager set to the parameter, key fields initialised to the values in the oid, and dnFlags set to LOAD_REQUIRED.Methods in org.datanucleus.enhancement with parameters of type Persistable Modifier and Type Method Description default booleanStateManager. getBooleanField(Persistable pc, int field, boolean currentValue)Return the value for the field.default byteStateManager. getByteField(Persistable pc, int field, byte currentValue)Return the value for the field.default charStateManager. getCharField(Persistable pc, int field, char currentValue)Return the value for the field.default doubleStateManager. getDoubleField(Persistable pc, int field, double currentValue)Return the value for the field.default floatStateManager. getFloatField(Persistable pc, int field, float currentValue)Return the value for the field.default intStateManager. getIntField(Persistable pc, int field, int currentValue)Return the value for the field.default longStateManager. getLongField(Persistable pc, int field, long currentValue)Return the value for the field.default ObjectStateManager. getObjectField(Persistable pc, int field, Object currentValue)Return the value for the field.ObjectStateManager. getObjectId(Persistable pc)Return the object representing the identity of the calling instance.default shortStateManager. getShortField(Persistable pc, int field, short currentValue)Return the value for the field.default StringStateManager. getStringField(Persistable pc, int field, String currentValue)Return the value for the field.ObjectStateManager. getTransactionalObjectId(Persistable pc)Return the object representing the identity of the calling instance.ObjectStateManager. getVersion(Persistable pc)Return the object representing the version of the calling instance.booleanStateManager. isDeleted(Persistable pc)Tests whether this object has been deleted.booleanStateManager. isDirty(Persistable pc)Tests whether this object is dirty.booleanStateManager. isLoaded(Persistable pc, int field)Returntrueif the field is cached in the calling instance.booleanStateManager. isNew(Persistable pc)Tests whether this object has been newly made persistent.booleanStateManager. isPersistent(Persistable pc)Tests whether this object is persistent.booleanStateManager. isTransactional(Persistable pc)Tests whether this object is transactional.voidStateManager. makeDirty(Persistable pc, String fieldName)Mark the associatedPersistablefield dirty.voidStateManager. preSerialize(Persistable pc)Guarantee that the serializable transactional and persistent fields are loaded into the instance.voidStateManager. providedBooleanField(Persistable pc, int field, boolean currentValue)The value of the field requested to be provided to theStateManager.voidStateManager. providedByteField(Persistable pc, int field, byte currentValue)The value of the field requested to be provided to theStateManager.voidStateManager. providedCharField(Persistable pc, int field, char currentValue)The value of the field requested to be provided to theStateManager.voidStateManager. providedDoubleField(Persistable pc, int field, double currentValue)The value of the field requested to be provided to theStateManager.voidStateManager. providedFloatField(Persistable pc, int field, float currentValue)The value of the field requested to be provided to theStateManager.voidStateManager. providedIntField(Persistable pc, int field, int currentValue)The value of the field requested to be provided to theStateManager.voidStateManager. providedLongField(Persistable pc, int field, long currentValue)The value of the field requested to be provided to theStateManager.voidStateManager. providedObjectField(Persistable pc, int field, Object currentValue)The value of the field requested to be provided to theStateManager.voidStateManager. providedShortField(Persistable pc, int field, short currentValue)The value of the field requested to be provided to theStateManager.voidStateManager. providedStringField(Persistable pc, int field, String currentValue)The value of the field requested to be provided to theStateManager.booleanStateManager. replacingBooleanField(Persistable pc, int field)The replacement value of the field in the calling instance.byteStateManager. replacingByteField(Persistable pc, int field)The replacement value of the field in the calling instance.charStateManager. replacingCharField(Persistable pc, int field)The replacement value of the field in the calling instance.doubleStateManager. replacingDoubleField(Persistable pc, int field)The replacement value of the field in the calling instance.byteStateManager. replacingFlags(Persistable pc)The owningStateManageruses this method to supply the value of the flags to thePersistableinstance.floatStateManager. replacingFloatField(Persistable pc, int field)The replacement value of the field in the calling instance.intStateManager. replacingIntField(Persistable pc, int field)The replacement value of the field in the calling instance.longStateManager. replacingLongField(Persistable pc, int field)The replacement value of the field in the calling instance.ObjectStateManager. replacingObjectField(Persistable pc, int field)The replacement value of the field in the calling instance.shortStateManager. replacingShortField(Persistable pc, int field)The replacement value of the field in the calling instance.StateManagerStateManager. replacingStateManager(Persistable pc, StateManager sm)Replace the current value ofdnStateManager.StringStateManager. replacingStringField(Persistable pc, int field)The replacement value of the field in the calling instance.voidStateManager. setBooleanField(Persistable pc, int field, boolean currentValue, boolean newValue)Mark the field as modified by the user.voidStateManager. setByteField(Persistable pc, int field, byte currentValue, byte newValue)Mark the field as modified by the user.voidStateManager. setCharField(Persistable pc, int field, char currentValue, char newValue)Mark the field as modified by the user.voidStateManager. setDoubleField(Persistable pc, int field, double currentValue, double newValue)Mark the field as modified by the user.voidStateManager. setFloatField(Persistable pc, int field, float currentValue, float newValue)Mark the field as modified by the user.voidStateManager. setIntField(Persistable pc, int field, int currentValue, int newValue)Mark the field as modified by the user.voidStateManager. setLongField(Persistable pc, int field, long currentValue, long newValue)Mark the field as modified by the user.voidStateManager. setObjectField(Persistable pc, int field, Object currentValue, Object newValue)Mark the field as modified by the user.voidStateManager. setShortField(Persistable pc, int field, short currentValue, short newValue)Mark the field as modified by the user.voidStateManager. setStringField(Persistable pc, int field, String currentValue, String newValue)Mark the field as modified by the user. -
Uses of Persistable in org.datanucleus.enhancer
Methods in org.datanucleus.enhancer that return Persistable Modifier and Type Method Description PersistableEnhancementHelper. newInstance(Class pcClass, StateManager sm)Create a new instance of the class and assign its StateManager.PersistableEnhancementHelper. 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 PersistableImplementationCreatorImpl. newInstance(ClassMetaData cmd, ClassLoaderResolver clr)Constructs an implementation for an abstract class and instantiates it.protected PersistableImplementationCreatorImpl. newInstance(InterfaceMetaData imd, ClassLoaderResolver clr)Constructs an implementation for an interface and instantiates it.Methods in org.datanucleus.enhancer with parameters of type Persistable Modifier and Type Method Description static voidEnhancementHelper. registerClass(Class pcClass, Persistable pc)Register metadata by class. -
Uses of Persistable in org.datanucleus.state
Fields in org.datanucleus.state declared as Persistable Modifier and Type Field Description protected PersistableStateManagerImpl. myPCThe persistable instance managed by this StateManager.protected PersistableSavedState. pcCopy (shallow) of the Persistable instance when the instance is enlisted in the transaction.Methods in org.datanucleus.state that return Persistable Modifier and Type Method Description PersistableStateManagerImpl. attachCopy(Persistable detachedPC, boolean embedded)Method to attach a copy of the detached persistable instance and return the (attached) copy.PersistableStateManagerImpl. 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.PersistableStateManagerImpl. getObject()PersistableSavedState. getPC()PersistableStateManagerImpl. getReferencedPC()Accessor for the referenced PC object when we are attaching or detaching.Methods in org.datanucleus.state with parameters of type Persistable Modifier and Type Method Description voidStateManagerImpl. attach(Persistable detachedPC)PersistableStateManagerImpl. attachCopy(Persistable detachedPC, boolean embedded)Method to attach a copy of the detached persistable instance and return the (attached) copy.protected booleanStateManagerImpl. disconnectClone(Persistable pc)Method to disconnect any cloned persistence capable objects from their StateManager.ObjectStateManagerImpl. getObjectId(Persistable pc)Return the object representing the persistent identity of the calling instance.ObjectStateManagerImpl. getTransactionalObjectId(Persistable pc)Return the object representing the persistent identity of the calling instance.ObjectStateManagerImpl. getVersion(Persistable pc)Return the object representing the version of the calling instance.voidStateManagerImpl. initialiseForDetached(Persistable pc, Object id, Object version)Initialises the StateManager to manage a Persistable object in detached state.voidStateManagerImpl. initialiseForEmbedded(Persistable pc, boolean copyPc)Initialises a state manager to manage a provided Persistable instance that will be EMBEDDED/SERIALISED into another Persistable object.voidStateManagerImpl. initialiseForHollowPreConstructed(Object id, Persistable pc)Initialises a state manager to manage the given hollow instance having the given object ID.voidStateManagerImpl. initialiseForPersistentClean(Object id, Persistable pc)Initialises a state manager to manage the passed persistent instance having the given object ID.voidStateManagerImpl. initialiseForPersistentNew(Persistable pc, FieldValues preInsertChanges)Initialises a state manager to manage a transient instance that is becoming newly persistent.voidStateManagerImpl. initialiseForPNewToBeDeleted(Persistable pc)Initialises the StateManager to manage a Persistable object that is not persistent but is about to be deleted.voidStateManagerImpl. initialiseForTransactionalTransient(Persistable pc)Initialises a state manager to manage a Transactional Transient instance.booleanStateManagerImpl. isDeleted(Persistable pc)Tests whether this object has been deleted.booleanStateManagerImpl. isDirty(Persistable pc)Tests whether this object is dirty.booleanStateManagerImpl. isLoaded(Persistable pc, int fieldNumber)Return true if the field is cached in the calling instance; in this implementation we always return true.booleanStateManagerImpl. isNew(Persistable pc)Tests whether this object has been newly made persistent.booleanStateManagerImpl. isPersistent(Persistable pc)Tests whether this object is persistent.booleanStateManagerImpl. isTransactional(Persistable pc)Tests whether this object is transactional.voidStateManagerImpl. makeDirty(Persistable pc, String fieldName)Mark the associated persistable field dirty.voidStateManagerImpl. preSerialize(Persistable pc)Guarantee that the serializable transactional and persistent fields are loaded into the instance.voidStateManagerImpl. providedBooleanField(Persistable ignored, int fieldNumber, boolean currentValue)This method is called from the associated persistable when its dnProvideFields() method is invoked.voidStateManagerImpl. providedByteField(Persistable ignored, int fieldNumber, byte currentValue)This method is called from the associated persistable when its dnProvideFields() method is invoked.voidStateManagerImpl. providedCharField(Persistable ignored, int fieldNumber, char currentValue)This method is called from the associated persistable when its dnProvideFields() method is invoked.voidStateManagerImpl. providedDoubleField(Persistable ignored, int fieldNumber, double currentValue)This method is called from the associated persistable when its dnProvideFields() method is invoked.voidStateManagerImpl. providedFloatField(Persistable ignored, int fieldNumber, float currentValue)This method is called from the associated persistable when its dnProvideFields() method is invoked.voidStateManagerImpl. providedIntField(Persistable ignored, int fieldNumber, int currentValue)This method is called from the associated persistable when its dnProvideFields() method is invoked.voidStateManagerImpl. providedLongField(Persistable ignored, int fieldNumber, long currentValue)This method is called from the associated persistable when its dnProvideFields() method is invoked.voidStateManagerImpl. providedObjectField(Persistable ignored, int fieldNumber, Object currentValue)This method is called from the associated persistable when its dnProvideFields() method is invoked.voidStateManagerImpl. providedShortField(Persistable ignored, int fieldNumber, short currentValue)This method is called from the associated persistable when its dnProvideFields() method is invoked.voidStateManagerImpl. providedStringField(Persistable ignored, int fieldNumber, String currentValue)This method is called from the associated persistable when its dnProvideFields() method is invoked.protected ObjectStateManagerImpl. provideField(Persistable pc, int fieldNumber)Method to retrieve the value of a field from the PC object.protected voidStateManagerImpl. replaceField(Persistable pc, int fieldNumber, Object value)Method to change the value of a field in the PC object.protected voidStateManagerImpl. replaceField(Persistable pc, int fieldNumber, Object value, boolean makeDirty)Method to change the value of a field in the PC object.voidStateManagerImpl. replaceManagedPC(Persistable pc)Method that replaces the PC managed by this StateManager to be the supplied object.protected voidStateManagerImpl. replaceStateManager(Persistable pc, StateManager sm)Utility to update the passed object with the passed StateManager (can be null).booleanStateManagerImpl. replacingBooleanField(Persistable ignored, int fieldNumber)This method is invoked by the persistable object's dnReplaceField() method to refresh the value of a boolean field.byteStateManagerImpl. replacingByteField(Persistable ignored, int fieldNumber)This method is invoked by the persistable object's dnReplaceField() method to refresh the value of a byte field.charStateManagerImpl. replacingCharField(Persistable ignored, int fieldNumber)This method is invoked by the persistable object's dnReplaceField() method to refresh the value of a char field.doubleStateManagerImpl. replacingDoubleField(Persistable ignored, int fieldNumber)This method is invoked by the persistable object's dnReplaceField() method to refresh the value of a double field.byteStateManagerImpl. replacingFlags(Persistable pc)The StateManager uses this method to supply the value of dnFlags to the associated persistable instance.floatStateManagerImpl. replacingFloatField(Persistable ignored, int fieldNumber)This method is invoked by the persistable object's dnReplaceField() method to refresh the value of a float field.intStateManagerImpl. replacingIntField(Persistable ignored, int fieldNumber)This method is invoked by the persistable object's dnReplaceField() method to refresh the value of a int field.longStateManagerImpl. replacingLongField(Persistable ignored, int fieldNumber)This method is invoked by the persistable object's dnReplaceField() method to refresh the value of a long field.ObjectStateManagerImpl. replacingObjectField(Persistable ignored, int fieldNumber)This method is invoked by the persistable object's dnReplaceField() method to refresh the value of an Object field.shortStateManagerImpl. replacingShortField(Persistable ignored, int fieldNumber)This method is invoked by the persistable object's dnReplaceField() method to refresh the value of a short field.StateManagerStateManagerImpl. replacingStateManager(Persistable pc, StateManager sm)Replace the current value of StateManager in the Persistable object.StringStateManagerImpl. replacingStringField(Persistable ignored, int fieldNumber)This method is invoked by the persistable object's dnReplaceField() method to refresh the value of a String field.voidStateManagerImpl. 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.voidStateManagerImpl. 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.voidStateManagerImpl. 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.voidStateManagerImpl. 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.voidStateManagerImpl. 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.voidStateManagerImpl. 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.voidStateManagerImpl. 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.voidStateManagerImpl. 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.voidStateManagerImpl. 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.voidStateManagerImpl. 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 voidStateManagerImpl. updateField(Persistable pc, int fieldNumber, Object value)Convenience method to perform the update of a field value when a setter is invoked.Method parameters in org.datanucleus.state with type arguments of type Persistable Modifier and Type Method Description voidStateManagerImpl. initialiseForEmbedded(Class<Persistable> pcClass)Initialises a state manager to manage an embedded instance of the specified type.Constructors in org.datanucleus.state with parameters of type Persistable Constructor Description SavedState(Persistable pc, boolean[] loadedFields, byte persistenceFlags)
-