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()
Returns an array containing the fields values of this enum type.
|
static ResultSetHoldability |
fromFieldValue(int fieldValue)
Returns the enum constant of this type with the specified result set
holdability.
|
static ResultSetHoldability |
fromResultSet(ResultSet resultSet)
Returns the enum constant of this type with the specified result set's
current holdability.
|
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.public static final ResultSetHoldability CLOSE_CURSORS_AT_COMMIT
ResultSet.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 fromFieldValue(int fieldValue)
fieldValue - the result set holdabilitypublic static ResultSetHoldability fromResultSet(ResultSet resultSet) throws SQLException
resultSet - the result setSQLException - if a database access error occurs or this method is
called on a closed result setResultSet.getHoldability()public static Integer[] fieldValues()
public Integer getFieldValue()
FieldEnumgetFieldValue in interface FieldEnum<ResultSetHoldability,Integer>Copyright © 2011-2013. All Rights Reserved.