public enum ResultSetHoldability extends Enum<ResultSetHoldability> implements FieldEnum<ResultSetHoldability,Integer>
ResultSet's holdabilities.| Enum Constant and Description |
|---|
CLOSE_CURSORS_AT_COMMIT
Constant for
ResultSet.CLOSE_CURSORS_AT_COMMIT. |
HOLD_CURSORS_OVER_COMMIT
Constant for
ResultSet.HOLD_CURSORS_OVER_COMMIT. |
| Modifier and Type | Method and Description |
|---|---|
static Integer[] |
fieldValues() |
static ResultSetHoldability |
fromFieldValue(int fieldValue) |
static ResultSetHoldability |
fromResultSet(ResultSet resultSet) |
Integer |
getFieldValue()
Returns field value.
|
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 HOLD_CURSORS_OVER_COMMIT
ResultSet.HOLD_CURSORS_OVER_COMMIT.ResultSet.HOLD_CURSORS_OVER_COMMITpublic static final ResultSetHoldability CLOSE_CURSORS_AT_COMMIT
ResultSet.CLOSE_CURSORS_AT_COMMIT.ResultSet.CLOSE_CURSORS_AT_COMMITpublic 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 fromFieldValue(int fieldValue)
fieldValue - public static ResultSetHoldability fromResultSet(ResultSet resultSet) throws SQLException
resultSet - resultSetSQLException - if a database access error occurs or this method is
called on a closed result setpublic static Integer[] fieldValues()
public Integer getFieldValue()
FieldEnumgetFieldValue in interface FieldEnum<ResultSetHoldability,Integer>Copyright © 2011-2013. All Rights Reserved.