com.partnersoft.sql
Enum SqlType

java.lang.Object
  extended by java.lang.Enum<SqlType>
      extended by com.partnersoft.sql.SqlType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SqlType>

public enum SqlType
extends java.lang.Enum<SqlType>

Known (to Partner) database types. Includes information about which JDBC driver to use etc.

Copyright 2006 Partner Software, Inc.

Author:
Paul Reavis

Enum Constant Summary
ACCESS
           
AS400
           
DERBY
           
HSQLDB
           
MYSQL
           
ODBC
           
ORACLE
           
OTHER
           
SQL_SERVER
           
 
Method Summary
static SqlType forName(java.lang.String name)
          Returns the instance of SqlType matching the given name.
 SqlDialect getDialect()
          SqlDialect for this type.
 java.lang.String getDriver()
          Full class name of the JDBC driver for this database type.
 java.lang.String getName()
          Name of the database type.
static SqlType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SqlType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

ACCESS

public static final SqlType ACCESS

AS400

public static final SqlType AS400

DERBY

public static final SqlType DERBY

HSQLDB

public static final SqlType HSQLDB

MYSQL

public static final SqlType MYSQL

ODBC

public static final SqlType ODBC

ORACLE

public static final SqlType ORACLE

SQL_SERVER

public static final SqlType SQL_SERVER

OTHER

public static final SqlType OTHER
Method Detail

values

public static SqlType[] 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 (SqlType c : SqlType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SqlType 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

forName

public static SqlType forName(java.lang.String name)
Returns the instance of SqlType matching the given name. Returns null if no match is available.


getName

public java.lang.String getName()
Name of the database type. This is the same name used in SqlDatabase.


getDriver

public java.lang.String getDriver()
Full class name of the JDBC driver for this database type.


getDialect

public SqlDialect getDialect()
SqlDialect for this type.