public final class PersistRequestUpdateSql extends PersistRequest
| Modifier and Type | Class and Description |
|---|---|
static class |
PersistRequestUpdateSql.SqlType |
PersistRequest.Type| Constructor and Description |
|---|
PersistRequestUpdateSql(SpiEbeanServer server,
SqlUpdate updateSql,
SpiTransaction t,
PersistExecute persistExecute)
Create.
|
| Modifier and Type | Method and 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.
|
SpiSqlUpdate |
getUpdateSql()
Return the UpdateSql.
|
void |
postExecute()
Perform post execute processing.
|
void |
setBindLog(String bindLog)
Set the bound values.
|
void |
setGeneratedKey(Object idValue)
Not called for this type of request.
|
void |
setType(PersistRequestUpdateSql.SqlType sqlType,
String tableName,
String description)
Specify the type of statement executed.
|
boolean |
useGeneratedKeys()
Always false.
|
executeStatement, getPstmtBatch, getType, initTransIfRequired, isLogSql, isLogSummary, isPersistCascade, setTypecommitTransIfRequired, createImplicitTransIfRequired, getConnection, getEbeanServer, getServer, getTransaction, rollbackTransIfRequiredpublic PersistRequestUpdateSql(SpiEbeanServer server, SqlUpdate updateSql, SpiTransaction t, PersistExecute persistExecute)
public int executeNow()
PersistRequestexecuteNow in class PersistRequestpublic int executeOrQueue()
PersistRequestexecuteOrQueue in class PersistRequestpublic SpiSqlUpdate getUpdateSql()
public void checkRowCount(int count)
throws SQLException
SQLExceptionpublic boolean useGeneratedKeys()
public void setGeneratedKey(Object idValue)
public void setType(PersistRequestUpdateSql.SqlType sqlType, String tableName, String description)
public void setBindLog(String bindLog)
public void postExecute()
throws SQLException
SQLExceptionCopyright © 2014. All Rights Reserved.