Modifier and Type | Method and Description |
---|---|
void |
VersionLockingPolicy.addLockValuesToTranslationRow(ObjectLevelModifyQuery query)
INTERNAL:
This method adds the lock value to the translation row of the
passed in query.
|
void |
VersionLockingPolicy.setupWriteFieldsForInsert(ObjectLevelModifyQuery query)
INTERNAL:
This method must be included in any locking policy.
|
void |
VersionLockingPolicy.updateRowAndObjectForUpdate(ObjectLevelModifyQuery query,
Object domainObject)
INTERNAL:
This method updates the modify row, and the domain object
with the new lock value.
|
protected void |
VersionLockingPolicy.updateWriteLockValueForWrite(ObjectLevelModifyQuery query,
Object lockValue)
INTERNAL:
Update the row, object and change set with the version value.
|
void |
VersionLockingPolicy.writeLockValueIntoRow(ObjectLevelModifyQuery query,
Object domainObject)
INTERNAL:
This method updates the modify row with the old lock value.
|
Constructor and Description |
---|
DescriptorEvent(int eventCode,
ObjectLevelModifyQuery query)
PUBLIC:
Most events are trigger from queries, so this is a helper method.
|
Modifier and Type | Field and Description |
---|---|
protected ObjectLevelModifyQuery |
OptimisticLockException.query
Store the query that raised the optimistic violation.
|
Modifier and Type | Method and Description |
---|---|
ObjectLevelModifyQuery |
OptimisticLockException.getQuery()
PUBLIC:
Return the query in which the problem was detected.
|
Modifier and Type | Method and Description |
---|---|
static OptimisticLockException |
OptimisticLockException.noVersionNumberWhenDeleting(Object object,
ObjectLevelModifyQuery query) |
static OptimisticLockException |
OptimisticLockException.noVersionNumberWhenUpdating(Object object,
ObjectLevelModifyQuery query) |
static OptimisticLockException |
OptimisticLockException.objectChangedSinceLastReadWhenDeleting(Object object,
ObjectLevelModifyQuery query) |
static OptimisticLockException |
OptimisticLockException.objectChangedSinceLastReadWhenUpdating(Object object,
ObjectLevelModifyQuery query) |
void |
OptimisticLockException.setQuery(ObjectLevelModifyQuery query)
INTERNAL:
Set the query in which the problem was detected.
|
Constructor and Description |
---|
OptimisticLockException(String theMessage,
ObjectLevelModifyQuery query)
INTERNAL:
TopLink exceptions should only be thrown by TopLink.
|
Modifier and Type | Method and Description |
---|---|
void |
OptimisticLockingPolicy.addLockValuesToTranslationRow(ObjectLevelModifyQuery query)
INTERNAL:
The method should update the translation row with the
correct write lock values.
|
AbstractRecord |
ObjectBuilder.buildRowForWhereClause(ObjectLevelModifyQuery query)
Build the row representation of an object.
|
void |
OptimisticLockingPolicy.setupWriteFieldsForInsert(ObjectLevelModifyQuery query)
INTERNAL:
Add the initial right lock values to the modify
row in the query.
|
void |
OptimisticLockingPolicy.updateRowAndObjectForUpdate(ObjectLevelModifyQuery query,
Object object)
INTERNAL:
This method should update the translation row, the modify
row and the domain object with th lock value.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AggregateMapping.buildAggregateModifyQuery(ObjectLevelModifyQuery sourceQuery,
ObjectLevelModifyQuery aggregateQuery,
Object sourceAttributeValue)
Initialize the aggregate query with the settings from the source query.
|
protected void |
AggregateCollectionMapping.executeEvent(int eventCode,
ObjectLevelModifyQuery query)
INTERNAL:
Execute a descriptor event for the specified event code.
|
protected void |
AggregateMapping.executeEvent(int eventCode,
ObjectLevelModifyQuery query)
INTERNAL:
Execute a descriptor event for the specified event code.
|
AbstractRecord |
AggregateCollectionMapping.getAggregateRow(ObjectLevelModifyQuery query,
Object object)
INTERNAL:
return the aggregate databaseRow with the primary keys from the source table and targer table
|
InsertObjectQuery |
AggregateCollectionMapping.getAndPrepareModifyQueryForInsert(ObjectLevelModifyQuery originalQuery,
Object object)
INTERNAL:
setup the modifyQuery for post insert/update and pre delete
|
Vector |
AggregateCollectionMapping.getReferenceObjectKeys(ObjectLevelModifyQuery query)
INTERNAL:
get reference object keys
|
protected void |
ManyToManyMapping.insertAddedObjectEntry(ObjectLevelModifyQuery query,
Object objectAdded)
INTERNAL:
An object was added to the collection during an update, insert it.
|
protected void |
AggregateCollectionMapping.objectAddedDuringUpdate(ObjectLevelModifyQuery query,
Object objectAdded,
ObjectChangeSet changeSet)
INTERNAL:
An object was added to the collection during an update, insert it if private.
|
protected void |
CollectionMapping.objectAddedDuringUpdate(ObjectLevelModifyQuery query,
Object objectAdded,
ObjectChangeSet changeSet)
INTERNAL:
An object was added to the collection during an update, insert it if private.
|
protected void |
ManyToManyMapping.objectAddedDuringUpdate(ObjectLevelModifyQuery query,
Object objectAdded,
ObjectChangeSet changeSet)
INTERNAL:
An object was added to the collection during an update, insert it if private.
|
protected void |
AggregateCollectionMapping.objectRemovedDuringUpdate(ObjectLevelModifyQuery query,
Object objectDeleted)
INTERNAL:
An object was removed to the collection during an update, delete it if private.
|
protected void |
CollectionMapping.objectRemovedDuringUpdate(ObjectLevelModifyQuery query,
Object objectDeleted)
INTERNAL:
An object was removed to the collection during an update, delete it if private.
|
protected void |
ManyToManyMapping.objectRemovedDuringUpdate(ObjectLevelModifyQuery query,
Object objectDeleted)
INTERNAL:
An object was removed to the collection during an update, delete it if private.
|
protected void |
CollectionMapping.objectUnchangedDuringUpdate(ObjectLevelModifyQuery query,
Object object)
INTERNAL:
An object is still in the collection, update it as it may have changed.
|
protected void |
AggregateCollectionMapping.objectUnchangedDuringUpdate(ObjectLevelModifyQuery query,
Object object,
Hashtable backupCloneKeyedCache,
CacheKey cachedKey)
INTERNAL:
An object is still in the collection, update it as it may have changed.
|
protected void |
CollectionMapping.objectUnchangedDuringUpdate(ObjectLevelModifyQuery query,
Object object,
Hashtable backupclones,
CacheKey keys)
INTERNAL:
An object is still in the collection, update it as it may have changed.
|
void |
AggregateCollectionMapping.prepareModifyQueryForDelete(ObjectLevelModifyQuery originalQuery,
ObjectLevelModifyQuery modifyQuery,
Object object)
INTERNAL:
setup the modifyQuery for pre delete
|
void |
AggregateCollectionMapping.prepareModifyQueryForUpdate(ObjectLevelModifyQuery originalQuery,
ObjectLevelModifyQuery modifyQuery,
Object object)
INTERNAL:
setup the modifyQuery for update,
|
protected Object |
CollectionMapping.readPrivateOwnedForObject(ObjectLevelModifyQuery modifyQuery)
INTERNAL:
All the privately owned parts are read
|
protected Object |
ObjectReferenceMapping.readPrivateOwnedForObject(ObjectLevelModifyQuery modifyQuery)
INTERNAL:
Reads the private owned object.
|
protected Object |
OneToOneMapping.readPrivateOwnedForObject(ObjectLevelModifyQuery modifyQuery)
INTERNAL:
Reads the private owned object.
|
protected boolean |
AggregateCollectionMapping.shouldObjectModifyCascadeToParts(ObjectLevelModifyQuery query)
Returns true as any process leading to object modification should also affect its privately owned parts
Usually used by write, insert, update and delete.
|
protected boolean |
ForeignReferenceMapping.shouldObjectModifyCascadeToParts(ObjectLevelModifyQuery query)
Returns true if any process leading to object modification should also affect its parts
Usually used by write, insert and update.
|
protected boolean |
OneToManyMapping.shouldObjectModifyCascadeToParts(ObjectLevelModifyQuery query)
Return whether any process leading to object modification
should also affect its parts.
|
protected boolean |
ForeignReferenceMapping.shouldObjectModifyCascadeToPartsForPreDelete(ObjectLevelModifyQuery query)
Return whether any process leading to object deletion should also affect its parts.
|
void |
DatabaseMapping.writeFromObjectIntoRowForWhereClause(ObjectLevelModifyQuery query,
AbstractRecord row)
INTERNAL:
A subclass should implement this method if it wants different behaviour.
|
void |
ObjectReferenceMapping.writeFromObjectIntoRowForWhereClause(ObjectLevelModifyQuery query,
AbstractRecord databaseRow)
INTERNAL:
Get a value from the object and set that in the respective field of the row.
|
Modifier and Type | Class and Description |
---|---|
class |
DeleteObjectQuery
Purpose: Used for deleting objects.
|
class |
InsertObjectQuery
Purpose:
Used for inserting new objects into the database.
|
class |
UpdateObjectQuery
Purpose:
Used for updating existing objects into the database.
|
class |
WriteObjectQuery
Purpose:
Used for inserting or updating objects
WriteObjectQuery determines whether to perform a insert or an update on the database.
|
Copyright © 2024. All rights reserved.