net.java.ao.db
Enum SupportedDBProvider
java.lang.Object
java.lang.Enum<SupportedDBProvider>
net.java.ao.db.SupportedDBProvider
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SupportedDBProvider>
public enum SupportedDBProvider
- extends java.lang.Enum<SupportedDBProvider>
- Author:
- Daniel Spiewak
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
MYSQL
public static final SupportedDBProvider MYSQL
NETWORK_DERBY
public static final SupportedDBProvider NETWORK_DERBY
EMBEDDED_DERBY
public static final SupportedDBProvider EMBEDDED_DERBY
ORACLE_THIN
public static final SupportedDBProvider ORACLE_THIN
ORACLE_OCI
public static final SupportedDBProvider ORACLE_OCI
POSTGRESQL
public static final SupportedDBProvider POSTGRESQL
MS_SQL_SERVER
public static final SupportedDBProvider MS_SQL_SERVER
JTDS_MS_SQL_SERVER
public static final SupportedDBProvider JTDS_MS_SQL_SERVER
NETWORK_HSQLDB
public static final SupportedDBProvider NETWORK_HSQLDB
EMBEDDED_HSQLDB
public static final SupportedDBProvider EMBEDDED_HSQLDB
values
public static SupportedDBProvider[] 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 (SupportedDBProvider c : SupportedDBProvider.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SupportedDBProvider 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
getPrefix
public java.lang.String getPrefix()
getType
public java.lang.Class<? extends DatabaseProvider> getType()
createInstance
public DatabaseProvider createInstance(java.lang.String uri,
java.lang.String username,
java.lang.String password)
getProviderForURI
public static SupportedDBProvider getProviderForURI(java.lang.String uri)