public enum ResultSetConcurrency extends Enum<ResultSetConcurrency>
ResultSet
objects with the given concurrency.ResultSet
Enum Constant and Description |
---|
CONCUR_READ_ONLY |
CONCUR_UPDATABLE |
DEFAULT
Be concurrency CONCUR_READ_ONLY
|
Modifier and Type | Method and Description |
---|---|
static ResultSetConcurrency |
get(String type) |
int |
getConcurrencyMode() |
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 DEFAULT
public static final ResultSetConcurrency CONCUR_READ_ONLY
public static final ResultSetConcurrency 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 get(String type)
type
- String that represent enum ignoring casetype
, type of not found return DEFAULT
enum.public int getConcurrencyMode()
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.