Enum Class OracleConnection.CommitOption
- All Implemented Interfaces:
Serializable,Comparable<OracleConnection.CommitOption>,Constable
- Enclosing interface:
- OracleConnection
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription"No wait" commit option."Wait" commit option."Batch logging" commit option."Batch logging" commit option. -
Method Summary
Modifier and TypeMethodDescriptionfinal intgetCode()Implementation detail (for internal use only).Returns the enum constant of this class with the specified name.static OracleConnection.CommitOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WRITEBATCH
"Batch logging" commit option.No I/O is issued by LGWR ((Log Writer Process) to write the in-memory redo buffers of the transaction to the online redo logs. BATCH means that the LGWR batches the redo buffers before initiating I/O for the entire batch.
By default (if you don't use this option), the redo buffers of the transaction are written out immediately.
-
WRITEIMMED
"Batch logging" commit option.Force the default: the redo buffers of the transaction are written out immediately.
-
WAIT
"Wait" commit option. Use this option to force the default: the commit does not return until the in-memory redo buffers corresponding to the transaction are written in the (persistent) online redo logs. -
NOWAIT
"No wait" commit option.LGWR is requested to write the redo for the commit to the online redo logs, but the commit returns without waiting for the buffers to be written to the online redo logs. NOWAIT means that the commit returns to the user before the in-memory redo buffers are flushed to the online redo logs.
By default (if you don't use this option), the commit does not return until the in-memory redo buffers corresponding to the transaction are written in the (persistent) online redo logs.
-
-
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
-
getCode
public final int getCode()Implementation detail (for internal use only).
-