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() |
static ResultSetConcurrency |
fromFieldValue(int fieldValue)
Returns the constant mapped to given
fieldValue. |
static ResultSetConcurrency |
fromResultSet(ResultSet resultSet) |
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.ResultSet.CONCUR_READ_ONLYpublic static final ResultSetConcurrency CONCUR_UPDATABLE
ResultSet.CONCUR_UPDATABLE.ResultSet.CONCUR_UPDATABLEpublic 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.fieldValue - either ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLE.public static ResultSetConcurrency fromResultSet(ResultSet resultSet) throws SQLException
SQLExceptionpublic static Integer[] fieldValues()
public Integer getFieldValue()
FieldEnumgetFieldValue in interface FieldEnum<ResultSetConcurrency,Integer>Copyright © 2011-2013. All Rights Reserved.