public abstract class ObjectLevelModifyQuery extends ModifyQuery
Purpose: Abstract class for all object modify queries.
Responsibilities:
DatabaseQuery.ParameterType| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
backupClone |
protected java.lang.Object |
object |
protected org.eclipse.persistence.internal.sessions.ObjectChangeSet |
objectChangeSet |
protected java.lang.Object |
primaryKey |
forceBatchStatementExecution, isBatchExecutionSupported, modifyRowaccessors, allowNativeSQLQuery, argumentFields, argumentParameterTypes, arguments, argumentTypeNames, argumentTypes, argumentValues, BATCH_FETCH_PROPERTY, CascadeAggregateDelete, CascadeAllParts, CascadeByMapping, CascadeDependentParts, cascadePolicy, CascadePrivateParts, descriptor, descriptors, doNotRedirect, executionSession, flushOnExecute, hintString, isCustomQueryUsed, isExecutionClone, isNativeConnectionRequired, isPrepared, isUserDefined, isUserDefinedSQLCall, monitorName, name, NoCascading, nullableArguments, parameterDelimiter, partitioningPolicy, properties, queryMechanism, queryTimeout, redirector, session, sessionName, shouldBindAllParameters, shouldCacheStatement, shouldCloneCall, shouldMaintainCache, shouldPrepare, shouldRetrieveBypassCache, shouldStoreBypassCache, shouldUseWrapperPolicy, shouldValidateUpdateCallCacheUse, sourceMapping, translationRow| Constructor and Description |
|---|
ObjectLevelModifyQuery()
PUBLIC:
Initialize the state of the query.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
resetMonitorName()
INTERNAL:
Return the name to use for the query in performance monitoring.
|
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() |
forceBatchStatementExecution, getModifyRow, isBatchExecutionSupported, isModifyQuery, setForceBatchStatementExecution, setIsBatchExecutionSupported, setModifyRowaddArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgumentByTypeName, addArgumentValue, addArgumentValues, addCall, addStatement, bindAllParameters, buildArgumentFields, buildSelectionCriteria, cacheStatement, cascadeAllParts, cascadeByMapping, cascadeOnlyDependentParts, cascadePrivateParts, checkEarlyReturn, checkForCustomQuery, checkPrepare, checkPrepare, clone, clonedQueryExecutionComplete, convertClassNamesToClasses, copyFromQuery, dontBindAllParameters, dontCacheStatement, dontCascadeParts, dontMaintainCache, execute, executeDatabaseQuery, extractRemoteResult, getAccessor, getAccessors, getArgumentParameterTypes, getArguments, getArgumentTypeNames, getArgumentTypes, getArgumentValues, getBatchObjects, getCall, getCascadePolicy, getDatasourceCall, getDatasourceCalls, getDefaultRedirector, getDescriptor, getDescriptors, getDomainClassNounName, getDoNotRedirect, getEJBQLString, getExecutionSession, getFlushOnExecute, getHintString, getJPQLString, getMonitorName, getName, getNullableArguments, getParameterDelimiter, getParameterDelimiterChar, getPartitioningPolicy, getProperties, getProperty, getQueryMechanism, getQueryNounName, getQueryTimeout, getRedirector, getRedirectorForQuery, getSelectionCriteria, getSensorName, getSession, getSessionName, getShouldBindAllParameters, getSourceMapping, getSQLStatement, getSQLString, getSQLStrings, getTranslatedSQLString, getTranslatedSQLStrings, getTranslationRow, hasAccessor, hasArguments, hasNullableArguments, hasProperties, hasQueryMechanism, hasSessionName, ignoreBindAllParameters, ignoreCacheStatement, isCallQuery, isCascadeOfAggregateDelete, isCustomQueryUsed, isCustomSelectionQuery, isDataModifyQuery, isDataReadQuery, isDefaultPropertiesQuery, isDeleteAllQuery, isDeleteObjectQuery, isDirectReadQuery, isExecutionClone, isExpressionQuery, isInsertObjectQuery, isJPQLCallQuery, isModifyAllQuery, isNativeConnectionRequired, isObjectBuildingQuery, isObjectLevelReadQuery, isPrepared, isReadAllQuery, isReadObjectQuery, isReadQuery, isReportQuery, isResultSetMappingQuery, isSQLCallQuery, isUpdateAllQuery, isUpdateObjectQuery, isUserDefined, isUserDefinedSQLCall, isValueReadQuery, isWriteObjectQuery, maintainCache, prepareCall, prepareCustomQuery, prepareForRemoteExecution, prepareFromQuery, prepareInternal, redirectQuery, remoteExecute, remoteExecute, removeProperty, replaceValueHoldersIn, retrieveBypassCache, rowFromArguments, setAccessor, setAccessors, setAllowNativeSQLQuery, setArguments, setArgumentTypeNames, setArgumentTypes, setArgumentValues, setBatchObjects, setCall, setCascadePolicy, setDatasourceCall, setDescriptor, setDoNotRedirect, setEJBQLString, setExecutionSession, setFlushOnExecute, setHintString, setIsCustomQueryUsed, setIsExecutionClone, setIsNativeConnectionRequired, setIsPrepared, setIsUserDefined, setIsUserDefinedSQLCall, setJPQLString, setName, setNullableArguments, setParameterDelimiter, setPartitioningPolicy, setProperties, setProperty, setQueryMechanism, setQueryTimeout, setRedirector, setSelectionCriteria, setSession, setSessionName, setShouldBindAllParameters, setShouldBindAllParameters, setShouldCacheStatement, setShouldMaintainCache, setShouldPrepare, setShouldRetrieveBypassCache, setShouldStoreBypassCache, setShouldUseWrapperPolicy, setShouldValidateUpdateCallCacheUse, setSourceMapping, setSQLStatement, setSQLString, setTranslationRow, shouldAllowNativeSQLQuery, shouldBindAllParameters, shouldCacheStatement, shouldCascadeAllParts, shouldCascadeByMapping, shouldCascadeOnlyDependentParts, shouldCascadeParts, shouldCascadePrivateParts, shouldCloneCall, shouldIgnoreBindAllParameters, shouldIgnoreCacheStatement, shouldMaintainCache, shouldPrepare, shouldPrepare, shouldRetrieveBypassCache, shouldStoreBypassCache, shouldUseWrapperPolicy, shouldValidateUpdateCallCacheUse, storeBypassCacheprotected java.lang.Object primaryKey
protected java.lang.Object object
protected org.eclipse.persistence.internal.sessions.ObjectChangeSet objectChangeSet
protected java.lang.Object backupClone
public ObjectLevelModifyQuery()
public void checkDescriptor(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws QueryException
checkDescriptor in class DatabaseQueryQueryExceptionpublic java.lang.Object executeInUnitOfWork(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow)
throws DatabaseException
executeInUnitOfWork in class DatabaseQueryunitOfWork - - the session in which the receiver will be executed.translationRow - - the argumentsDatabaseException - - 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
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 DatabaseQuerypublic java.lang.String getReferenceClassName()
getReferenceClassName in class DatabaseQuerypublic void resetMonitorName()
resetMonitorName in class DatabaseQuerypublic boolean isObjectLevelModifyQuery()
isObjectLevelModifyQuery in class DatabaseQueryprotected void prepare()
throws QueryException
prepare in class DatabaseQueryQueryExceptionpublic void prepareForExecution()
throws QueryException
prepareForExecution in class DatabaseQueryQueryExceptionpublic 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