public class InsertObjectQuery extends WriteObjectQuery
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
backupClone, object, objectChangeSet, primaryKeyforceBatchStatementExecution, modifyRowaccessor, arguments, argumentTypeNames, argumentTypes, argumentValues, CascadeAggregateDelete, CascadeAllParts, CascadeByMapping, CascadeDependentParts, cascadePolicy, CascadePrivateParts, descriptor, flushOnExecute, isPrepared, isUserDefined, name, NoCascading, properties, queryMechanism, session, sessionName, shouldBindAllParameters, shouldCacheStatement, shouldCloneCall, shouldMaintainCache, shouldPrepare, shouldUseWrapperPolicy, translationRowFalse, True, Undefined| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
executeCommit()
INTERNAL:
Perform an insert.
|
void |
executeShallowWrite()
INTERNAL:
Perform a shallow insert.
|
boolean |
isInsertObjectQuery()
PUBLIC:
Return if this is an insert object query.
|
protected void |
prepare()
INTERNAL:
Prepare the receiver for execution in a session.
|
doesObjectExist, executeCommitWithChangeSet, executeDatabaseQuery, isWriteObjectQuery, prepareForExecution, shouldDependentObjectBeDeleted, shouldObjectBeDeletedcheckDescriptor, executeInUnitOfWork, executeInUnitOfWorkObjectLevelModifyQuery, getBackupClone, getObject, getObjectChangeSet, getPrimaryKey, getReferenceClass, getReferenceClassName, isObjectLevelModifyQuery, setBackupClone, setObject, setObjectChangeSet, setPrimaryKey, toStringforceBatchStatementExecution, getModifyRow, isModifyQuery, setForceBatchStatementExecution, setModifyRowaddArgument, addArgument, addArgument, addArgumentByTypeName, addArgumentValue, addArgumentValues, addCall, addStatement, bindAllParameters, buildSelectionCriteria, cacheStatement, cascadeAllParts, cascadeByMapping, cascadeOnlyDependentParts, cascadePrivateParts, checkEarlyReturn, checkForCustomQuery, checkPrepare, clone, clonedQueryExecutionComplete, convertClassNamesToClasses, deploymentSetShouldMaintainCache, deploymentShouldMaintainCache, dontBindAllParameters, dontCacheStatement, dontCascadeParts, dontMaintainCache, execute, getAccessor, getArguments, getArgumentTypeNames, getArgumentTypes, getArgumentValues, getCall, getCascadePolicy, getDatasourceCall, getDatasourceCalls, getDescriptor, getEJBQLString, getFlushOnExecute, getName, getProperties, getProperty, getQueryMechanism, getSelectionCriteria, getSession, getSessionName, getShouldBindAllParameters, getSQLStatement, getSQLString, getSQLStrings, getTranslatedSQLString, getTranslatedSQLStrings, getTranslationRow, hasAccessor, hasProperties, hasQueryMechanism, hasSessionName, ignoreBindAllParameters, ignoreCacheStatement, isCallQuery, isCascadeOfAggregateDelete, isDataModifyQuery, isDataReadQuery, isDeleteAllQuery, isDeleteObjectQuery, isExpressionQuery, isModifyAllQuery, isObjectBuildingQuery, isObjectLevelReadQuery, isPrepared, isReadAllQuery, isReadObjectQuery, isReadQuery, isReportQuery, isSQLCallQuery, isUpdateAllQuery, isUpdateObjectQuery, isUserDefined, maintainCache, prepareCall, prepareCustomQuery, prepareForRemoteExecution, removeProperty, rowFromArguments, setAccessor, setArguments, setArgumentTypeNames, setArgumentTypes, setArgumentValues, setCall, setCascadePolicy, setDatasourceCall, setDescriptor, setEJBQLString, setFlushOnExecute, setIsPrepared, setIsUserDefined, setName, setProperties, setProperty, setQueryMechanism, setSelectionCriteria, setSession, setSessionName, setShouldBindAllParameters, setShouldBindAllParameters, setShouldCacheStatement, setShouldMaintainCache, setShouldPrepare, setShouldUseWrapperPolicy, setSQLStatement, setSQLString, setTranslationRow, shouldBindAllParameters, shouldCacheStatement, shouldCascadeAllParts, shouldCascadeByMapping, shouldCascadeOnlyDependentParts, shouldCascadeParts, shouldCascadePrivateParts, shouldCloneCall, shouldIgnoreBindAllParameters, shouldIgnoreCacheStatement, shouldMaintainCache, shouldPrepare, shouldUseWrapperPolicypublic InsertObjectQuery()
public InsertObjectQuery(java.lang.Object objectToInsert)
public InsertObjectQuery(Call call)
public void executeCommit()
throws DatabaseException
executeCommit in class WriteObjectQueryDatabaseExceptionpublic void executeShallowWrite()
executeShallowWrite in class WriteObjectQueryprotected void prepare()
prepare in class ObjectLevelModifyQuerypublic boolean isInsertObjectQuery()
isInsertObjectQuery in class DatabaseQuery