| Modifier and Type | Class and Description |
|---|---|
class |
SQLStateManager |
| Modifier and Type | Method and Description |
|---|---|
StateManager |
PersistenceManager.findOrCreateStateManager(Object oid,
Class pcClass)
Returns StateManager instance for this Object Id.
|
StateManager |
VersionConsistencyCache.get(Class pcType,
Object oid)
Returns an SM, if found, else null.
|
StateManager |
PersistenceStore.getStateManager(Class classType) |
StateManager |
SQLStoreManager.getStateManager(Class classType) |
StateManager |
PersistenceManager.getStateManager(Object pc) |
StateManager |
PersistenceCapable.jdoGetStateManager()
Returns the associated state manager.
|
StateManager |
SCO.makeDirty()
Marks object dirty
|
StateManager |
VersionConsistencyCache.put(Class pcType,
Object oid,
StateManager sm)
Puts the given StateManager into a map that is keyed by the given OID.
|
StateManager |
VersionConsistencyCache.remove(Class pcType,
Object oid)
Removes entry based on pc and oid.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SQLStateManager.addDependency(StateManager sm)
This method adds the dependency between this StateManager
and the other.
|
void |
StateManager.addDependency(StateManager sm)
Adds another StateManager to this StateManager dependencies list.
|
void |
SCO.applyUpdates(StateManager sm,
boolean modified)
Apply changes (can be a no-op)
|
void |
SQLStateManager.copyFields(StateManager source) |
void |
StateManager.copyFields(StateManager source)
Copies field values from
source to this
StateManager's fields. |
void |
PersistenceManager.deregisterInstance(Object oid,
StateManager sm)
Deregister an instance with this object Id, only if it holds the same instance.
|
boolean |
PersistenceManager.initializeFromVersionConsistencyCache(StateManager sm)
Looks up the given instance in the Version Consistency cache and
if found, populates it from the cached values.
|
Object |
PersistenceCapable.jdoNewInstance(StateManager statemanager)
Creates an instance of the same class as this object.
|
void |
PersistenceCapable.jdoSetStateManager(StateManager sm)
Sets the associated state manager.
|
Object |
PersistenceManager.newInstance(StateManager sm) |
StateManager |
VersionConsistencyCache.put(Class pcType,
Object oid,
StateManager sm)
Puts the given StateManager into a map that is keyed by the given OID.
|
void |
PersistenceManager.registerInstance(StateManager sm,
Object oid)
Called by StateManager to register persistent instance at the rollback if
it was removed from the global (weak) cache as the result of the replace
operation.
|
void |
PersistenceManager.registerInstance(StateManager sm,
Object oid,
boolean throwDuplicateException,
boolean forceRegister)
Called by StateManager to register new instance.
|
void |
UpdateObjectDesc.setObjectInfo(StateManager biStateManager,
StateManager aiStateManager,
int action) |
void |
PersistenceManager.setStateManager(Object pc,
StateManager sm) |
void |
SQLStateManager.updatePersistent(StateManager next)
Stores the associated object in the datastore.
|
void |
StateManager.updatePersistent(StateManager next)
...
|
| Modifier and Type | Method and Description |
|---|---|
StateManager |
PersistenceManagerImpl.findOrCreateStateManager(Object oid,
Class pcClass)
Called internally by
RetrieveDesc to lookup an instance
in the cache, or prepare new instance to be populated with values from the datastore. |
StateManager |
VersionConsistencyCacheImpl.get(Class pcType,
Object oid) |
StateManager |
PersistenceManagerImpl.getStateManager(Object pc) |
StateManager |
VersionConsistencyCacheImpl.put(Class pcType,
Object oid,
StateManager sm) |
StateManager |
VersionConsistencyCacheImpl.remove(Class pcType,
Object oid) |
| Modifier and Type | Method and Description |
|---|---|
void |
PersistenceManagerImpl.deregisterInstance(Object oid,
StateManager sm) |
boolean |
PersistenceManagerImpl.initializeFromVersionConsistencyCache(StateManager sm) |
Object |
PersistenceManagerImpl.newInstance(StateManager sm)
Returns a new instance of the object defined by the given
StateManager
|
StateManager |
VersionConsistencyCacheImpl.put(Class pcType,
Object oid,
StateManager sm) |
void |
PersistenceManagerImpl.registerInstance(StateManager sm,
Object oid)
Register instance in the weak cache only.
|
void |
PersistenceManagerImpl.registerInstance(StateManager sm,
Object oid,
boolean throwDuplicateException,
boolean forceRegister)
Register instance in the transactional cache
|
void |
PersistenceManagerImpl.setStateManager(Object pc,
StateManager sm) |
| Modifier and Type | Method and Description |
|---|---|
Object |
FieldDesc.convertValue(Object value,
StateManager sm) |
Object |
FieldDesc.createSCO(Object value,
StateManager sm)
Creates a new SCO instance.
|
Object |
FieldDesc.getValue(StateManager sm) |
void |
LocalFieldDesc.incrementValue(StateManager sm)
Increments this field in the instance managed by state manager
sm by one. |
void |
FieldDesc.setValue(StateManager sm,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
StateManager |
SqlTimestamp.makeDirty()
Marks object dirty
|
StateManager |
Vector.makeDirty()
Marks object dirty
|
StateManager |
SqlTime.makeDirty()
Marks object dirty
|
StateManager |
SqlDate.makeDirty()
Marks object dirty
|
StateManager |
Date.makeDirty()
Marks object dirty
|
StateManager |
ArrayList.makeDirty()
Marks object dirty
|
StateManager |
HashSet.makeDirty()
Marks object dirty
|
| Modifier and Type | Method and Description |
|---|---|
void |
SqlTimestamp.applyUpdates(StateManager sm,
boolean modified)
Apply changes (no-op)
|
void |
Vector.applyUpdates(StateManager sm,
boolean modified)
Apply changes (can be a no-op)
|
void |
SqlTime.applyUpdates(StateManager sm,
boolean modified)
Apply changes (no-op)
|
void |
SqlDate.applyUpdates(StateManager sm,
boolean modified)
Apply changes (no-op)
|
void |
Date.applyUpdates(StateManager sm,
boolean modified)
Apply changes (no-op)
|
void |
ArrayList.applyUpdates(StateManager sm,
boolean modified)
Apply changes (can be a no-op)
|
void |
HashSet.applyUpdates(StateManager sm,
boolean modified)
Apply changes (can be a no-op)
|
| Modifier and Type | Method and Description |
|---|---|
void |
UpdateObjectDescImpl.setObjectInfo(StateManager biStateManager,
StateManager aiStateManager,
int action)
We send the AfterImage for updates and inserts
but for updates it will only hold values for updated attributes (unless
the class is configured to send the whole AfterImage, also we'll let the
concurrency interface affect the sent AfterImage (and the sent
BeforeImage)).
|
Copyright © 2019. All rights reserved.