mirror of https://github.com/apache/openjpa.git
Fix documentation on openjpa.LockManager property. Remove some redundant logic
from BrokerImpl. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501171 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
74823f7cd0
commit
5f76ea2eaf
|
@ -780,17 +780,15 @@ public class BrokerImpl
|
||||||
// after making instance transactional for locking
|
// after making instance transactional for locking
|
||||||
if (!sm.isTransactional() && useTransactionalState(fetch))
|
if (!sm.isTransactional() && useTransactionalState(fetch))
|
||||||
sm.transactional();
|
sm.transactional();
|
||||||
boolean loaded = sm.isLoading();
|
boolean loaded = false;
|
||||||
if (!loaded) {
|
try {
|
||||||
try {
|
loaded = sm.load(fetch, StateManagerImpl.LOAD_FGS,
|
||||||
loaded = sm.load(fetch, StateManagerImpl.LOAD_FGS,
|
exclude, edata, false);
|
||||||
exclude, edata, false);
|
} catch (ObjectNotFoundException onfe) {
|
||||||
} catch (ObjectNotFoundException onfe) {
|
if ((flags & OID_NODELETED) != 0
|
||||||
if ((flags & OID_NODELETED) != 0
|
|| (flags & OID_NOVALIDATE) != 0)
|
||||||
|| (flags & OID_NOVALIDATE) != 0)
|
throw onfe;
|
||||||
throw onfe;
|
return call.processReturn(oid, null);
|
||||||
return call.processReturn(oid, null);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if no data needed to be loaded and the user wants to
|
// if no data needed to be loaded and the user wants to
|
||||||
|
|
|
@ -1955,18 +1955,20 @@ for managing bidirectional relations upon a flush. See
|
||||||
LockManager</literal>
|
LockManager</literal>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
<emphasis role="bold">Default: </emphasis><literal>pessimistic</literal>
|
<emphasis role="bold">Default: </emphasis><literal>version</literal>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
<emphasis role="bold">Possible values: </emphasis><literal>none</literal>,
|
<emphasis role="bold">Possible values: </emphasis><literal>none</literal>,
|
||||||
<literal>sjvm</literal>, <literal>pessimistic</literal>
|
<literal>sjvm</literal>, <literal>pessimistic</literal>,
|
||||||
|
<literal>version</literal>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
<emphasis role="bold">Description:</emphasis> A plugin string (see
|
<emphasis role="bold">Description:</emphasis> A plugin string (see
|
||||||
<xref linkend="ref_guide_conf_plugins"/>) describing a
|
<xref linkend="ref_guide_conf_plugins"/>) describing a
|
||||||
<ulink url="../javadoc/org/apache/openjpa/kernel/LockManager.html"><classname>
|
<ulink url="../javadoc/org/apache/openjpa/kernel/LockManager.html"><classname>
|
||||||
org.apache.openjpa.kernel.LockManager</classname></ulink> to use for acquiring
|
org.apache.openjpa.kernel.LockManager</classname></ulink> to use for acquiring
|
||||||
locks on persistent instances during transactions.
|
locks on persistent instances during transactions. See
|
||||||
|
<xref linkend="ref_guide_locking_lockmgr"/> for more information.
|
||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
<section id="openjpa.LockTimeout">
|
<section id="openjpa.LockTimeout">
|
||||||
|
|
Loading…
Reference in New Issue