Package io.ebeaninternal.server.core
Class PersistRequestOrmUpdate
- java.lang.Object
-
- io.ebeaninternal.server.core.BeanRequest
-
- io.ebeaninternal.server.core.PersistRequest
-
- io.ebeaninternal.server.core.PersistRequestOrmUpdate
-
- All Implemented Interfaces:
TxnProfileEventCodes
,BatchPostExecute
public final class PersistRequestOrmUpdate extends PersistRequest
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 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_COUNT, FIND_DELETE, FIND_ID_LIST, FIND_ITERATE, FIND_MANY, FIND_MANY_LAZY, FIND_ONE, FIND_ONE_LAZY, FIND_SUBQUERY, FIND_UPDATE
-
-
Constructor Summary
Constructors Constructor Description PersistRequestOrmUpdate(SpiEbeanServer server, BeanManager<?> mgr, SpiUpdate<?> ormUpdate, SpiTransaction t, PersistExecute persistExecute)
Create.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkRowCount(int count)
No concurrency checking so just note the rowCount.int
executeNow()
Execute the request right now.int
executeOrQueue()
Execute a the request or queue/batch it for later execution.BeanDescriptor<?>
getBeanDescriptor()
SpiUpdate<?>
getOrmUpdate()
Return the UpdateSql.void
postExecute()
Perform post execute processing.void
profile(long offset, int flushCount)
Add as event to the profiling.void
setBindLog(String bindLog)
Set the bound values.void
setGeneratedKey(Object idValue)
Not called for this type of request.-
Methods inherited from class io.ebeaninternal.server.core.PersistRequest
addTimingBatch, addTimingNoBatch, getType, initTransIfRequired, isBatchThisRequest, isFlushQueue, isLogSql, isLogSummary, isPersistCascade, startBind, translateSqlException
-
Methods inherited from class io.ebeaninternal.server.core.BeanRequest
clearTransIfRequired, commitTransIfRequired, createImplicitTransIfRequired, getDataTimeZone, getEbeanServer, getServer, getTransaction, rollbackTransIfRequired, setTransaction
-
-
-
-
Constructor Detail
-
PersistRequestOrmUpdate
public PersistRequestOrmUpdate(SpiEbeanServer server, BeanManager<?> mgr, SpiUpdate<?> ormUpdate, SpiTransaction t, PersistExecute persistExecute)
Create.
-
-
Method Detail
-
profile
public void profile(long offset, int flushCount)
Description copied from interface:BatchPostExecute
Add as event to the profiling.
-
getBeanDescriptor
public BeanDescriptor<?> getBeanDescriptor()
-
executeNow
public int executeNow()
Description copied from class:PersistRequest
Execute the request right now.- Specified by:
executeNow
in classPersistRequest
-
executeOrQueue
public int executeOrQueue()
Description copied from class:PersistRequest
Execute a the request or queue/batch it for later execution.- Specified by:
executeOrQueue
in classPersistRequest
-
getOrmUpdate
public SpiUpdate<?> getOrmUpdate()
Return the UpdateSql.
-
checkRowCount
public void checkRowCount(int count)
No concurrency checking so just note the rowCount.
-
setGeneratedKey
public void setGeneratedKey(Object idValue)
Not called for this type of request.
-
setBindLog
public void setBindLog(String bindLog)
Set the bound values.
-
postExecute
public void postExecute()
Perform post execute processing.
-
-