Purpose: Abstract class for all object modify queries.
Responsibilities:
| Modifier and Type | Field and Description |
|---|---|
| protected Object | |
| protected Object | |
| protected ObjectChangeSet | |
| protected Object |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkDescriptor(AbstractSession session)
Overrides org. |
| public Object | executeInUnitOfWork(UnitOfWorkImpl
- the session in which the receiver will be executed. unitOfWork, AbstractRecord - the arguments translationRow)Overrides org. |
| protected Object | executeInUnitOfWorkObjectLevelModifyQuery(UnitOfWorkImpl unitOfWork, AbstractRecord translationRow)
INTERNAL: This code was moved from UnitOfWork.internalExecuteQuery. |
| public Object | |
| public Object | |
| public ObjectChangeSet | |
| public Object | |
| public Class | getReferenceClass()
Overrides org. |
| public String | getReferenceClassName()
Overrides org. |
| public boolean | isObjectLevelModifyQuery()
Overrides org. |
| protected void | prepare()
Overrides org. |
| public void | prepareForExecution()
Overrides org. |
| public void | resetMonitorName()
Overrides org. |
| public void | setBackupClone(Object backupClone)
INTERNAL: Set the backup clone of the object from the unit of work. |
| public void | |
| public void | setObjectChangeSet(ObjectChangeSet changeSet)
INTERNAL: Set the ObjectChangeSet representing the object to be written |
| public void | |
| public String | toString()
Overrides org. |
| backupClone | back to summary |
|---|---|
| protected Object backupClone | |
| object | back to summary |
|---|---|
| protected Object object | |
| objectChangeSet | back to summary |
|---|---|
| protected ObjectChangeSet objectChangeSet | |
| primaryKey | back to summary |
|---|---|
| protected Object primaryKey | |
| ObjectLevelModifyQuery | back to summary |
|---|---|
| protected ObjectLevelModifyQuery() PUBLIC: Initialize the state of the query. | |
| checkDescriptor | back to summary |
|---|---|
| public void checkDescriptor(AbstractSession session) throws QueryException Overrides org. INTERNAL: Ensure that the descriptor has been set.
| |
| executeInUnitOfWork | back to summary |
|---|---|
| public Object executeInUnitOfWork(UnitOfWorkImpl unitOfWork, AbstractRecord translationRow) throws DatabaseException Overrides org. INTERNAL: All have done is move code from UnitOfWork.internalExecuteQuery
| |
| executeInUnitOfWorkObjectLevelModifyQuery | back to summary |
|---|---|
| protected Object executeInUnitOfWorkObjectLevelModifyQuery(UnitOfWorkImpl unitOfWork, AbstractRecord translationRow) throws DatabaseException, OptimisticLockException INTERNAL: This code was moved from UnitOfWork.internalExecuteQuery. | |
| getBackupClone | back to summary |
|---|---|
| public Object getBackupClone() INTERNAL: Return the backup clone of the object from the unit of work. | |
| getObject | back to summary |
|---|---|
| public Object getObject() PUBLIC: Return the object required for modification. | |
| getObjectChangeSet | back to summary |
|---|---|
| public ObjectChangeSet getObjectChangeSet() PUBLIC: Return the ObjectChangeSet representing the object being changed | |
| getPrimaryKey | back to summary |
|---|---|
| public Object getPrimaryKey() INTERNAL: Get the primary key for the query | |
| getReferenceClass | back to summary |
|---|---|
| public Class Overrides org. Return the domain class associated with this query.
| |
| getReferenceClassName | back to summary |
|---|---|
| public String getReferenceClassName() Overrides org. INTERNAL: Return the reference class for a query Note: Although the API is designed to avoid classpath dependencies for the MW, since the object is specified at runtime, this will not be an issue.
| |
| isObjectLevelModifyQuery | back to summary |
|---|---|
| public boolean isObjectLevelModifyQuery() Overrides org. PUBLIC: Return if this is an object level modify query.
| |
| prepare | back to summary |
|---|---|
| protected void prepare() throws QueryException Overrides org. INTERNAL: Prepare the receiver for execution in a session. In particular check that the tables on the descriptor are set.
| |
| prepareForExecution | back to summary |
|---|---|
| public void prepareForExecution() throws QueryException Overrides org. INTERNAL: Prepare the receiver for execution in a session. In particular check that the tables on the descriptor are set.
| |
| resetMonitorName | back to summary |
|---|---|
| public void resetMonitorName() Overrides org. INTERNAL: Return the name to use for the query in performance monitoring.
| |
| setBackupClone | back to summary |
|---|---|
| public void setBackupClone(Object backupClone) INTERNAL: Set the backup clone of the object from the unit of work. | |
| setObject | back to summary |
|---|---|
| public void setObject(Object object) PUBLIC: (REQUIRED) Set the object required for modification. | |
| setObjectChangeSet | back to summary |
|---|---|
| public void setObjectChangeSet(ObjectChangeSet changeSet) INTERNAL: Set the ObjectChangeSet representing the object to be written | |
| setPrimaryKey | back to summary |
|---|---|
| public void setPrimaryKey(Object primaryKey) INTERNAL: Set the primary key for the query. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |