public enum ResultSetConcurrency extends Enum<ResultSetConcurrency> implements FieldEnum<ResultSetConcurrency,Integer>
ResultSet's concurrencies.| Enum Constant and Description |
|---|
CONCUR_READ_ONLY
Constant for
ResultSet.CONCUR_READ_ONLY. |
CONCUR_UPDATABLE
Constant for
ResultSet.CONCUR_UPDATABLE. |
| Modifier and Type | Method and Description |
|---|---|
static Integer[] |
fieldValues()
Returns an array containing the field values of this enum type, in the
order they are declared.
|
static ResultSetConcurrency |
fromFieldValue(int fieldValue)
Returns the enum constant of this type with the specified field value.
|
static ResultSetConcurrency |
fromResultSet(ResultSet resultSet)
Returns the enum constant of this type with the specified result set's
concurrency.
|
Integer |
getFieldValue()
Returns field value.
|
static ResultSetConcurrency |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResultSetConcurrency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultSetConcurrency CONCUR_READ_ONLY
ResultSet.CONCUR_READ_ONLY.public static final ResultSetConcurrency CONCUR_UPDATABLE
ResultSet.CONCUR_UPDATABLE.public static ResultSetConcurrency[] values()
for (ResultSetConcurrency c : ResultSetConcurrency.values()) System.out.println(c);
public static ResultSetConcurrency 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 ResultSetConcurrency fromFieldValue(int fieldValue)
fieldValue - either ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLE.public static ResultSetConcurrency 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.getConcurrency()public static Integer[] fieldValues()
public Integer getFieldValue()
FieldEnumgetFieldValue in interface FieldEnum<ResultSetConcurrency,Integer>Copyright © 2011-2013. All Rights Reserved.