use of org.jumpmind.db.sql.JdbcSqlTransaction in project symmetric-ds by JumpMind.
the class AseSymmetricDialect method switchCatalogForTriggerInstall.
@Override
protected String switchCatalogForTriggerInstall(String catalog, ISqlTransaction transaction) {
if (catalog != null) {
Connection c = ((JdbcSqlTransaction) transaction).getConnection();
String previousCatalog;
try {
previousCatalog = c.getCatalog();
c.setCatalog(catalog);
return previousCatalog;
} catch (SQLException e) {
throw new SqlException(e);
}
} else {
return null;
}
}
Aggregations