public enum EmbeddedDatabaseConnection extends java.lang.Enum<EmbeddedDatabaseConnection>
embedded databases.get(ClassLoader)| Enum Constant and Description | 
|---|
| DERBYDerby Database Connection. | 
| H2H2 Database Connection. | 
| HSQLDBHSQL Database Connection. | 
| NONENo Connection. | 
| Modifier and Type | Method and Description | 
|---|---|
| static EmbeddedDatabaseConnection | get(java.lang.ClassLoader classLoader)Returns the most suitable  EmbeddedDatabaseConnectionfor the given class
 loader. | 
| java.lang.String | getDriverClassName()Returns the driver class name. | 
| org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType | getType()Returns the  EmbeddedDatabaseTypefor the connection. | 
| java.lang.String | getUrl(java.lang.String databaseName)Returns the URL for the connection using the specified  databaseName. | 
| static boolean | isEmbedded(javax.sql.DataSource dataSource)Convenience method to determine if a given data source represents an embedded
 database type. | 
| static boolean | isEmbedded(java.lang.String driverClass,
          java.lang.String url)Convenience method to determine if a given driver class name and url represent an
 embedded database type. | 
| static EmbeddedDatabaseConnection | valueOf(java.lang.String name)Returns the enum constant of this type with the specified name. | 
| static EmbeddedDatabaseConnection[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final EmbeddedDatabaseConnection NONE
public static final EmbeddedDatabaseConnection H2
public static final EmbeddedDatabaseConnection DERBY
public static final EmbeddedDatabaseConnection HSQLDB
public static EmbeddedDatabaseConnection[] values()
for (EmbeddedDatabaseConnection c : EmbeddedDatabaseConnection.values()) System.out.println(c);
public static EmbeddedDatabaseConnection valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getDriverClassName()
public org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType getType()
EmbeddedDatabaseType for the connection.public java.lang.String getUrl(java.lang.String databaseName)
databaseName.databaseName - the name of the databasepublic static boolean isEmbedded(java.lang.String driverClass,
                                 java.lang.String url)
driverClass - the driver classurl - the jdbc url (can be null)public static boolean isEmbedded(javax.sql.DataSource dataSource)
dataSource - the data source to interrogatepublic static EmbeddedDatabaseConnection get(java.lang.ClassLoader classLoader)
EmbeddedDatabaseConnection for the given class
 loader.classLoader - the class loader used to check for classesEmbeddedDatabaseConnection or NONE.