liquibase.ext.db2i.database.DB2iDatabase Maven / Gradle / Ivy
package liquibase.ext.db2i.database;
import liquibase.database.DatabaseConnection;
import liquibase.database.core.DB2Database;
import liquibase.exception.DatabaseException;
public class DB2iDatabase extends DB2Database {
@Override
public int getPriority() {
return super.getPriority()+5;
}
@Override
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn) throws DatabaseException {
return conn.getDatabaseProductName().startsWith("DB2 UDB for AS/400");
}
@Override
public String getDefaultDriver(String url) {
if (url.startsWith("jdbc:as400")) {
return "com.ibm.as400.access.AS400JDBCDriver";
}
return null;
}
@Override
protected String getDefaultDatabaseProductName() {
return "DB2i";
}
@Override
public String getShortName() {
return "db2i";
}
@Override
public boolean supportsSchemas() {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy