Skip to content

Commit

Permalink
Allow oracle.use.transaction.view to be overridden dynamically.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Sep 7, 2010
1 parent de2a6bd commit c42672d
Showing 1 changed file with 10 additions and 4 deletions.
Expand Up @@ -55,12 +55,12 @@ public class OracleDbDialect extends AbstractDbDialect implements IDbDialect {
public void init(Platform pf) {
super.init(pf);
try {
areDatabaseTransactionsPendingSince(System.currentTimeMillis());
supportsTransactionViews = true;
} catch (Exception ex) {
if (parameterService.is(ParameterConstants.DBDIALECT_ORACLE_USE_TRANSACTION_VIEW)) {
areDatabaseTransactionsPendingSince(System.currentTimeMillis());
supportsTransactionViews = true;
log.warn(ex);
}
} catch (Exception ex) {
log.warn(ex);
}
}

Expand Down Expand Up @@ -250,4 +250,10 @@ public void setSelectTransactionsSql(String selectTransactionSql) {
public void setSelectTriggerSql(String selectTriggerSql) {
this.selectTriggerSql = selectTriggerSql;
}

@Override
public boolean supportsTransactionViews() {
return supportsTransactionViews && parameterService.is(ParameterConstants.DBDIALECT_ORACLE_USE_TRANSACTION_VIEW);
}

}

0 comments on commit c42672d

Please sign in to comment.