|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object liquibase.database.DatabaseFactory
public class DatabaseFactory
Method Summary | |
---|---|
void |
clearRegistry()
Removes all registered databases, even built in ones. |
Database |
findCorrectDatabaseImplementation(DatabaseConnection connection)
|
String |
findDefaultDriver(String url)
|
Database |
getDatabase(String shortName)
|
List<Database> |
getImplementedDatabases()
Returns instances of all implemented database types. |
static DatabaseFactory |
getInstance()
|
List<Database> |
getInternalDatabases()
Returns instances of all "internal" database types. |
DatabaseConnection |
openConnection(String url,
String username,
String password,
String propertyProvider,
ResourceAccessor resourceAccessor)
|
DatabaseConnection |
openConnection(String url,
String username,
String password,
String driver,
String databaseClass,
String driverPropertiesFile,
String propertyProviderClass,
ResourceAccessor resourceAccessor)
|
Database |
openDatabase(String url,
String username,
String password,
String propertyProviderClass,
ResourceAccessor resourceAccessor)
|
Database |
openDatabase(String url,
String username,
String password,
String driver,
String databaseClass,
String driverPropertiesFile,
String propertyProviderClass,
ResourceAccessor resourceAccessor)
|
void |
register(Database database)
|
static void |
reset()
|
static void |
setInstance(DatabaseFactory databaseFactory)
Set singleton instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DatabaseFactory getInstance()
public static void reset()
public static void setInstance(DatabaseFactory databaseFactory)
public List<Database> getImplementedDatabases()
public List<Database> getInternalDatabases()
public void register(Database database)
public Database findCorrectDatabaseImplementation(DatabaseConnection connection) throws DatabaseException
DatabaseException
public Database openDatabase(String url, String username, String password, String propertyProviderClass, ResourceAccessor resourceAccessor) throws DatabaseException
DatabaseException
public Database openDatabase(String url, String username, String password, String driver, String databaseClass, String driverPropertiesFile, String propertyProviderClass, ResourceAccessor resourceAccessor) throws DatabaseException
DatabaseException
public DatabaseConnection openConnection(String url, String username, String password, String propertyProvider, ResourceAccessor resourceAccessor) throws DatabaseException
DatabaseException
public DatabaseConnection openConnection(String url, String username, String password, String driver, String databaseClass, String driverPropertiesFile, String propertyProviderClass, ResourceAccessor resourceAccessor) throws DatabaseException
DatabaseException
public String findDefaultDriver(String url)
public void clearRegistry()
public Database getDatabase(String shortName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |