|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
org.eclipse.persistence.queries.DatabaseQuery
org.eclipse.persistence.queries.ModifyQuery
org.eclipse.persistence.queries.ObjectLevelModifyQuery
org.eclipse.persistence.queries.WriteObjectQuery
org.eclipse.persistence.queries.UpdateObjectQuery
public class UpdateObjectQuery
Purpose: Used for updating existing objects into the database. This class does not have much behavior. It inherits most of it's behavior from WriteObjectQuery
| Field Summary |
|---|
| Fields inherited from class org.eclipse.persistence.queries.ObjectLevelModifyQuery |
|---|
backupClone, object, objectChangeSet, primaryKey |
| Fields inherited from class org.eclipse.persistence.queries.ModifyQuery |
|---|
forceBatchStatementExecution, modifyRow |
| Constructor Summary | |
|---|---|
UpdateObjectQuery()PUBLIC: Default constructor. |
|
UpdateObjectQuery(Call call)PUBLIC: Create an update query with the custom call. |
|
UpdateObjectQuery(java.lang.Object objectToUpdate)PUBLIC: Create an update query with the object being updated. |
|
| Method Summary | |
|---|---|
protected DatabaseQuery |
checkForCustomQuery(org.eclipse.persistence.internal.sessions.AbstractSession session, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow)INTERNAL: Check to see if a custom query should be used for this query. |
void |
executeCommit()INTERNAL: Perform an update. |
void |
executeCommitWithChangeSet()INTERNAL: Perform an update. |
protected QueryRedirector |
getDefaultRedirector()INTERNAL: Returns the specific default redirector for this query type. |
boolean |
isUpdateObjectQuery()PUBLIC: Return if this is an update object query. |
protected void |
prepare()INTERNAL: Prepare the receiver for execution in a session. |
protected void |
prepareCustomQuery(DatabaseQuery customQuery)INTERNAL: Set the properties needed to be cascaded into the custom query. |
| Methods inherited from class org.eclipse.persistence.queries.WriteObjectQuery |
|---|
executeDatabaseQuery, isWriteObjectQuery, prepareForExecution |
| Methods inherited from class org.eclipse.persistence.queries.ObjectLevelModifyQuery |
|---|
checkDescriptor, executeInUnitOfWork, executeInUnitOfWorkObjectLevelModifyQuery, getBackupClone, getObject, getObjectChangeSet, getPrimaryKey, getReferenceClass, getReferenceClassName, isObjectLevelModifyQuery, resetMonitorName, setBackupClone, setObject, setObjectChangeSet, setPrimaryKey, toString |
| Methods inherited from class org.eclipse.persistence.queries.ModifyQuery |
|---|
forceBatchStatementExecution, getModifyRow, isModifyQuery, setForceBatchStatementExecution, setModifyRow |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateObjectQuery()
public UpdateObjectQuery(java.lang.Object objectToUpdate)
public UpdateObjectQuery(Call call)
| Method Detail |
|---|
public void executeCommit()
throws DatabaseException,
OptimisticLockException
executeCommit in class WriteObjectQueryDatabaseExceptionOptimisticLockException
public void executeCommitWithChangeSet()
throws DatabaseException,
OptimisticLockException
executeCommitWithChangeSet in class WriteObjectQueryDatabaseExceptionOptimisticLockExceptionprotected void prepare()
prepare in class ObjectLevelModifyQuery
protected DatabaseQuery checkForCustomQuery(org.eclipse.persistence.internal.sessions.AbstractSession session,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow)
checkForCustomQuery in class DatabaseQueryprotected void prepareCustomQuery(DatabaseQuery customQuery)
prepareCustomQuery in class DatabaseQueryprotected QueryRedirector getDefaultRedirector()
getDefaultRedirector in class WriteObjectQuerypublic boolean isUpdateObjectQuery()
isUpdateObjectQuery in class DatabaseQuery
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||