public enum JdbcDerbySubSubProtocol extends Enum<JdbcDerbySubSubProtocol>
Enum Constant and Description |
---|
Classpath
Read only database on the classpath.
|
Directory
Database in a directory.
|
Jar
Read only database in a Jar file.
|
Memory
In Memory database.
|
Modifier and Type | Method and Description |
---|---|
String |
datasourceDatabaseNamePrefix()
Returns the database name prefix (with the sub-sub protocol) as required to set up a datasource for the database.
|
String |
jdbcConnectionPrefix()
Get the JDBC connection string prefix to construct a JDBC connection string with this sub-protocol.
|
static JdbcDerbySubSubProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JdbcDerbySubSubProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JdbcDerbySubSubProtocol Memory
public static final JdbcDerbySubSubProtocol Directory
public static final JdbcDerbySubSubProtocol Jar
public static final JdbcDerbySubSubProtocol Classpath
public static JdbcDerbySubSubProtocol[] values()
for (JdbcDerbySubSubProtocol c : JdbcDerbySubSubProtocol.values()) System.out.println(c);
public static JdbcDerbySubSubProtocol valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String jdbcConnectionPrefix()
jdbc:derby:sub-protocol:
public String datasourceDatabaseNamePrefix()
Copyright © 2015-2016 Development Entropy (deventropy.org) Contributors