Package org.apache.calcite.test
Enum CalciteAssert.DatabaseInstance
- java.lang.Object
-
- java.lang.Enum<CalciteAssert.DatabaseInstance>
-
- org.apache.calcite.test.CalciteAssert.DatabaseInstance
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CalciteAssert.DatabaseInstance>
- Enclosing class:
- CalciteAssert
public static enum CalciteAssert.DatabaseInstance extends java.lang.Enum<CalciteAssert.DatabaseInstance>
Information necessary to create a JDBC connection. Specify one to run tests against a different database. (hsqldb is the default.)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description H2
HSQLDB
MYSQL
ORACLE
POSTGRESQL
-
Field Summary
Fields Modifier and Type Field Description ConnectionSpec
foodmart
ConnectionSpec
scott
-
Constructor Summary
Constructors Modifier Constructor Description private
DatabaseInstance(ConnectionSpec foodmart, ConnectionSpec scott)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
getDataSetPath()
static CalciteAssert.DatabaseInstance
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CalciteAssert.DatabaseInstance[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HSQLDB
public static final CalciteAssert.DatabaseInstance HSQLDB
-
H2
public static final CalciteAssert.DatabaseInstance H2
-
MYSQL
public static final CalciteAssert.DatabaseInstance MYSQL
-
ORACLE
public static final CalciteAssert.DatabaseInstance ORACLE
-
POSTGRESQL
public static final CalciteAssert.DatabaseInstance POSTGRESQL
-
-
Field Detail
-
foodmart
public final ConnectionSpec foodmart
-
scott
public final ConnectionSpec scott
-
-
Constructor Detail
-
DatabaseInstance
private DatabaseInstance(ConnectionSpec foodmart, ConnectionSpec scott)
-
-
Method Detail
-
values
public static CalciteAssert.DatabaseInstance[] 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 (CalciteAssert.DatabaseInstance c : CalciteAssert.DatabaseInstance.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CalciteAssert.DatabaseInstance 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
-
getDataSetPath
private static java.lang.String getDataSetPath()
-
-