|
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.InsertObjectQuery
public class InsertObjectQuery
Purpose: Used for inserting new objects into the database.
Description: 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 | |
---|---|
InsertObjectQuery()
PUBLIC: Default constructor. |
|
InsertObjectQuery(Call call)
PUBLIC: Create an insert query with the custom call. |
|
InsertObjectQuery(java.lang.Object objectToInsert)
PUBLIC: Create an insert query with the object being inserted. |
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 insert. |
void |
executeCommitWithChangeSet()
INTERNAL: Perform an insert. |
protected QueryRedirector |
getDefaultRedirector()
INTERNAL: Returns the specific default redirector for this query type. |
boolean |
isInsertObjectQuery()
PUBLIC: Return if this is an insert 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 InsertObjectQuery()
public InsertObjectQuery(java.lang.Object objectToInsert)
public InsertObjectQuery(Call call)
Method Detail |
---|
public void executeCommit() throws DatabaseException
executeCommit
in class WriteObjectQuery
DatabaseException
public void executeCommitWithChangeSet() throws DatabaseException
executeCommitWithChangeSet
in class WriteObjectQuery
DatabaseException
protected QueryRedirector getDefaultRedirector()
getDefaultRedirector
in class WriteObjectQuery
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
public boolean isInsertObjectQuery()
isInsertObjectQuery
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 |