| Package | Description |
|---|---|
| com.avaje.ebean |
Core API (see EbeanServer and Ebean).
|
| com.avaje.ebean.config |
Configuration settings for EbeanServer construction
|
| com.avaje.ebean.config.dbplatform |
Database platform specific support
|
| Modifier and Type | Method and Description |
|---|---|
PersistBatch |
Transaction.getBatch()
Return the batch mode at the transaction level.
|
PersistBatch |
TxScope.getBatch()
Return the batch mode.
|
PersistBatch |
Transaction.getBatchOnCascade()
Return the batch mode at the request level (for each save(), insert(), update() or delete()).
|
PersistBatch |
TxScope.getBatchOnCascade()
Return the batch on cascade mode.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Transaction.setBatch(PersistBatch persistBatchMode)
The JDBC batch mode to use for this transaction.
|
TxScope |
TxScope.setBatch(PersistBatch batch)
Set the batch mode to use.
|
void |
Transaction.setBatchOnCascade(PersistBatch batchOnCascadeMode)
Set the JDBC batch mode to use for a save() or delete() request.
|
TxScope |
TxScope.setBatchOnCascade(PersistBatch batchOnCascade)
Set the batch on cascade mode.
|
| Modifier and Type | Method and Description |
|---|---|
PersistBatch |
ServerConfig.appliedPersistBatchOnCascade()
Return the PersistBatch mode to use for 'batchOnCascade' taking into account if the database
platform supports getGeneratedKeys in batch mode.
|
PersistBatch |
ServerConfig.getPersistBatch()
Return the PersistBatch mode to use by default at the transaction level.
|
PersistBatch |
ServerConfig.getPersistBatchOnCascade()
Return the JDBC batch mode to use per save(), delete(), insert() or update() request.
|
static PersistBatch |
PersistBatch.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistBatch[] |
PersistBatch.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ServerConfig.setPersistBatch(PersistBatch persistBatch)
Set the JDBC batch mode to use at the transaction level.
|
void |
ServerConfig.setPersistBatchOnCascade(PersistBatch persistBatchOnCascade)
Set the JDBC batch mode to use per save(), delete(), insert() or update() request.
|
| Modifier and Type | Field and Description |
|---|---|
protected PersistBatch |
DatabasePlatform.persistBatchOnCascade
By default we use JDBC batch when cascading (except for SQL Server).
|
| Modifier and Type | Method and Description |
|---|---|
PersistBatch |
DatabasePlatform.getPersistBatchOnCascade()
Return the platform default JDBC batch mode for persist cascade.
|
Copyright © 2016. All rights reserved.