|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.queries.DatabaseQuery
org.eclipse.persistence.queries.ModifyQuery
org.eclipse.persistence.queries.ObjectLevelModifyQuery
org.eclipse.persistence.queries.WriteObjectQuery
public class WriteObjectQuery
Purpose: Used for inserting or updating objects WriteObjectQuery determines whether to perform a insert or an update on the database.
Responsibilities:
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 | |
---|---|
WriteObjectQuery()
|
|
WriteObjectQuery(Call call)
|
|
WriteObjectQuery(java.lang.Object objectToWrite)
|
Method Summary | |
---|---|
void |
executeCommit()
INTERNAL: Perform a does exist check to decide whether to perform an insert or update and delegate the work to the mechanism. |
void |
executeCommitWithChangeSet()
INTERNAL: Perform a does exist check to decide whether to perform an insert or update and delegate the work to the mechanism. |
java.lang.Object |
executeDatabaseQuery()
INTERNAL: Perform a does exist check to decide whether to perform an insert or update and delegate the work to the mechanism. |
protected QueryRedirector |
getDefaultRedirector()
INTERNAL: Returns the specific default redirector for this query type. |
boolean |
isWriteObjectQuery()
PUBLIC: Return if this is a write object query. |
void |
prepareForExecution()
INTERNAL: Prepare the receiver for execution in a session. |
Methods inherited from class org.eclipse.persistence.queries.ObjectLevelModifyQuery |
---|
checkDescriptor, executeInUnitOfWork, executeInUnitOfWorkObjectLevelModifyQuery, getBackupClone, getObject, getObjectChangeSet, getPrimaryKey, getReferenceClass, getReferenceClassName, isObjectLevelModifyQuery, prepare, 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 WriteObjectQuery()
public WriteObjectQuery(java.lang.Object objectToWrite)
public WriteObjectQuery(Call call)
Method Detail |
---|
public java.lang.Object executeDatabaseQuery() throws DatabaseException, OptimisticLockException
executeDatabaseQuery
in class DatabaseQuery
DatabaseException
- - an error has occurred on the database
OptimisticLockException
- - an error has occurred using the optimistic lock featurepublic void executeCommit() throws DatabaseException, OptimisticLockException
DatabaseException
OptimisticLockException
public void executeCommitWithChangeSet() throws DatabaseException, OptimisticLockException
DatabaseException
OptimisticLockException
protected QueryRedirector getDefaultRedirector()
getDefaultRedirector
in class DatabaseQuery
public boolean isWriteObjectQuery()
isWriteObjectQuery
in class DatabaseQuery
public void prepareForExecution() throws QueryException
prepareForExecution
in class ObjectLevelModifyQuery
QueryException
|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |