// Set Driver specific properties (if any)
return driver;
}
else if (isClass(DBDatabaseDriverMSSQL.class, driverclass))
{
DBDatabaseDriverMSSQL driver = new DBDatabaseDriverMSSQL();
// Set Driver specific properties (if any)
driver.setDatabaseName(schema);
return driver;
}
else if (isClass(DBDatabaseDriverHSql.class, driverclass))
{
DBDatabaseDriverHSql driver = new DBDatabaseDriverHSql();
// Set Driver specific properties (if any)
return driver;
}
else if (isClass(DBDatabaseDriverPostgreSQL.class, driverclass))
{
DBDatabaseDriverPostgreSQL driver = new DBDatabaseDriverPostgreSQL();
// Set Driver specific properties (if any)
driver.setDatabaseName(schema);
// Create the reverse function that is needed by this sample
Connection conn = getConnection();
driver.createReverseFunction(conn);
releaseConnection(conn);
return driver;
}
else if (isClass(DBDatabaseDriverH2.class, driverclass))
{
DBDatabaseDriverH2 driver = new DBDatabaseDriverH2();
// Set Driver specific properties (if any)
driver.setDatabaseName(schema);
return driver;
}
else if (isClass(DBDatabaseDriverDerby.class, driverclass))
{
DBDatabaseDriverDerby driver = new DBDatabaseDriverDerby();
// Set Driver specific properties (if any)
driver.setDatabaseName(schema);
return driver;
}
else
{ // Unknown Provider
throw new RuntimeException("Unknown Database Driver " + driverclass);