public enum DialectClass extends java.lang.Enum<DialectClass> implements ClassEnum<Dialect>
Enum Constant and Description |
---|
DB2 |
DERBY |
FIREBIRD |
H2 |
HSQLDB |
INGRES |
MAXDB |
MCKOI |
MYSQL |
ORACLE |
POSTGRESQL |
STANDARD |
SYBASE |
Modifier and Type | Method and Description |
---|---|
static Dialect |
deserialize(java.lang.String id)
Creates a new instance of the Dialect implementation from the specified class name.
|
boolean |
isInstance(Dialect dialect)
Indicates whether the specified object is an instance of this enumerated class.
|
Dialect |
newInstance()
Creates a new instance of the enumerated class.
|
static java.lang.String |
serialize(Dialect dialect)
Return a String representation that identifies the specified Dialect.
|
static DialectClass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DialectClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DialectClass DB2
public static final DialectClass DERBY
public static final DialectClass FIREBIRD
public static final DialectClass H2
public static final DialectClass HSQLDB
public static final DialectClass INGRES
public static final DialectClass MAXDB
public static final DialectClass MCKOI
public static final DialectClass MYSQL
public static final DialectClass ORACLE
public static final DialectClass POSTGRESQL
public static final DialectClass STANDARD
public static final DialectClass SYBASE
public static DialectClass[] values()
for (DialectClass c : DialectClass.values()) System.out.println(c);
public static DialectClass 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 boolean isInstance(Dialect dialect)
ClassEnum
isInstance
in interface ClassEnum<Dialect>
dialect
- an instanceClassEnum.isInstance(java.lang.Object)
public Dialect newInstance() throws java.lang.Exception
ClassEnum
newInstance
in interface ClassEnum<Dialect>
java.lang.Exception
- if a new instance could not be instantiated.ClassEnum.newInstance()
public static Dialect deserialize(java.lang.String id) throws java.lang.Exception
id
- the class name of a Dialect instance.java.lang.Exception
- if a Dialect instance could not be instantiated from the specified class name.