java.lang.Object
io.ebeaninternal.server.core.BeanRequest
io.ebeaninternal.server.core.PersistRequest
io.ebeaninternal.server.core.PersistRequestCallableSql
- All Implemented Interfaces:
TxnProfileEventCodes,BatchPostExecute
Persist request specifically for CallableSql.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.ebeaninternal.server.core.PersistRequest
PersistRequest.Type -
Field Summary
Fields inherited from class io.ebeaninternal.server.core.PersistRequest
label, startNanos, typeFields inherited from class io.ebeaninternal.server.core.BeanRequest
createdTransaction, server, transactionFields inherited from interface io.ebeaninternal.api.TxnProfileEventCodes
EVT_CALLABLESQL, EVT_COMMIT, EVT_DELETE, EVT_DELETE_PERMANENT, EVT_DELETE_SOFT, EVT_INSERT, EVT_ORMUPDATE, EVT_ROLLBACK, EVT_UPDATE, EVT_UPDATESQL, FIND_ATTRIBUTE, FIND_ATTRIBUTE_SET, FIND_COUNT, FIND_DELETE, FIND_EXISTS, FIND_ID_LIST, FIND_ITERATE, FIND_MANY, FIND_MANY_LAZY, FIND_ONE, FIND_ONE_LAZY, FIND_SUBQUERY, FIND_UPDATE -
Constructor Summary
ConstructorsConstructorDescriptionPersistRequestCallableSql(SpiEbeanServer server, CallableSql cs, SpiTransaction t, PersistExecute persistExecute) Create. -
Method Summary
Modifier and TypeMethodDescriptionReturn the CallableSql.voidcheckRowCount(int count) Note the rowCount of the execution.intExecute the request right now.intExecute a the request or queue/batch it for later execution.intExecute the statement in normal non batch mode.voidPerform post execute processing for the CallableSql.voidprofile(long offset, int flushCount) Add as event to the profiling.voidsetBindLog(String bindLog) The the log of bind values.voidsetBound(BindParams bindParam, CallableStatement cstmt) These need to be set for use with Non-batch execution.voidsetGeneratedKey(Object idValue) Only called for insert with generated keys.Methods inherited from class io.ebeaninternal.server.core.PersistRequest
addTimingBatch, addTimingNoBatch, initTransIfRequired, isBatchThisRequest, isFlushQueue, isPersistCascade, logSql, logSummary, resetDepth, startBind, translateSqlException, typeMethods inherited from class io.ebeaninternal.server.core.BeanRequest
clearTransIfRequired, commitTransIfRequired, createImplicitTransIfRequired, database, dataTimeZone, rollbackTransIfRequired, server, transaction, transaction
-
Constructor Details
-
PersistRequestCallableSql
public PersistRequestCallableSql(SpiEbeanServer server, CallableSql cs, SpiTransaction t, PersistExecute persistExecute) Create.
-
-
Method Details
-
profile
public void profile(long offset, int flushCount) Description copied from interface:BatchPostExecuteAdd as event to the profiling. -
executeOrQueue
public int executeOrQueue()Description copied from class:PersistRequestExecute a the request or queue/batch it for later execution.- Specified by:
executeOrQueuein classPersistRequest
-
executeNow
public int executeNow()Description copied from class:PersistRequestExecute the request right now.- Specified by:
executeNowin classPersistRequest
-
callableSql
Return the CallableSql. -
setBindLog
The the log of bind values. -
checkRowCount
public void checkRowCount(int count) Note the rowCount of the execution. -
setGeneratedKey
Only called for insert with generated keys. -
postExecute
public void postExecute()Perform post execute processing for the CallableSql. -
setBound
These need to be set for use with Non-batch execution. Specifically to read registered out parameters and potentially handle the executeOverride() method. -
executeUpdate
Execute the statement in normal non batch mode.- Throws:
SQLException
-