public enum ResultSetHoldability extends Enum<ResultSetHoldability>
ResultSet objects with the given holdability.ResultSet| Enum Constant and Description |
|---|
CLOSE_CURSORS_AT_COMMIT
open ResultSet objects with this holdability will remain open when the current transaction is commited.
|
DEFAULT
Open ResultSet objects with this holdability will be closed when the current transaction is commited.
|
HOLD_CURSORS_OVER_COMMIT
Open ResultSet objects with this holdability will be closed when the current transaction is commited.
|
| Modifier and Type | Method and Description |
|---|---|
static ResultSetHoldability |
get(String type) |
int |
getHoldability() |
static ResultSetHoldability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResultSetHoldability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultSetHoldability DEFAULT
public static final ResultSetHoldability HOLD_CURSORS_OVER_COMMIT
public static final ResultSetHoldability CLOSE_CURSORS_AT_COMMIT
public static ResultSetHoldability[] values()
for (ResultSetHoldability c : ResultSetHoldability.values()) System.out.println(c);
public static ResultSetHoldability 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 nullpublic static ResultSetHoldability get(String type)
type - String that represent enum ignoring casetype, type of not found return DEFAULT enum.public int getHoldability()
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.