@Override
public void commitTx() throws DatabaseException
{
try
{
if (!inTransaction) throw new DatabaseException("commitTx failed: no active transaction");
connection.commit();
connection.setAutoCommit(true);
inTransaction = false;
// FIXME in case of hsqldb we need to checkpoint
// if(this.source.getDriverClassName().contains("hsql"))
// this.executeQuery("checkpoint");
logger.info("commited transaction");
}
catch (SQLException sqle)
{
logger.error("commitTx failed: " + sqle.getMessage());
throw new DatabaseException(sqle);
}
finally
{
closeConnection();
}