|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<OracleConnection.CommitOption> oracle.jdbc.OracleConnection.CommitOption
public static enum OracleConnection.CommitOption
Enum Constant Summary | |
---|---|
NOWAIT
"No wait" commit option. |
|
WAIT
"Wait" commit option. |
|
WRITEBATCH
"Batch logging" commit option. |
|
WRITEIMMED
"Batch logging" commit option. |
Method Summary | |
---|---|
int |
getCode()
Implementation detail (for internal use only). |
static OracleConnection.CommitOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OracleConnection.CommitOption[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final OracleConnection.CommitOption WRITEBATCH
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.
public static final OracleConnection.CommitOption WRITEIMMED
Force the default: the redo buffers of the transaction are written out immediately.
public static final OracleConnection.CommitOption WAIT
public static final OracleConnection.CommitOption NOWAIT
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 Detail |
---|
public static final OracleConnection.CommitOption[] values()
for(OracleConnection.CommitOption c : OracleConnection.CommitOption.values()) System.out.println(c);
public static OracleConnection.CommitOption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic final int getCode()
|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |