Merge pull request #2801 from ebean-orm/feature/drop-feature-OnQueryOnly

Remove the OnQueryOnly (rollback) feature
This commit is contained in:
Rob Bygrave
2022-08-25 12:30:16 +12:00
committed by GitHub
3 changed files with 7 additions and 160 deletions
@@ -22,23 +22,6 @@ public class DatabasePlatform {
private static final System.Logger log = EbeanVersion.log;
/**
* Behavior used when ending a query only transaction (at read committed isolation level).
*/
public enum OnQueryOnly {
/**
* Rollback the transaction.
*/
ROLLBACK,
/**
* Commit the transaction
*/
COMMIT
}
/**
* Set to true for MySql, no other jdbc drivers need this workaround.
*/
@@ -59,11 +42,6 @@ public class DatabasePlatform {
*/
protected boolean supportsNativeJavaTime = true;
/**
* The behaviour used when ending a read only transaction at read committed isolation level.
*/
protected OnQueryOnly onQueryOnly = OnQueryOnly.COMMIT;
/**
* The open quote used by quoted identifiers.
*/
@@ -409,20 +387,6 @@ public class DatabasePlatform {
return null;
}
/**
* Return the behaviour to use when ending a read only transaction.
*/
public OnQueryOnly getOnQueryOnly() {
return onQueryOnly;
}
/**
* Set the behaviour to use when ending a read only transaction.
*/
public void setOnQueryOnly(OnQueryOnly onQueryOnly) {
this.onQueryOnly = onQueryOnly;
}
/**
* Return the DbEncrypt handler for this DB platform.
*/