return OnQueryOnly.COMMIT;
}
if (onQueryOnly.startsWith("CLOSE")){
if (!isReadCommitedIsolation(ds)){
String m = "transaction.queryonlyclose is true but the transaction Isolation Level is not READ_COMMITTED";
throw new PersistenceException(m);
} else {
return OnQueryOnly.CLOSE_ON_READCOMMITTED;
}
}
// default to rollback