public abstract class PersistRequest extends BeanRequest implements BatchPostExecute
| Modifier and Type | Class and Description |
|---|---|
static class |
PersistRequest.Type |
| Constructor and Description |
|---|
PersistRequest(SpiEbeanServer server,
SpiTransaction t,
PersistExecute persistExecute)
Used by CallableSqlRequest and UpdateSqlRequest.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
executeNow()
Execute the request right now.
|
abstract int |
executeOrQueue()
Execute a the request or queue/batch it for later execution.
|
int |
executeStatement()
Execute the Callable statement.
|
PstmtBatch |
getPstmtBatch() |
PersistRequest.Type |
getType()
Return the type of this request.
|
void |
initTransIfRequired()
initialise an implicit transaction if one is not currently supplied.
|
boolean |
isLogSql()
Return true if SQL should be logged for this transaction.
|
boolean |
isLogSummary()
Return true if SUMMARY information should be logged for this transaction.
|
boolean |
isPersistCascade()
Return true if save and delete should cascade.
|
void |
setType(PersistRequest.Type type)
Set the type of this request.
|
commitTransIfRequired, createImplicitTransIfRequired, getConnection, getEbeanServer, getServer, getTransaction, rollbackTransIfRequiredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckRowCount, postExecute, setGeneratedKeypublic PersistRequest(SpiEbeanServer server, SpiTransaction t, PersistExecute persistExecute)
public abstract int executeOrQueue()
public abstract int executeNow()
public PstmtBatch getPstmtBatch()
public boolean isLogSql()
BeanRequestisLogSql in class BeanRequestpublic boolean isLogSummary()
BeanRequestisLogSummary in class BeanRequestpublic int executeStatement()
public void initTransIfRequired()
BeanRequestA transaction may have been passed in or active in the thread local. If not then create one implicitly to handle the request.
initTransIfRequired in class BeanRequestpublic PersistRequest.Type getType()
public void setType(PersistRequest.Type type)
public boolean isPersistCascade()
Copyright © 2014. All Rights Reserved.