OPENJPA-2167. Allow "none" setting for AutoDetach for debug purposes.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307425 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kevin W. Sutter 2012-03-30 13:57:29 +00:00
parent 90fcd9623d
commit b897fe50cc
1 changed files with 2 additions and 0 deletions

View File

@ -38,12 +38,14 @@ class AutoDetachValue
public static final String DETACH_COMMIT = "commit";
public static final String DETACH_ROLLBACK= "rollback";
public static final String DETACH_NONTXREAD = "nontx-read";
public static final String DETACH_NONE = "none";
private static String[] ALIASES = new String[]{
DETACH_CLOSE, String.valueOf(AutoDetach.DETACH_CLOSE),
DETACH_COMMIT, String.valueOf(AutoDetach.DETACH_COMMIT),
DETACH_NONTXREAD, String.valueOf(AutoDetach.DETACH_NONTXREAD),
DETACH_ROLLBACK, String.valueOf(AutoDetach.DETACH_ROLLBACK),
DETACH_NONE, String.valueOf(AutoDetach.DETACH_NONE),
// for compatibility with JDO DetachAllOnCommit
"true", String.valueOf(AutoDetach.DETACH_COMMIT),
"false", "0",