Enum Class SqlBatchSupport.JdbcBatchInsertMode
java.lang.Object
java.lang.Enum<SqlBatchSupport.JdbcBatchInsertMode>
io.micronaut.data.runtime.operations.internal.sql.SqlBatchSupport.JdbcBatchInsertMode
- All Implemented Interfaces:
Serializable, Comparable<SqlBatchSupport.JdbcBatchInsertMode>, Constable
- Enclosing class:
SqlBatchSupport
public static enum SqlBatchSupport.JdbcBatchInsertMode
extends Enum<SqlBatchSupport.JdbcBatchInsertMode>
How a JDBC insert batch operation has to be executed.
- Since:
- 5.2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe entities can be inserted using a JDBC batch, reading generated keys back when the entity has a generated identity.The entities can be inserted using a JDBC batch, but generated keys must not be requested.The entities have to be inserted one by one. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisBatch()booleanReturns the enum constant of this class with the specified name.static SqlBatchSupport.JdbcBatchInsertMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FALLBACK
The entities have to be inserted one by one. -
BATCH
The entities can be inserted using a JDBC batch, reading generated keys back when the entity has a generated identity. -
BATCH_WITHOUT_GENERATED_KEYS
The entities can be inserted using a JDBC batch, but generated keys must not be requested.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isBatch
public boolean isBatch()- Returns:
trueif a JDBC batch can be used
-
isReadGeneratedKeys
public boolean isReadGeneratedKeys()- Returns:
trueif generated keys can be read back from the batch
-