fc.jdbc
Class DBName

java.lang.Object
  extended by fc.jdbc.DBName

public final class DBName
extends Object

Enumerates database names. Useful for methods that must be customized for each type of database.


Field Summary
static DBName mysql
           
static DBName oracle
           
static DBName postgres
           
 
Method Summary
static DBName fromDriver(String driver_name)
          Returns the DBName corresponding to the specified jdbc driver or null if the jdbc driver could not be parsed.
static void main(String[] args)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mysql

public static final DBName mysql

postgres

public static final DBName postgres

oracle

public static final DBName oracle
Method Detail

fromDriver

public static DBName fromDriver(String driver_name)
Returns the DBName corresponding to the specified jdbc driver or null if the jdbc driver could not be parsed.

Parameters:
driver_name - a jdbc driver name such as com.mysql.jdbc.Driver or org.postgresql.Driver

toString

public String toString()
Overrides:
toString in class Object

main

public static void main(String[] args)