Package org.apache.calcite.chinook
Enum ConnectionFactory.DatabaseWrapper
- java.lang.Object
-
- java.lang.Enum<ConnectionFactory.DatabaseWrapper>
-
- org.apache.calcite.chinook.ConnectionFactory.DatabaseWrapper
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConnectionFactory.DatabaseWrapper>
- Enclosing class:
- ConnectionFactory
public static enum ConnectionFactory.DatabaseWrapper extends java.lang.Enum<ConnectionFactory.DatabaseWrapper>
Wrapping with Fairy environmental decoration
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CALCITE_AS_ADMIN
CALCITE_AS_SPECIFIC_USER
RAW
-
Constructor Summary
Constructors Modifier Constructor Description private
DatabaseWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.sql.Connection
connection()
static ConnectionFactory.DatabaseWrapper
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConnectionFactory.DatabaseWrapper[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CALCITE_AS_ADMIN
public static final ConnectionFactory.DatabaseWrapper CALCITE_AS_ADMIN
-
CALCITE_AS_SPECIFIC_USER
public static final ConnectionFactory.DatabaseWrapper CALCITE_AS_SPECIFIC_USER
-
RAW
public static final ConnectionFactory.DatabaseWrapper RAW
-
-
Method Detail
-
values
public static ConnectionFactory.DatabaseWrapper[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConnectionFactory.DatabaseWrapper c : ConnectionFactory.DatabaseWrapper.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionFactory.DatabaseWrapper valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
connection
public abstract java.sql.Connection connection() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-