|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
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 WriteObjectQuery
DatabaseException
OptimisticLockException
public void executeCommitWithChangeSet() throws DatabaseException, OptimisticLockException
executeCommitWithChangeSet
in class WriteObjectQuery
DatabaseException
OptimisticLockException
protected 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 DatabaseQuery
protected void prepareCustomQuery(DatabaseQuery customQuery)
prepareCustomQuery
in class DatabaseQuery
protected QueryRedirector getDefaultRedirector()
getDefaultRedirector
in class WriteObjectQuery
public boolean isUpdateObjectQuery()
isUpdateObjectQuery
in class DatabaseQuery
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |