org.springframework.roo.addon.jpa
Enum JdbcDatabase
java.lang.Object
java.lang.Enum<JdbcDatabase>
org.springframework.roo.addon.jpa.JdbcDatabase
- All Implemented Interfaces:
- Serializable, Comparable<JdbcDatabase>
public enum JdbcDatabase
- extends Enum<JdbcDatabase>
Provides information related to JDBC database configuration.
- Since:
- 1.0
- Author:
- Stefan Schmidt, Alan Stewart
H2_IN_MEMORY
public static final JdbcDatabase H2_IN_MEMORY
HYPERSONIC_IN_MEMORY
public static final JdbcDatabase HYPERSONIC_IN_MEMORY
HYPERSONIC_PERSISTENT
public static final JdbcDatabase HYPERSONIC_PERSISTENT
POSTGRES
public static final JdbcDatabase POSTGRES
MYSQL
public static final JdbcDatabase MYSQL
ORACLE
public static final JdbcDatabase ORACLE
SYBASE
public static final JdbcDatabase SYBASE
MSSQL
public static final JdbcDatabase MSSQL
DB2
public static final JdbcDatabase DB2
DERBY
public static final JdbcDatabase DERBY
GOOGLE_APP_ENGINE
public static final JdbcDatabase GOOGLE_APP_ENGINE
values
public static JdbcDatabase[] 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 (JdbcDatabase c : JdbcDatabase.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static JdbcDatabase valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getKey
public String getKey()
getDriverClassName
public String getDriverClassName()
getConnectionString
public String getConnectionString()
toString
public String toString()
- Overrides:
toString
in class Enum<JdbcDatabase>
Copyright © 2009-2010 VMware, Inc. All Rights Reserved.