public class ReferentialJDOStateManager extends JDOStateManager
myPC, savedImage
activity, cmd, currFM, dirty, dirtyFields, FLAG_ATTACHING, FLAG_BECOMING_DELETED, FLAG_CHANGING_STATE, FLAG_DETACHING, FLAG_DISCONNECTING, FLAG_FLUSHED_NEW, FLAG_FLUSHING, FLAG_LOADINGFPFIELDS, FLAG_MAKING_TRANSIENT, FLAG_NEED_INHERITANCE_VALIDATION, FLAG_POSTINSERT_UPDATE, FLAG_POSTLOAD_PENDING, FLAG_RESETTING_DETACHED_STATE, FLAG_RETRIEVING_DETACHED_STATE, FLAG_STORING_PC, FLAG_UPDATING_EMBEDDING_FIELDS_WITH_OWNER, flags, HOLLOWFIELDMANAGER, loadedFields, LOCALISER, lock, lockMode, myEC, myFP, myID, myInternalID, myLC, myVersion, objectType, objectValGenerators, persistenceFlags, restoreValues, savedFlags, savedLoadedFields, transactionalVersion
EMBEDDED_COLLECTION_ELEMENT_PC, EMBEDDED_MAP_KEY_PC, EMBEDDED_MAP_VALUE_PC, EMBEDDED_PC, ORIGINAL_FIELD_VALUE_KEY_PREFIX, PC
Constructor and Description |
---|
ReferentialJDOStateManager(ExecutionContext ec,
AbstractClassMetaData cmd)
Constructor for object of specified type managed by the provided ExecutionContext.
|
Modifier and Type | Method and Description |
---|---|
void |
changeActivityState(ActivityState activityState)
Change the activity state to a particular state.
|
void |
connect(ExecutionContext ec,
AbstractClassMetaData cmd)
Method to (re)connect the provider to the specified ExecutionContext and object type.
|
void |
disconnect()
Disconnect the provider from the ExecutionContext and PC object.
|
void |
updateFieldAfterInsert(Object pc,
int fieldNumber)
Marks the given field as being required to be updated when the specified object has been inserted.
|
attach, attach, attachCopy, checkInheritance, clearFields, clearLoadedFlags, clearNonPrimaryKeyFields, clearSavedFields, copyFieldsFromObject, deletePersistent, detach, detachCopy, disconnectClone, dump, enlistInTransaction, evictFromTransaction, flush, getBooleanField, getByteField, getCharField, getDoubleField, getEmbeddedOwners, getExternalObjectId, getExternalObjectId, getFloatField, getIntField, getLongField, getObject, getObjectField, getObjectId, getPersistenceManager, getReferencedPC, getShortField, getStringField, getTransactionalObjectId, getTransactionalVersion, getVersion, getVersion, initialiseForCachedPC, initialiseForDetached, initialiseForEmbedded, initialiseForHollow, initialiseForHollowAppId, initialiseForHollowPreConstructed, initialiseForPersistentClean, initialiseForPersistentNew, initialiseForPNewToBeDeleted, initialiseForTransactionalTransient, isDeleted, isDirty, isLoaded, isLoaded, isNew, isPersistent, isTransactional, loadField, loadFieldValues, loadSpecifiedFields, loadUnloadedFields, loadUnloadedFieldsInFetchPlan, loadUnloadedFieldsInFetchPlanAndVersion, loadUnloadedFieldsOfClassInFetchPlan, makeDirty, makeDirty, makePersistent, makeTransactional, makeTransient, nullifyFields, peekField, postStateChange, postWriteField, preSerialize, preWriteField, providedBooleanField, providedByteField, providedCharField, providedDoubleField, providedFloatField, providedIntField, providedLongField, providedObjectField, providedShortField, providedStringField, provideField, provideField, provideFields, refreshFieldsInFetchPlan, refreshLoadedFields, registerTransactional, replaceAllLoadedSCOFieldsWithValues, replaceAllLoadedSCOFieldsWithWrappers, replaceField, replaceField, replaceField, replaceFieldMakeDirty, replaceFields, replaceFields, replaceFieldValue, replaceManagedPC, replaceNonLoadedFields, replaceStateManager, replacingBooleanField, replacingByteField, replacingCharField, replacingDetachedState, replacingDoubleField, replacingFlags, replacingFloatField, replacingIntField, replacingLongField, replacingObjectField, replacingShortField, replacingStateManager, replacingStringField, resetDetachState, restoreFields, retrieveDetachState, runReachability, saveFields, setBooleanField, setByteField, setCharField, setDoubleField, setFloatField, setIntField, setLongField, setObjectField, setPostStoreNewObjectId, setShortField, setStringField, unwrapSCOField, updateField, validate, wrapSCOField
areFieldsLoaded, becomingDeleted, clearDirtyFlags, clearDirtyFlags, clearFieldsByNumbers, containsAssociatedValue, evict, getAllFieldsLoaded, getAssociatedValue, getCallbackHandler, getClassMetaData, getDirtyFieldNames, getDirtyFieldNumbers, getDirtyFields, getExecutionContext, getFieldNumbersOfLoadedOrDirtyFields, getInternalObjectId, getLifecycleState, getLoadedFieldNames, getLoadedFieldNumbers, getLoadedFields, getLockMode, getObjectAsPrintable, getObjectValueGenerator, getTransactionalVersion, internalDeletePersistent, isAttaching, isChangingState, isDeleting, isDetaching, isDisconnecting, isEmbedded, isFieldLoaded, isFlushedNew, isFlushedToDatastore, isFlushing, isInserting, isMakingTransient, isPostLoadPending, isResettingDetachedState, isRestoreValues, isRetrievingDetachedState, isStoringPC, isWaitingToBeFlushedToDatastore, loadFieldFromDatastore, loadFieldsFromDatastore, loadFieldsFromLevel2Cache, loadFieldsInFetchPlan, locate, lock, makeNontransactional, makePersistentTransactionalTransient, markAsFlushed, markForInheritanceValidation, markPKFieldsAsLoaded, postCommit, preBegin, preRollback, preStateChange, refresh, removeAssociatedValue, retrieve, setAssociatedValue, setFlushedNew, setFlushing, setPcObjectType, setStoringPC, setTransactionalVersion, setVersion, toString, transitionReadField, transitionWriteField, unloadField, unloadNonFetchPlanFields, unlock, unsetStoringPC, updateLevel2CacheForFields
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
becomingDeleted, evict, getAllFieldsLoaded, getAssociatedValue, getClassMetaData, getDirtyFieldNames, getDirtyFieldNumbers, getDirtyFields, getExecutionContext, getInternalObjectId, getLifecycleState, getLoadedFieldNames, getLoadedFieldNumbers, getLoadedFields, getLockMode, getObjectAsPrintable, isDeleting, isEmbedded, isFieldLoaded, isFlushedNew, isFlushedToDatastore, isInserting, isRestoreValues, isWaitingToBeFlushedToDatastore, loadFieldFromDatastore, loadFieldsInFetchPlan, locate, lock, makeNontransactional, makePersistentTransactionalTransient, markAsFlushed, markForInheritanceValidation, postCommit, preBegin, preRollback, refresh, removeAssociatedValue, retrieve, setAssociatedValue, setFlushedNew, setFlushing, setPcObjectType, setStoringPC, setTransactionalVersion, setVersion, unloadField, unloadNonFetchPlanFields, unlock, unsetStoringPC
public ReferentialJDOStateManager(ExecutionContext ec, AbstractClassMetaData cmd)
ec
- ExecutionContextcmd
- the metadata for the class.public void connect(ExecutionContext ec, AbstractClassMetaData cmd)
AbstractStateManager
connect
in interface ObjectProvider
connect
in class JDOStateManager
public void disconnect()
disconnect
in interface ObjectProvider
disconnect
in class JDOStateManager
public void changeActivityState(ActivityState activityState)
changeActivityState
in interface ObjectProvider
changeActivityState
in class JDOStateManager
activityState
- the new statepublic void updateFieldAfterInsert(Object pc, int fieldNumber)
updateFieldAfterInsert
in interface ObjectProvider
updateFieldAfterInsert
in class JDOStateManager
pc
- The Persistable objectfieldNumber
- Number of the field.Copyright © 2021. All rights reserved.