public final class PersistRequestCallableSql extends PersistRequest
PersistRequest.Type| Constructor and Description |
|---|
PersistRequestCallableSql(SpiEbeanServer server,
CallableSql cs,
SpiTransaction t,
PersistExecute persistExecute)
Create.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkRowCount(int count)
Note the rowCount of the execution.
|
int |
executeNow()
Execute the request right now.
|
int |
executeOrQueue()
Execute a the request or queue/batch it for later execution.
|
int |
executeUpdate()
Execute the statement in normal non batch mode.
|
SpiCallableSql |
getCallableSql()
Return the CallableSql.
|
void |
postExecute()
Perform post execute processing for the CallableSql.
|
void |
setBindLog(String bindLog)
The the log of bind values.
|
void |
setBound(BindParams bindParam,
CallableStatement cstmt)
These need to be set for use with Non-batch execution.
|
void |
setGeneratedKey(Object idValue)
Only called for insert with generated keys.
|
boolean |
useGeneratedKeys()
False for CallableSql.
|
executeStatement, getPstmtBatch, getType, initTransIfRequired, isLogSql, isLogSummary, isPersistCascade, setTypecommitTransIfRequired, createImplicitTransIfRequired, getConnection, getEbeanServer, getServer, getTransaction, rollbackTransIfRequiredpublic PersistRequestCallableSql(SpiEbeanServer server, CallableSql cs, SpiTransaction t, PersistExecute persistExecute)
public int executeOrQueue()
PersistRequestexecuteOrQueue in class PersistRequestpublic int executeNow()
PersistRequestexecuteNow in class PersistRequestpublic SpiCallableSql getCallableSql()
public void setBindLog(String bindLog)
public void checkRowCount(int count)
throws SQLException
SQLExceptionpublic void setGeneratedKey(Object idValue)
public boolean useGeneratedKeys()
public void postExecute()
throws SQLException
SQLExceptionpublic void setBound(BindParams bindParam, CallableStatement cstmt)
public int executeUpdate()
throws SQLException
SQLExceptionCopyright © 2014. All Rights Reserved.