flux
Enum DatabaseType

java.lang.Object
  extended by java.lang.Enum<DatabaseType>
      extended by flux.DatabaseType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DatabaseType>

public enum DatabaseType
extends java.lang.Enum<DatabaseType>

Indicates the kind of database that the engine uses. Defaults to the Derby embedded database. The engine itself does not provide any kind of database. When configuring engines with Derby, do not use clustering under any circumstances. It is an error to cluster engines using Derby.

Author:
Copyright 2014 Flux Corporation. All rights reserved.

Enum Constant Summary
DB2
          The engine uses the DB2 database.
DERBY
          The engine uses the Derby database.
H2
          The engine uses the H2 database.
MYSQL
          The engine uses the MySQL database.
ORACLE
          The engine uses the Oracle database.
POSTGRES
          The engine uses the PostgreSQL database.
SQL_SERVER
          The engine uses the SQL Server database.
 
Method Summary
static DatabaseType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DatabaseType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DB2

public static final DatabaseType DB2
The engine uses the DB2 database.


DERBY

public static final DatabaseType DERBY
The engine uses the Derby database. When a Derby database is used, each engine in each JVM uses a different Derby database stored on the file system. When configuring engines with the Derby database, do not use Derby for clustering under any circumstances. It is an error to cluster engines using Derby.


H2

public static final DatabaseType H2
The engine uses the H2 database. When an H2 in-memory database is used, each engine in each JVM uses a different H2 in-memory database. When configuring engines with the H2 database, do not use H2 for clustering under any circumstances. It is an error to cluster engines using H2.


MYSQL

public static final DatabaseType MYSQL
The engine uses the MySQL database.


ORACLE

public static final DatabaseType ORACLE
The engine uses the Oracle database.


POSTGRES

public static final DatabaseType POSTGRES
The engine uses the PostgreSQL database.


SQL_SERVER

public static final DatabaseType SQL_SERVER
The engine uses the SQL Server database.

Method Detail

values

public static DatabaseType[] 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 (DatabaseType c : DatabaseType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DatabaseType 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 name
java.lang.NullPointerException - if the argument is null


© 2014 Flux Corporation. All rights reserved.