public enum ResultSetType extends Enum<ResultSetType> implements FieldEnum<ResultSetType,Integer>
ResultSet's types.| Enum Constant and Description |
|---|
TYPE_FORWARD_ONLY
Constant for
ResultSet.TYPE_FORWARD_ONLY. |
TYPE_SCROLL_INSENSITIVE
Constant for
ResultSet.TYPE_SCROLL_INSENSITIVE. |
TYPE_SCROLL_SENSITIVE
Constant for
ResultSet.TYPE_SCROLL_SENSITIVE. |
| Modifier and Type | Method and Description |
|---|---|
static Integer[] |
fieldValues()
Returns an array containing the fields values of this enum type.
|
static ResultSetType |
fromFieldValue(int fieldValue)
Returns the enum constant of this type with the specified field value.
|
static ResultSetType |
fromResultSet(ResultSet resultSet)
Returns the enum constant of this type with the specified result set's
type.
|
Integer |
getFieldValue()
Returns field value.
|
static ResultSetType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResultSetType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultSetType TYPE_FORWARD_ONLY
ResultSet.TYPE_FORWARD_ONLY.public static final ResultSetType TYPE_SCROLL_INSENSITIVE
ResultSet.TYPE_SCROLL_INSENSITIVE.public static final ResultSetType TYPE_SCROLL_SENSITIVE
ResultSet.TYPE_SCROLL_SENSITIVE.public static ResultSetType[] values()
for (ResultSetType c : ResultSetType.values()) System.out.println(c);
public static ResultSetType 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 ResultSetType fromFieldValue(int fieldValue)
fieldValue - the field valueIllegalArgumentException - if this enum type has no constant with
the specified field value.public static ResultSetType fromResultSet(ResultSet resultSet) throws SQLException
resultSet - the result setSQLException - if a database access error occurs or this method is
called on a closed result setNullPointerException - if resultSet is null.IllegalArgumentException - if this enum type has no constant with
the specified field value.ResultSet.getType()public static Integer[] fieldValues()
public Integer getFieldValue()
FieldEnumgetFieldValue in interface FieldEnum<ResultSetType,Integer>Copyright © 2011-2013. All Rights Reserved.