|
EclipseLink 2.1.2, build 'v20101206-r8635' 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
public abstract class ObjectLevelModifyQuery
Purpose: Abstract class for all object modify queries.
Responsibilities:
Field Summary | |
---|---|
protected java.lang.Object |
backupClone
|
protected java.lang.Object |
object
|
protected org.eclipse.persistence.internal.sessions.ObjectChangeSet |
objectChangeSet
|
protected java.lang.Object |
primaryKey
|
Fields inherited from class org.eclipse.persistence.queries.ModifyQuery |
---|
forceBatchStatementExecution, modifyRow |
Constructor Summary | |
---|---|
ObjectLevelModifyQuery()
PUBLIC: Initialize the state of the query. |
Method Summary | |
---|---|
void |
checkDescriptor(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Ensure that the descriptor has been set. |
java.lang.Object |
executeInUnitOfWork(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow)
INTERNAL: All have done is move code from UnitOfWork.internalExecuteQuery |
protected java.lang.Object |
executeInUnitOfWorkObjectLevelModifyQuery(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow)
INTERNAL: This code was moved from UnitOfWork.internalExecuteQuery. |
java.lang.Object |
getBackupClone()
INTERNAL: Return the backup clone of the object from the unit of work. |
java.lang.Object |
getObject()
PUBLIC: Return the object required for modification. |
org.eclipse.persistence.internal.sessions.ObjectChangeSet |
getObjectChangeSet()
PUBLIC: Return the ObjectChangeSet representing the object being changed |
java.lang.Object |
getPrimaryKey()
INTERNAL: Get the primary key for the query |
java.lang.Class |
getReferenceClass()
Return the domain class associated with this query. |
java.lang.String |
getReferenceClassName()
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. |
boolean |
isObjectLevelModifyQuery()
PUBLIC: Return if this is an object level modify query. |
protected void |
prepare()
INTERNAL: Prepare the receiver for execution in a session. |
void |
prepareForExecution()
INTERNAL: Prepare the receiver for execution in a session. |
void |
setBackupClone(java.lang.Object backupClone)
INTERNAL: Set the backup clone of the object from the unit of work. |
void |
setObject(java.lang.Object object)
PUBLIC: (REQUIRED) Set the object required for modification. |
void |
setObjectChangeSet(org.eclipse.persistence.internal.sessions.ObjectChangeSet changeSet)
INTERNAL: Set the ObjectChangeSet representing the object to be written |
void |
setPrimaryKey(java.lang.Object primaryKey)
INTERNAL: Set the primary key for the query. |
java.lang.String |
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 |
Field Detail |
---|
protected java.lang.Object primaryKey
protected java.lang.Object object
protected org.eclipse.persistence.internal.sessions.ObjectChangeSet objectChangeSet
protected java.lang.Object backupClone
Constructor Detail |
---|
public ObjectLevelModifyQuery()
Method Detail |
---|
public void checkDescriptor(org.eclipse.persistence.internal.sessions.AbstractSession session) throws QueryException
checkDescriptor
in class DatabaseQuery
QueryException
public java.lang.Object executeInUnitOfWork(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow) throws DatabaseException
executeInUnitOfWork
in class DatabaseQuery
unitOfWork
- - the session in which the receiver will be executed.translationRow
- - the arguments
DatabaseException
- - an error has occurred on the database.protected java.lang.Object executeInUnitOfWorkObjectLevelModifyQuery(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow) throws DatabaseException, OptimisticLockException
DatabaseException
OptimisticLockException
public java.lang.Object getBackupClone()
public java.lang.Object getObject()
public org.eclipse.persistence.internal.sessions.ObjectChangeSet getObjectChangeSet()
public java.lang.Object getPrimaryKey()
public java.lang.Class getReferenceClass()
getReferenceClass
in class DatabaseQuery
public java.lang.String getReferenceClassName()
getReferenceClassName
in class DatabaseQuery
public boolean isObjectLevelModifyQuery()
isObjectLevelModifyQuery
in class DatabaseQuery
protected void prepare() throws QueryException
prepare
in class DatabaseQuery
QueryException
public void prepareForExecution() throws QueryException
prepareForExecution
in class DatabaseQuery
QueryException
public void setBackupClone(java.lang.Object backupClone)
public void setObject(java.lang.Object object)
public void setObjectChangeSet(org.eclipse.persistence.internal.sessions.ObjectChangeSet changeSet)
public void setPrimaryKey(java.lang.Object primaryKey)
public java.lang.String toString()
toString
in class DatabaseQuery
|
EclipseLink 2.1.2, build 'v20101206-r8635' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |