Package oracle.jdbc
Enum Class OracleConnection.DatabaseStartupMode
java.lang.Object
java.lang.Enum<OracleConnection.DatabaseStartupMode>
oracle.jdbc.OracleConnection.DatabaseStartupMode
- All Implemented Interfaces:
Serializable,Comparable<OracleConnection.DatabaseStartupMode>,Constable
- Enclosing interface:
- OracleConnection
public static enum OracleConnection.DatabaseStartupMode
extends Enum<OracleConnection.DatabaseStartupMode>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAttempt to shutdown the database in the abort mode before starting a new instance.Startup the database with no restriction.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). -
Method Summary
Modifier and TypeMethodDescriptionfinal intgetMode()Implementation detail (for internal use only).Returns the enum constant of this class with the specified name.static OracleConnection.DatabaseStartupMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_RESTRICTION
Startup the database with no restriction. This is the default. -
FORCE
Attempt to shutdown the database in the abort mode before starting a new instance. This mode should be used only in unusual circumstances. -
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).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getMode
public final int getMode()Implementation detail (for internal use only).
-