org.riverock.dbrevision.db
Class DatabaseFactory

java.lang.Object
  extended by org.riverock.dbrevision.db.DatabaseFactory

public class DatabaseFactory
extends Object

Author:
Sergei Maslyukov Date: 04.07.2006 Time: 12:03:41

Field Summary
static String DB2_FAMILY
           
static String HYPERSONIC_FAMILY
           
static String MAXDB_FAMILY
           
static String MYSQL_FAMILY
           
static String ORACLE_FAMILY
           
static String POSTGREES_FAMILY
           
static String SQLSERVER_FAMILY
           
 
Constructor Summary
DatabaseFactory()
           
 
Method Summary
static Database.Family decodeFamily(String familyCode)
           
static Database getInstance(Connection connection, Database.Family family)
           
static Database getInstance(Connection connection, String familyCode)
           
static List<String> getSupportedFamilyCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORACLE_FAMILY

public static final String ORACLE_FAMILY
See Also:
Constant Field Values

MYSQL_FAMILY

public static final String MYSQL_FAMILY
See Also:
Constant Field Values

HYPERSONIC_FAMILY

public static final String HYPERSONIC_FAMILY
See Also:
Constant Field Values

SQLSERVER_FAMILY

public static final String SQLSERVER_FAMILY
See Also:
Constant Field Values

POSTGREES_FAMILY

public static final String POSTGREES_FAMILY
See Also:
Constant Field Values

DB2_FAMILY

public static final String DB2_FAMILY
See Also:
Constant Field Values

MAXDB_FAMILY

public static final String MAXDB_FAMILY
See Also:
Constant Field Values
Constructor Detail

DatabaseFactory

public DatabaseFactory()
Method Detail

getSupportedFamilyCode

public static List<String> getSupportedFamilyCode()

decodeFamily

public static Database.Family decodeFamily(String familyCode)

getInstance

public static Database getInstance(Connection connection,
                                   String familyCode)

getInstance

public static Database getInstance(Connection connection,
                                   Database.Family family)


Copyright © 2008 Riverock community. All Rights Reserved.