org.israfil.sqlelements.render
Enum DatabaseType
java.lang.Object
java.lang.Enum<DatabaseType>
org.israfil.sqlelements.render.DatabaseType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<DatabaseType>
public enum DatabaseType
- extends java.lang.Enum<DatabaseType>
An enumerated type, but since eclipse doesn't quite support enums yet, we're spoofing
it until a later Cheetah release.
- Version:
- $Revision: 16 $
- Author:
- Christian Edward Gruber , Latest: $Author: cgruber $
Method Summary |
static DatabaseType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DatabaseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Mock
public static final DatabaseType Mock
Generic
public static final DatabaseType Generic
Oracle
public static final DatabaseType Oracle
SQLServer
public static final DatabaseType SQLServer
Sybase
public static final DatabaseType Sybase
MySql
public static final DatabaseType MySql
Delegated
public static final DatabaseType Delegated
code
public final int code
name
public final java.lang.String name
cr
public final CommandRenderer cr
qr
public final QueryRenderer qr
dr
public final DateRenderer dr
sdelim
public final java.lang.String sdelim
- A delimiter for literal strings in sql
values
public static final DatabaseType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(DatabaseType c : DatabaseType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static DatabaseType 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
Copyright 2005-2005-2006 null. All Rights Reserved.