Serializable
, Comparable<OracleConnection.DatabaseStartupMode>
public static enum OracleConnection.DatabaseStartupMode extends Enum<OracleConnection.DatabaseStartupMode>
Enum Constant | Description |
---|---|
FORCE |
Attempt to shutdown the database in the abort mode before starting a new instance.
|
NO_RESTRICTION |
Startup the database with no restriction.
|
RESTRICT |
Startup the database in the restrict mode: allow database access only to users with both the CREATE SESSION and RESTRICTED SESSION privileges (normally, the DBA).
|
Modifier and Type | Method | Description |
---|---|---|
int |
getMode() |
Implementation detail (for internal use only).
|
static OracleConnection.DatabaseStartupMode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static OracleConnection.DatabaseStartupMode[] |
values() |
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final OracleConnection.DatabaseStartupMode NO_RESTRICTION
public static final OracleConnection.DatabaseStartupMode FORCE
public static final OracleConnection.DatabaseStartupMode RESTRICT
public static OracleConnection.DatabaseStartupMode[] values()
for (OracleConnection.DatabaseStartupMode c : OracleConnection.DatabaseStartupMode.values()) System.out.println(c);
public static OracleConnection.DatabaseStartupMode 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 final int getMode()