public static enum AGConnProp.Session extends Enum<AGConnProp.Session>
AGConnProp.session
.Enum Constant and Description |
---|
DEDICATED
Calls
AGRepositoryConnection.setAutoCommit(boolean) with true. |
SHARED
No dedicated session, and autoCommit is true
(that is,
AGRepositoryConnection.setAutoCommit(boolean) is not called). |
TX
Calls
AGRepositoryConnection.setAutoCommit(boolean) with false. |
Modifier and Type | Method and Description |
---|---|
static AGConnProp.Session |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AGConnProp.Session[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AGConnProp.Session SHARED
AGRepositoryConnection.setAutoCommit(boolean)
is not called).
Warning: if the borrowed connections are changed to dedicated or shared, the connections will remain dedicated when borrowed again, but autoCommit will be reset to true.
public static final AGConnProp.Session DEDICATED
AGRepositoryConnection.setAutoCommit(boolean)
with true.public static final AGConnProp.Session TX
AGRepositoryConnection.setAutoCommit(boolean)
with false.public static AGConnProp.Session[] values()
for (AGConnProp.Session c : AGConnProp.Session.values()) System.out.println(c);
public static AGConnProp.Session valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null