<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!--NewPage--> | |
<HTML> | |
<HEAD> | |
<!-- Generated by javadoc (build 1.6.0_29) on Thu Nov 21 14:32:35 CET 2013 --> | |
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<TITLE> | |
Broker (OpenJPA Parent POM 2.3.0 API) | |
</TITLE> | |
<META NAME="date" CONTENT="2013-11-21"> | |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> | |
<SCRIPT type="text/javascript"> | |
function windowTitle() | |
{ | |
if (location.href.indexOf('is-external=true') == -1) { | |
parent.document.title="Broker (OpenJPA Parent POM 2.3.0 API)"; | |
} | |
} | |
</SCRIPT> | |
<NOSCRIPT> | |
</NOSCRIPT> | |
</HEAD> | |
<BODY BGCOLOR="white" onload="windowTitle();"> | |
<HR> | |
<!-- ========= START OF TOP NAVBAR ======= --> | |
<A NAME="navbar_top"><!-- --></A> | |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_top_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Broker.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../org/apache/openjpa/kernel/Bootstrap.html" title="class in org.apache.openjpa.kernel"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/openjpa/kernel/BrokerFactory.html" title="interface in org.apache.openjpa.kernel"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../index.html?org/apache/openjpa/kernel/Broker.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="Broker.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_top"></A> | |
<!-- ========= END OF TOP NAVBAR ========= --> | |
<HR> | |
<!-- ======== START OF CLASS DATA ======== --> | |
<H2> | |
<FONT SIZE="-1"> | |
org.apache.openjpa.kernel</FONT> | |
<BR> | |
Interface Broker</H2> | |
<DL> | |
<DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../org/apache/openjpa/kernel/AutoClear.html" title="interface in org.apache.openjpa.kernel">AutoClear</A>, <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html" title="interface in org.apache.openjpa.kernel">AutoDetach</A>, <A HREF="../../../../org/apache/openjpa/event/CallbackModes.html" title="interface in org.apache.openjpa.event">CallbackModes</A>, <A HREF="../../../../org/apache/openjpa/lib/util/Closeable.html" title="interface in org.apache.openjpa.lib.util">Closeable</A>, <A HREF="../../../../org/apache/openjpa/kernel/ConnectionRetainModes.html" title="interface in org.apache.openjpa.kernel">ConnectionRetainModes</A>, <A HREF="../../../../org/apache/openjpa/kernel/DetachState.html" title="interface in org.apache.openjpa.kernel">DetachState</A>, <A HREF="../../../../org/apache/openjpa/kernel/LockLevels.html" title="interface in org.apache.openjpa.kernel">LockLevels</A>, <A HREF="../../../../org/apache/openjpa/kernel/RestoreState.html" title="interface in org.apache.openjpa.kernel">RestoreState</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html" title="interface in org.apache.openjpa.kernel">StoreContext</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/transaction/Synchronization.html?is-external=true" title="class or interface in javax.transaction">Synchronization</A></DD> | |
</DL> | |
<DL> | |
<DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../../org/apache/openjpa/slice/DistributedBroker.html" title="interface in org.apache.openjpa.slice">DistributedBroker</A></DD> | |
</DL> | |
<DL> | |
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../org/apache/openjpa/kernel/BrokerImpl.html" title="class in org.apache.openjpa.kernel">BrokerImpl</A>, <A HREF="../../../../org/apache/openjpa/kernel/DelegatingBroker.html" title="class in org.apache.openjpa.kernel">DelegatingBroker</A>, <A HREF="../../../../org/apache/openjpa/slice/DistributedBrokerImpl.html" title="class in org.apache.openjpa.slice">DistributedBrokerImpl</A>, <A HREF="../../../../org/apache/openjpa/kernel/FinalizingBrokerImpl.html" title="class in org.apache.openjpa.kernel">FinalizingBrokerImpl</A></DD> | |
</DL> | |
<HR> | |
<DL> | |
<DT><PRE>public interface <B>Broker</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/javax/transaction/Synchronization.html?is-external=true" title="class or interface in javax.transaction">Synchronization</A>, <A HREF="../../../../org/apache/openjpa/lib/util/Closeable.html" title="interface in org.apache.openjpa.lib.util">Closeable</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html" title="interface in org.apache.openjpa.kernel">StoreContext</A>, <A HREF="../../../../org/apache/openjpa/kernel/ConnectionRetainModes.html" title="interface in org.apache.openjpa.kernel">ConnectionRetainModes</A>, <A HREF="../../../../org/apache/openjpa/kernel/DetachState.html" title="interface in org.apache.openjpa.kernel">DetachState</A>, <A HREF="../../../../org/apache/openjpa/kernel/LockLevels.html" title="interface in org.apache.openjpa.kernel">LockLevels</A>, <A HREF="../../../../org/apache/openjpa/kernel/RestoreState.html" title="interface in org.apache.openjpa.kernel">RestoreState</A>, <A HREF="../../../../org/apache/openjpa/kernel/AutoClear.html" title="interface in org.apache.openjpa.kernel">AutoClear</A>, <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html" title="interface in org.apache.openjpa.kernel">AutoDetach</A>, <A HREF="../../../../org/apache/openjpa/event/CallbackModes.html" title="interface in org.apache.openjpa.event">CallbackModes</A></DL> | |
</PRE> | |
<P> | |
The broker is the primary interface into the OpenJPA runtime. Each broker | |
maintains an independent object cache and an independent transactional | |
context. | |
<P> | |
<P> | |
<DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.4.0</DD> | |
<DT><B>Author:</B></DT> | |
<DD>Abe White</DD> | |
</DL> | |
<HR> | |
<P> | |
<!-- =========== FIELD SUMMARY =========== --> | |
<A NAME="field_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Field Summary</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_org.apache.openjpa.kernel.StoreContext"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from interface org.apache.openjpa.kernel.<A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html" title="interface in org.apache.openjpa.kernel">StoreContext</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#EXCLUDE_ALL">EXCLUDE_ALL</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#OID_ALLOW_NEW">OID_ALLOW_NEW</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#OID_COPY">OID_COPY</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#OID_NODELETED">OID_NODELETED</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#OID_NOVALIDATE">OID_NOVALIDATE</A></CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_org.apache.openjpa.kernel.ConnectionRetainModes"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from interface org.apache.openjpa.kernel.<A HREF="../../../../org/apache/openjpa/kernel/ConnectionRetainModes.html" title="interface in org.apache.openjpa.kernel">ConnectionRetainModes</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/openjpa/kernel/ConnectionRetainModes.html#CONN_RETAIN_ALWAYS">CONN_RETAIN_ALWAYS</A>, <A HREF="../../../../org/apache/openjpa/kernel/ConnectionRetainModes.html#CONN_RETAIN_DEMAND">CONN_RETAIN_DEMAND</A>, <A HREF="../../../../org/apache/openjpa/kernel/ConnectionRetainModes.html#CONN_RETAIN_TRANS">CONN_RETAIN_TRANS</A></CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_org.apache.openjpa.kernel.DetachState"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from interface org.apache.openjpa.kernel.<A HREF="../../../../org/apache/openjpa/kernel/DetachState.html" title="interface in org.apache.openjpa.kernel">DetachState</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/openjpa/kernel/DetachState.html#DETACH_ALL">DETACH_ALL</A>, <A HREF="../../../../org/apache/openjpa/kernel/DetachState.html#DETACH_FETCH_GROUPS">DETACH_FETCH_GROUPS</A>, <A HREF="../../../../org/apache/openjpa/kernel/DetachState.html#DETACH_FGS">DETACH_FGS</A>, <A HREF="../../../../org/apache/openjpa/kernel/DetachState.html#DETACH_LOADED">DETACH_LOADED</A></CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_org.apache.openjpa.kernel.LockLevels"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from interface org.apache.openjpa.kernel.<A HREF="../../../../org/apache/openjpa/kernel/LockLevels.html" title="interface in org.apache.openjpa.kernel">LockLevels</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/openjpa/kernel/LockLevels.html#LOCK_NONE">LOCK_NONE</A>, <A HREF="../../../../org/apache/openjpa/kernel/LockLevels.html#LOCK_READ">LOCK_READ</A>, <A HREF="../../../../org/apache/openjpa/kernel/LockLevels.html#LOCK_WRITE">LOCK_WRITE</A></CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_org.apache.openjpa.kernel.RestoreState"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from interface org.apache.openjpa.kernel.<A HREF="../../../../org/apache/openjpa/kernel/RestoreState.html" title="interface in org.apache.openjpa.kernel">RestoreState</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/openjpa/kernel/RestoreState.html#RESTORE_ALL">RESTORE_ALL</A>, <A HREF="../../../../org/apache/openjpa/kernel/RestoreState.html#RESTORE_IMMUTABLE">RESTORE_IMMUTABLE</A>, <A HREF="../../../../org/apache/openjpa/kernel/RestoreState.html#RESTORE_NONE">RESTORE_NONE</A></CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_org.apache.openjpa.kernel.AutoClear"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from interface org.apache.openjpa.kernel.<A HREF="../../../../org/apache/openjpa/kernel/AutoClear.html" title="interface in org.apache.openjpa.kernel">AutoClear</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/openjpa/kernel/AutoClear.html#CLEAR_ALL">CLEAR_ALL</A>, <A HREF="../../../../org/apache/openjpa/kernel/AutoClear.html#CLEAR_DATASTORE">CLEAR_DATASTORE</A></CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_org.apache.openjpa.kernel.AutoDetach"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from interface org.apache.openjpa.kernel.<A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html" title="interface in org.apache.openjpa.kernel">AutoDetach</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html#DETACH_CLOSE">DETACH_CLOSE</A>, <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html#DETACH_COMMIT">DETACH_COMMIT</A>, <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html#DETACH_NONE">DETACH_NONE</A>, <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html#DETACH_NONTXREAD">DETACH_NONTXREAD</A>, <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html#DETACH_ROLLBACK">DETACH_ROLLBACK</A>, <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html#names">names</A>, <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html#values">values</A></CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_org.apache.openjpa.event.CallbackModes"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from interface org.apache.openjpa.event.<A HREF="../../../../org/apache/openjpa/event/CallbackModes.html" title="interface in org.apache.openjpa.event">CallbackModes</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/openjpa/event/CallbackModes.html#CALLBACK_FAIL_FAST">CALLBACK_FAIL_FAST</A>, <A HREF="../../../../org/apache/openjpa/event/CallbackModes.html#CALLBACK_IGNORE">CALLBACK_IGNORE</A>, <A HREF="../../../../org/apache/openjpa/event/CallbackModes.html#CALLBACK_LOG">CALLBACK_LOG</A>, <A HREF="../../../../org/apache/openjpa/event/CallbackModes.html#CALLBACK_RETHROW">CALLBACK_RETHROW</A>, <A HREF="../../../../org/apache/openjpa/event/CallbackModes.html#CALLBACK_ROLLBACK">CALLBACK_ROLLBACK</A></CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ========== METHOD SUMMARY =========== --> | |
<A NAME="method_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Method Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#addLifecycleListener(java.lang.Object, java.lang.Class[])">addLifecycleListener</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> listener, | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>[] classes)</CODE> | |
<BR> | |
Register a listener for lifecycle-related events on the specified | |
classes.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#addTransactionListener(java.lang.Object)">addTransactionListener</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> listener)</CODE> | |
<BR> | |
Register a listener for transaction-related events.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#assertActiveTransaction()">assertActiveTransaction</A></B>()</CODE> | |
<BR> | |
Throw an exception if there is no active transaction.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#assertNontransactionalRead()">assertNontransactionalRead</A></B>()</CODE> | |
<BR> | |
Throw an exception if there is no transaction active and | |
nontransactional reading is not enabled.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#assertOpen()">assertOpen</A></B>()</CODE> | |
<BR> | |
Throw an exception if this broker has been closed.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#assertWriteOperation()">assertWriteOperation</A></B>()</CODE> | |
<BR> | |
Throw an exception if a write operation is not permitted (there is | |
no active transaction and nontransactional writing is not enabled).</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#attach(java.lang.Object, boolean, org.apache.openjpa.kernel.OpCallbacks)">attach</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
boolean copyNew, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Import the specified detached object into the broker.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#attachAll(java.util.Collection, boolean, org.apache.openjpa.kernel.OpCallbacks)">attachAll</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
boolean copyNew, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Import the specified objects into the broker.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#begin()">begin</A></B>()</CODE> | |
<BR> | |
Begin a transaction.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#beginOperation(boolean)">beginOperation</A></B>(boolean syncTrans)</CODE> | |
<BR> | |
Begin a logical operation.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#cancelAll()">cancelAll</A></B>()</CODE> | |
<BR> | |
Cancel all pending data store statements.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#close()">close</A></B>()</CODE> | |
<BR> | |
Close the broker.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#commit()">commit</A></B>()</CODE> | |
<BR> | |
Commit the current transaction.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#commitAndResume()">commitAndResume</A></B>()</CODE> | |
<BR> | |
Issue a commit and then start a new transaction.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#delete(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)">delete</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Delete the given object.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#deleteAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)">deleteAll</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Delete the given objects.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#detach(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)">detach</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Detach the specified object from the broker.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#detachAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)">detachAll</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Detach the specified objects from the broker.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#detachAll(org.apache.openjpa.kernel.OpCallbacks)">detachAll</A></B>(<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Detach all objects in place.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#detachAll(org.apache.openjpa.kernel.OpCallbacks, boolean)">detachAll</A></B>(<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call, | |
boolean flush)</CODE> | |
<BR> | |
Detach all objects in place, with the option of performing a | |
flush before doing the detachment.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#dirtyType(java.lang.Class)">dirtyType</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A> cls)</CODE> | |
<BR> | |
Mark the given class as dirty within the current transaction.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#endOperation()">endOperation</A></B>()</CODE> | |
<BR> | |
End a logical operation.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#evict(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)">evict</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Evict the given object.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#evictAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)">evictAll</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Evict the given objects.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#evictAll(org.apache.openjpa.kernel.Extent, org.apache.openjpa.kernel.OpCallbacks)">evictAll</A></B>(<A HREF="../../../../org/apache/openjpa/kernel/Extent.html" title="interface in org.apache.openjpa.kernel">Extent</A> extent, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Evict all persistent-clean and persistent-nontransactional | |
instances in the given <A HREF="../../../../org/apache/openjpa/kernel/Extent.html" title="interface in org.apache.openjpa.kernel"><CODE>Extent</CODE></A>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#evictAll(org.apache.openjpa.kernel.OpCallbacks)">evictAll</A></B>(<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Evict all clean objects.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#flush()">flush</A></B>()</CODE> | |
<BR> | |
Flush all transactional instances to the data store.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getAutoClear()">getAutoClear</A></B>()</CODE> | |
<BR> | |
Whether objects clear when entering transactions.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getAutoDetach()">getAutoDetach</A></B>()</CODE> | |
<BR> | |
Bit flags marked in <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html" title="interface in org.apache.openjpa.kernel"><CODE>AutoDetach</CODE></A> which indicate when persistent | |
managed objects should be automatically detached in-place.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/openjpa/kernel/BrokerFactory.html" title="interface in org.apache.openjpa.kernel">BrokerFactory</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getBrokerFactory()">getBrokerFactory</A></B>()</CODE> | |
<BR> | |
Return the factory that produced this broker.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getCachePreparedQuery()">getCachePreparedQuery</A></B>()</CODE> | |
<BR> | |
Affirms if this receiver is caching prepared queries.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getConnectionRetainMode()">getConnectionRetainMode</A></B>()</CODE> | |
<BR> | |
Return the connection retain mode for this broker.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getEvictFromDataCache()">getEvictFromDataCache</A></B>()</CODE> | |
<BR> | |
Whether to also evict an object from the store cache when it is | |
evicted through this broker.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/openjpa/kernel/Seq.html" title="interface in org.apache.openjpa.kernel">Seq</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getIdentitySequence(org.apache.openjpa.meta.ClassMetaData)">getIdentitySequence</A></B>(<A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A> meta)</CODE> | |
<BR> | |
Returns a <A HREF="../../../../org/apache/openjpa/kernel/Seq.html" title="interface in org.apache.openjpa.kernel"><CODE>Seq</CODE></A> for the datastore identity values of the | |
specified persistent class, or null if the class' identity cannot be | |
represented as a sequence.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getIgnoreChanges()">getIgnoreChanges</A></B>()</CODE> | |
<BR> | |
Whether to take into account changes in the transaction when executing | |
a query or iterating an extent.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/openjpa/kernel/InverseManager.html" title="class in org.apache.openjpa.kernel">InverseManager</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getInverseManager()">getInverseManager</A></B>()</CODE> | |
<BR> | |
Return the inverse manager in use.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/openjpa/event/LifecycleEventManager.html" title="class in org.apache.openjpa.event">LifecycleEventManager</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getLifecycleEventManager()">getLifecycleEventManager</A></B>()</CODE> | |
<BR> | |
Return the lifecycle event manager associated with the broker.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getLifecycleListenerCallbackMode()">getLifecycleListenerCallbackMode</A></B>()</CODE> | |
<BR> | |
The callback mode for handling exceptions from lifecycle event listeners.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/openjpa/ee/ManagedRuntime.html" title="interface in org.apache.openjpa.ee">ManagedRuntime</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getManagedRuntime()">getManagedRuntime</A></B>()</CODE> | |
<BR> | |
Return the managed runtime in use.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getMultithreaded()">getMultithreaded</A></B>()</CODE> | |
<BR> | |
Whether the broker or its managed instances are used in a multithreaded | |
environment.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getNontransactionalRead()">getNontransactionalRead</A></B>()</CODE> | |
<BR> | |
Whether to allow nontransactional access to persistent state.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getNontransactionalWrite()">getNontransactionalWrite</A></B>()</CODE> | |
<BR> | |
Whether to allow nontransactional changes to persistent state.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getOptimistic()">getOptimistic</A></B>()</CODE> | |
<BR> | |
Whether to use optimistic transactional semantics.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getProperties()">getProperties</A></B>()</CODE> | |
<BR> | |
Retrieve the current properties for this broker Some of these properties | |
may have been changed from the original configuration.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getRestoreState()">getRestoreState</A></B>()</CODE> | |
<BR> | |
Whether to restore an object's original state on rollback.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getRetainState()">getRetainState</A></B>()</CODE> | |
<BR> | |
Whether objects retain their persistent state on transaction commit.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getRollbackCause()">getRollbackCause</A></B>()</CODE> | |
<BR> | |
Returns the Throwable that caused the transaction to be | |
marked for rollback.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getRollbackOnly()">getRollbackOnly</A></B>()</CODE> | |
<BR> | |
Return whether the current transaction has been marked for rollback.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getSupportedProperties()">getSupportedProperties</A></B>()</CODE> | |
<BR> | |
Return the supported properties for this broker as property keys.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getSyncWithManagedTransactions()">getSyncWithManagedTransactions</A></B>()</CODE> | |
<BR> | |
Whether to check for a global transaction upon every managed, | |
non-transactional operation.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getTransactionListenerCallbackMode()">getTransactionListenerCallbackMode</A></B>()</CODE> | |
<BR> | |
The callback mode for handling exceptions from transaction event | |
listeners.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getTransactionListeners()">getTransactionListeners</A></B>()</CODE> | |
<BR> | |
Gets an umodifiable collection of currently registered lsteners.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getUserObject(java.lang.Object)">getUserObject</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> key)</CODE> | |
<BR> | |
Get the value for the specified key from the map of user objects.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/openjpa/kernel/Seq.html" title="interface in org.apache.openjpa.kernel">Seq</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#getValueSequence(org.apache.openjpa.meta.FieldMetaData)">getValueSequence</A></B>(<A HREF="../../../../org/apache/openjpa/meta/FieldMetaData.html" title="class in org.apache.openjpa.meta">FieldMetaData</A> fmd)</CODE> | |
<BR> | |
Returns a <A HREF="../../../../org/apache/openjpa/kernel/Seq.html" title="interface in org.apache.openjpa.kernel"><CODE>Seq</CODE></A> for the generated values of the specified | |
field, or null if the field is not generated.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#isClosed()">isClosed</A></B>()</CODE> | |
<BR> | |
Whether the broker is closed.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#isCloseInvoked()">isCloseInvoked</A></B>()</CODE> | |
<BR> | |
Whether <A HREF="../../../../org/apache/openjpa/kernel/Broker.html#close()"><CODE>close()</CODE></A> has been invoked, though the broker might | |
remain open until the current managed transaction completes.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#isDetached(java.lang.Object)">isDetached</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> obj)</CODE> | |
<BR> | |
Returns <code>true</code> if <code>obj</code> is a detached object | |
(one that can be reattached to a <A HREF="../../../../org/apache/openjpa/kernel/Broker.html" title="interface in org.apache.openjpa.kernel"><CODE>Broker</CODE></A> via a call to | |
<A HREF="../../../../org/apache/openjpa/kernel/Broker.html#attach(java.lang.Object, boolean, org.apache.openjpa.kernel.OpCallbacks)"><CODE>attach(java.lang.Object, boolean, org.apache.openjpa.kernel.OpCallbacks)</CODE></A>); otherwise returns <code>false</code>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#isDetachedNew()">isDetachedNew</A></B>()</CODE> | |
<BR> | |
Whether to treat relations to detached instances during persist | |
operations as new or as pseudo-hollow instances.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#lock(java.lang.Object, int, int, org.apache.openjpa.kernel.OpCallbacks)">lock</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
int level, | |
int timeout, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Ensure that the given instance is locked at the given lock level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#lock(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)">lock</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Ensure that the given instance is locked at the current lock level, as | |
set in the <A HREF="../../../../org/apache/openjpa/kernel/FetchConfiguration.html" title="interface in org.apache.openjpa.kernel"><CODE>FetchConfiguration</CODE></A> for the broker.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#lockAll(java.util.Collection, int, int, org.apache.openjpa.kernel.OpCallbacks)">lockAll</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
int level, | |
int timeout, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Ensure that the given instances are locked at the given lock level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#lockAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)">lockAll</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Ensure that the given instances are locked at the current lock level, as | |
set in the <A HREF="../../../../org/apache/openjpa/kernel/FetchConfiguration.html" title="interface in org.apache.openjpa.kernel"><CODE>FetchConfiguration</CODE></A> for the broker.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/openjpa/kernel/Extent.html" title="interface in org.apache.openjpa.kernel">Extent</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#newExtent(java.lang.Class, boolean)">newExtent</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A> cls, | |
boolean subs)</CODE> | |
<BR> | |
Return an extent of the given class, optionally including subclasses.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#newInstance(java.lang.Class)">newInstance</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A> cls)</CODE> | |
<BR> | |
Create a new instance of type <code>cls</code>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/openjpa/kernel/Query.html" title="interface in org.apache.openjpa.kernel">Query</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#newQuery(java.lang.String, java.lang.Class, java.lang.Object)">newQuery</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> language, | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A> cls, | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> query)</CODE> | |
<BR> | |
Create a new query from the given data, with the given candidate class | |
and language.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/openjpa/kernel/Query.html" title="interface in org.apache.openjpa.kernel">Query</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#newQuery(java.lang.String, java.lang.Object)">newQuery</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> language, | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> query)</CODE> | |
<BR> | |
Create a new query in the given language.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../../../../org/apache/openjpa/kernel/OpenJPAStateManager.html" title="interface in org.apache.openjpa.kernel">OpenJPAStateManager</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#persist(java.lang.Object, java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)">persist</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> id, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Make the given instance persistent.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#persist(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)">persist</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> obj, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Persist the given object.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#persistAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)">persistAll</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Persist the given objects.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#preFlush()">preFlush</A></B>()</CODE> | |
<BR> | |
Run pre-flush actions on transactional objects, including | |
persistence-by-reachability, inverse relationship management, | |
deletion of dependent instances, and instance callbacks.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#putUserObject(java.lang.Object, java.lang.Object)">putUserObject</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> key, | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> val)</CODE> | |
<BR> | |
Put the specified key-value pair into the map of user objects.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#refresh(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)">refresh</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Refresh the state of the given object.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#refreshAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)">refreshAll</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Refresh the state of the given objects.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#release(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)">release</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Release the given object from management.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#releaseAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)">releaseAll</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</CODE> | |
<BR> | |
Release the given objects from management.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#releaseSavepoint()">releaseSavepoint</A></B>()</CODE> | |
<BR> | |
Release the last set savepoint and any resources associated with it.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#releaseSavepoint(java.lang.String)">releaseSavepoint</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE> | |
<BR> | |
Release the savepoint and any resources associated with it.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#removeLifecycleListener(java.lang.Object)">removeLifecycleListener</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> listener)</CODE> | |
<BR> | |
Remove a listener for lifecycle-related events.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#removeTransactionListener(java.lang.Object)">removeTransactionListener</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> listener)</CODE> | |
<BR> | |
Remove a listener for transaction-related events.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#rollback()">rollback</A></B>()</CODE> | |
<BR> | |
Rollback the current transaction.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#rollbackAndResume()">rollbackAndResume</A></B>()</CODE> | |
<BR> | |
Issue a rollback and then start a new transaction.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#rollbackToSavepoint()">rollbackToSavepoint</A></B>()</CODE> | |
<BR> | |
Rollback the current transaction to the last savepoint.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#rollbackToSavepoint(java.lang.String)">rollbackToSavepoint</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE> | |
<BR> | |
Rollback the current transaction to the given savepoint name.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setAutoClear(int)">setAutoClear</A></B>(int clear)</CODE> | |
<BR> | |
Whether objects clear when entering transactions.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setAutoDetach(int)">setAutoDetach</A></B>(int flags)</CODE> | |
<BR> | |
Bit flags marked in <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html" title="interface in org.apache.openjpa.kernel"><CODE>AutoDetach</CODE></A> which indicate when persistent | |
managed objects should be automatically detached in-place.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setAutoDetach(int, boolean)">setAutoDetach</A></B>(int flag, | |
boolean on)</CODE> | |
<BR> | |
Bit flags marked in <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html" title="interface in org.apache.openjpa.kernel"><CODE>AutoDetach</CODE></A> which indicate when persistent | |
managed objects should be automatically detached in-place.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setCachePreparedQuery(boolean)">setCachePreparedQuery</A></B>(boolean flag)</CODE> | |
<BR> | |
Sets whether this receiver will cache prepared queries during its | |
lifetime.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setDetachedNew(boolean)">setDetachedNew</A></B>(boolean isNew)</CODE> | |
<BR> | |
Whether to treat relations to detached instances as new.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setEvictFromDataCache(boolean)">setEvictFromDataCache</A></B>(boolean evict)</CODE> | |
<BR> | |
Whether to also evict an object from the store cache when it is | |
evicted through this broker.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setIgnoreChanges(boolean)">setIgnoreChanges</A></B>(boolean ignore)</CODE> | |
<BR> | |
Whether to take into account changes in the transaction when executing | |
a query or iterating an extent.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setImplicitBehavior(org.apache.openjpa.kernel.OpCallbacks, org.apache.openjpa.util.RuntimeExceptionTranslator)">setImplicitBehavior</A></B>(<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call, | |
<A HREF="../../../../org/apache/openjpa/util/RuntimeExceptionTranslator.html" title="interface in org.apache.openjpa.util">RuntimeExceptionTranslator</A> ex)</CODE> | |
<BR> | |
Set the broker's behavior for implicit actions such as flushing, | |
automatic detachment, and exceptions thrown by managed instances outside | |
a broker operation.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setLifecycleListenerCallbackMode(int)">setLifecycleListenerCallbackMode</A></B>(int mode)</CODE> | |
<BR> | |
The callback mode for handling exceptions from lifecycle event listeners.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setMultithreaded(boolean)">setMultithreaded</A></B>(boolean multi)</CODE> | |
<BR> | |
Whether the broker or its managed instances are used in a multithreaded | |
environment.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setNontransactionalRead(boolean)">setNontransactionalRead</A></B>(boolean read)</CODE> | |
<BR> | |
Whether to allow nontransactional access to persistent state.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setNontransactionalWrite(boolean)">setNontransactionalWrite</A></B>(boolean write)</CODE> | |
<BR> | |
Whether to allow nontransactional changes to persistent state.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setOptimistic(boolean)">setOptimistic</A></B>(boolean opt)</CODE> | |
<BR> | |
Whether to use optimistic transactional semantics.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setRestoreState(int)">setRestoreState</A></B>(int restore)</CODE> | |
<BR> | |
Whether to restore an object's original state on rollback.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setRetainState(boolean)">setRetainState</A></B>(boolean retain)</CODE> | |
<BR> | |
Whether objects retain their persistent state on transaction commit.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setRollbackOnly()">setRollbackOnly</A></B>()</CODE> | |
<BR> | |
Mark the current transaction for rollback.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setRollbackOnly(java.lang.Throwable)">setRollbackOnly</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> cause)</CODE> | |
<BR> | |
Mark the current transaction for rollback with the specified cause | |
of the rollback.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setSavepoint(java.lang.String)">setSavepoint</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE> | |
<BR> | |
Set a transactional savepoint where operations after this savepoint | |
will be rolled back.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setSyncWithManagedTransactions(boolean)">setSyncWithManagedTransactions</A></B>(boolean resync)</CODE> | |
<BR> | |
Whether to check for a global transaction upon every managed, | |
non-transactional operation.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#setTransactionListenerCallbackMode(int)">setTransactionListenerCallbackMode</A></B>(int mode)</CODE> | |
<BR> | |
The callback mode for handling exceptions from transaction event | |
listeners.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#syncWithManagedTransaction()">syncWithManagedTransaction</A></B>()</CODE> | |
<BR> | |
Attempt to synchronize with a current managed transaction, returning | |
true if successful, false if no managed transaction is active.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#validateChanges()">validateChanges</A></B>()</CODE> | |
<BR> | |
Validate the changes made in this transaction, reporting any optimistic | |
violations, constraint violations, etc.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_javax.transaction.Synchronization"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from interface javax.transaction.<A HREF="http://download.oracle.com/javase/6/docs/api/javax/transaction/Synchronization.html?is-external=true" title="class or interface in javax.transaction">Synchronization</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/javax/transaction/Synchronization.html?is-external=true#afterCompletion(int)" title="class or interface in javax.transaction">afterCompletion</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/transaction/Synchronization.html?is-external=true#beforeCompletion()" title="class or interface in javax.transaction">beforeCompletion</A></CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_org.apache.openjpa.kernel.StoreContext"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from interface org.apache.openjpa.kernel.<A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html" title="interface in org.apache.openjpa.kernel">StoreContext</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#beginStore()">beginStore</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#embed(java.lang.Object, java.lang.Object, org.apache.openjpa.kernel.OpenJPAStateManager, org.apache.openjpa.meta.ValueMetaData)">embed</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#extentIterator(java.lang.Class, boolean, org.apache.openjpa.kernel.FetchConfiguration, boolean)">extentIterator</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#find(java.lang.Object, boolean, org.apache.openjpa.kernel.FindCallbacks)">find</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#find(java.lang.Object, org.apache.openjpa.kernel.FetchConfiguration, java.util.BitSet, java.lang.Object, int)">find</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#findAll(java.util.Collection, boolean, org.apache.openjpa.kernel.FindCallbacks)">findAll</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#findAll(java.util.Collection, org.apache.openjpa.kernel.FetchConfiguration, java.util.BitSet, java.lang.Object, int)">findAll</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#findCached(java.lang.Object, org.apache.openjpa.kernel.FindCallbacks)">findCached</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getAllowReferenceToSiblingContext()">getAllowReferenceToSiblingContext</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getBroker()">getBroker</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getClassLoader()">getClassLoader</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getConfiguration()">getConfiguration</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getConnection()">getConnection</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getConnectionFactory()">getConnectionFactory</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getConnectionFactory2()">getConnectionFactory2</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getConnectionFactory2Name()">getConnectionFactory2Name</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getConnectionFactoryName()">getConnectionFactoryName</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getConnectionPassword()">getConnectionPassword</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getConnectionUserName()">getConnectionUserName</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getDeletedTypes()">getDeletedTypes</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getDetachState()">getDetachState</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getDirtyObjects()">getDirtyObjects</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getFetchConfiguration()">getFetchConfiguration</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getLockLevel(java.lang.Object)">getLockLevel</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getLockManager()">getLockManager</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getManagedObjects()">getManagedObjects</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getObjectId(java.lang.Object)">getObjectId</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getObjectIdType(java.lang.Class)">getObjectIdType</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getOrderDirtyObjects()">getOrderDirtyObjects</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getPendingTransactionalObjects()">getPendingTransactionalObjects</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getPersistedTypes()">getPersistedTypes</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getPopulateDataCache()">getPopulateDataCache</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getPostLoadOnMerge()">getPostLoadOnMerge</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getStateManager(java.lang.Object)">getStateManager</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getStoreManager()">getStoreManager</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getTransactionalObjects()">getTransactionalObjects</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getUpdatedTypes()">getUpdatedTypes</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#getVersion(java.lang.Object)">getVersion</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#hasConnection()">hasConnection</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#isActive()">isActive</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#isCached(java.util.List)">isCached</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#isDeleted(java.lang.Object)">isDeleted</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#isDirty(java.lang.Object)">isDirty</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#isManaged()">isManaged</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#isNew(java.lang.Object)">isNew</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#isPersistent(java.lang.Object)">isPersistent</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#isStoreActive()">isStoreActive</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#isTrackChangesByType()">isTrackChangesByType</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#isTransactional(java.lang.Object)">isTransactional</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#lock()">lock</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#newObjectId(java.lang.Class, java.lang.Object)">newObjectId</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#nontransactional(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)">nontransactional</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#nontransactionalAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)">nontransactionalAll</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#popFetchConfiguration()">popFetchConfiguration</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#pushFetchConfiguration()">pushFetchConfiguration</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#pushFetchConfiguration(org.apache.openjpa.kernel.FetchConfiguration)">pushFetchConfiguration</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#retrieve(java.lang.Object, boolean, org.apache.openjpa.kernel.OpCallbacks)">retrieve</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#retrieveAll(java.util.Collection, boolean, org.apache.openjpa.kernel.OpCallbacks)">retrieveAll</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#setAllowReferenceToSiblingContext(boolean)">setAllowReferenceToSiblingContext</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#setConnectionFactory2Name(java.lang.String)">setConnectionFactory2Name</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#setConnectionFactoryName(java.lang.String)">setConnectionFactoryName</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#setDetachState(int)">setDetachState</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#setOrderDirtyObjects(boolean)">setOrderDirtyObjects</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#setPopulateDataCache(boolean)">setPopulateDataCache</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#setPostLoadOnMerge(boolean)">setPostLoadOnMerge</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#setTrackChangesByType(boolean)">setTrackChangesByType</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#transactional(java.lang.Object, boolean, org.apache.openjpa.kernel.OpCallbacks)">transactional</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#transactionalAll(java.util.Collection, boolean, org.apache.openjpa.kernel.OpCallbacks)">transactionalAll</A>, <A HREF="../../../../org/apache/openjpa/kernel/StoreContext.html#unlock()">unlock</A></CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<P> | |
<!-- ============ METHOD DETAIL ========== --> | |
<A NAME="method_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Method Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="setImplicitBehavior(org.apache.openjpa.kernel.OpCallbacks, org.apache.openjpa.util.RuntimeExceptionTranslator)"><!-- --></A><H3> | |
setImplicitBehavior</H3> | |
<PRE> | |
void <B>setImplicitBehavior</B>(<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call, | |
<A HREF="../../../../org/apache/openjpa/util/RuntimeExceptionTranslator.html" title="interface in org.apache.openjpa.util">RuntimeExceptionTranslator</A> ex)</PRE> | |
<DL> | |
<DD>Set the broker's behavior for implicit actions such as flushing, | |
automatic detachment, and exceptions thrown by managed instances outside | |
a broker operation. A broker's implicit behavior can only be set once; | |
after the first invocation with non-null arguments, | |
subsequent invocations of this method are ignored. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getBrokerFactory()"><!-- --></A><H3> | |
getBrokerFactory</H3> | |
<PRE> | |
<A HREF="../../../../org/apache/openjpa/kernel/BrokerFactory.html" title="interface in org.apache.openjpa.kernel">BrokerFactory</A> <B>getBrokerFactory</B>()</PRE> | |
<DL> | |
<DD>Return the factory that produced this broker. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getConnectionRetainMode()"><!-- --></A><H3> | |
getConnectionRetainMode</H3> | |
<PRE> | |
int <B>getConnectionRetainMode</B>()</PRE> | |
<DL> | |
<DD>Return the connection retain mode for this broker. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getManagedRuntime()"><!-- --></A><H3> | |
getManagedRuntime</H3> | |
<PRE> | |
<A HREF="../../../../org/apache/openjpa/ee/ManagedRuntime.html" title="interface in org.apache.openjpa.ee">ManagedRuntime</A> <B>getManagedRuntime</B>()</PRE> | |
<DL> | |
<DD>Return the managed runtime in use. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getInverseManager()"><!-- --></A><H3> | |
getInverseManager</H3> | |
<PRE> | |
<A HREF="../../../../org/apache/openjpa/kernel/InverseManager.html" title="class in org.apache.openjpa.kernel">InverseManager</A> <B>getInverseManager</B>()</PRE> | |
<DL> | |
<DD>Return the inverse manager in use. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.3.2</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getMultithreaded()"><!-- --></A><H3> | |
getMultithreaded</H3> | |
<PRE> | |
boolean <B>getMultithreaded</B>()</PRE> | |
<DL> | |
<DD>Whether the broker or its managed instances are used in a multithreaded | |
environment. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setMultithreaded(boolean)"><!-- --></A><H3> | |
setMultithreaded</H3> | |
<PRE> | |
void <B>setMultithreaded</B>(boolean multi)</PRE> | |
<DL> | |
<DD>Whether the broker or its managed instances are used in a multithreaded | |
environment. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getIgnoreChanges()"><!-- --></A><H3> | |
getIgnoreChanges</H3> | |
<PRE> | |
boolean <B>getIgnoreChanges</B>()</PRE> | |
<DL> | |
<DD>Whether to take into account changes in the transaction when executing | |
a query or iterating an extent. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setIgnoreChanges(boolean)"><!-- --></A><H3> | |
setIgnoreChanges</H3> | |
<PRE> | |
void <B>setIgnoreChanges</B>(boolean ignore)</PRE> | |
<DL> | |
<DD>Whether to take into account changes in the transaction when executing | |
a query or iterating an extent. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getNontransactionalRead()"><!-- --></A><H3> | |
getNontransactionalRead</H3> | |
<PRE> | |
boolean <B>getNontransactionalRead</B>()</PRE> | |
<DL> | |
<DD>Whether to allow nontransactional access to persistent state. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setNontransactionalRead(boolean)"><!-- --></A><H3> | |
setNontransactionalRead</H3> | |
<PRE> | |
void <B>setNontransactionalRead</B>(boolean read)</PRE> | |
<DL> | |
<DD>Whether to allow nontransactional access to persistent state. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getNontransactionalWrite()"><!-- --></A><H3> | |
getNontransactionalWrite</H3> | |
<PRE> | |
boolean <B>getNontransactionalWrite</B>()</PRE> | |
<DL> | |
<DD>Whether to allow nontransactional changes to persistent state. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setNontransactionalWrite(boolean)"><!-- --></A><H3> | |
setNontransactionalWrite</H3> | |
<PRE> | |
void <B>setNontransactionalWrite</B>(boolean write)</PRE> | |
<DL> | |
<DD>Whether to allow nontransactional changes to persistent state. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getRestoreState()"><!-- --></A><H3> | |
getRestoreState</H3> | |
<PRE> | |
int <B>getRestoreState</B>()</PRE> | |
<DL> | |
<DD>Whether to restore an object's original state on rollback. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setRestoreState(int)"><!-- --></A><H3> | |
setRestoreState</H3> | |
<PRE> | |
void <B>setRestoreState</B>(int restore)</PRE> | |
<DL> | |
<DD>Whether to restore an object's original state on rollback. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getOptimistic()"><!-- --></A><H3> | |
getOptimistic</H3> | |
<PRE> | |
boolean <B>getOptimistic</B>()</PRE> | |
<DL> | |
<DD>Whether to use optimistic transactional semantics. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setOptimistic(boolean)"><!-- --></A><H3> | |
setOptimistic</H3> | |
<PRE> | |
void <B>setOptimistic</B>(boolean opt)</PRE> | |
<DL> | |
<DD>Whether to use optimistic transactional semantics. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getRetainState()"><!-- --></A><H3> | |
getRetainState</H3> | |
<PRE> | |
boolean <B>getRetainState</B>()</PRE> | |
<DL> | |
<DD>Whether objects retain their persistent state on transaction commit. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setRetainState(boolean)"><!-- --></A><H3> | |
setRetainState</H3> | |
<PRE> | |
void <B>setRetainState</B>(boolean retain)</PRE> | |
<DL> | |
<DD>Whether objects retain their persistent state on transaction commit. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getAutoClear()"><!-- --></A><H3> | |
getAutoClear</H3> | |
<PRE> | |
int <B>getAutoClear</B>()</PRE> | |
<DL> | |
<DD>Whether objects clear when entering transactions. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setAutoClear(int)"><!-- --></A><H3> | |
setAutoClear</H3> | |
<PRE> | |
void <B>setAutoClear</B>(int clear)</PRE> | |
<DL> | |
<DD>Whether objects clear when entering transactions. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getSyncWithManagedTransactions()"><!-- --></A><H3> | |
getSyncWithManagedTransactions</H3> | |
<PRE> | |
boolean <B>getSyncWithManagedTransactions</B>()</PRE> | |
<DL> | |
<DD>Whether to check for a global transaction upon every managed, | |
non-transactional operation. Defaults to false. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setSyncWithManagedTransactions(boolean)"><!-- --></A><H3> | |
setSyncWithManagedTransactions</H3> | |
<PRE> | |
void <B>setSyncWithManagedTransactions</B>(boolean resync)</PRE> | |
<DL> | |
<DD>Whether to check for a global transaction upon every managed, | |
non-transactional operation. Defaults to false. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getAutoDetach()"><!-- --></A><H3> | |
getAutoDetach</H3> | |
<PRE> | |
int <B>getAutoDetach</B>()</PRE> | |
<DL> | |
<DD>Bit flags marked in <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html" title="interface in org.apache.openjpa.kernel"><CODE>AutoDetach</CODE></A> which indicate when persistent | |
managed objects should be automatically detached in-place. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setAutoDetach(int)"><!-- --></A><H3> | |
setAutoDetach</H3> | |
<PRE> | |
void <B>setAutoDetach</B>(int flags)</PRE> | |
<DL> | |
<DD>Bit flags marked in <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html" title="interface in org.apache.openjpa.kernel"><CODE>AutoDetach</CODE></A> which indicate when persistent | |
managed objects should be automatically detached in-place. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setAutoDetach(int, boolean)"><!-- --></A><H3> | |
setAutoDetach</H3> | |
<PRE> | |
void <B>setAutoDetach</B>(int flag, | |
boolean on)</PRE> | |
<DL> | |
<DD>Bit flags marked in <A HREF="../../../../org/apache/openjpa/kernel/AutoDetach.html" title="interface in org.apache.openjpa.kernel"><CODE>AutoDetach</CODE></A> which indicate when persistent | |
managed objects should be automatically detached in-place. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getProperties()"><!-- --></A><H3> | |
getProperties</H3> | |
<PRE> | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>> <B>getProperties</B>()</PRE> | |
<DL> | |
<DD>Retrieve the current properties for this broker Some of these properties | |
may have been changed from the original configuration. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the changed properties<DT><B>Since:</B></DT> | |
<DD>2.0.0</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getSupportedProperties()"><!-- --></A><H3> | |
getSupportedProperties</H3> | |
<PRE> | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <B>getSupportedProperties</B>()</PRE> | |
<DL> | |
<DD>Return the supported properties for this broker as property keys. If a | |
property has multiple keys, all keys will be returned. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>2.0.0</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isDetachedNew()"><!-- --></A><H3> | |
isDetachedNew</H3> | |
<PRE> | |
boolean <B>isDetachedNew</B>()</PRE> | |
<DL> | |
<DD>Whether to treat relations to detached instances during persist | |
operations as new or as pseudo-hollow instances. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setDetachedNew(boolean)"><!-- --></A><H3> | |
setDetachedNew</H3> | |
<PRE> | |
void <B>setDetachedNew</B>(boolean isNew)</PRE> | |
<DL> | |
<DD>Whether to treat relations to detached instances as new. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getEvictFromDataCache()"><!-- --></A><H3> | |
getEvictFromDataCache</H3> | |
<PRE> | |
boolean <B>getEvictFromDataCache</B>()</PRE> | |
<DL> | |
<DD>Whether to also evict an object from the store cache when it is | |
evicted through this broker. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setEvictFromDataCache(boolean)"><!-- --></A><H3> | |
setEvictFromDataCache</H3> | |
<PRE> | |
void <B>setEvictFromDataCache</B>(boolean evict)</PRE> | |
<DL> | |
<DD>Whether to also evict an object from the store cache when it is | |
evicted through this broker. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="putUserObject(java.lang.Object, java.lang.Object)"><!-- --></A><H3> | |
putUserObject</H3> | |
<PRE> | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>putUserObject</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> key, | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> val)</PRE> | |
<DL> | |
<DD>Put the specified key-value pair into the map of user objects. Use | |
a value of null to remove the key. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.3.2</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getUserObject(java.lang.Object)"><!-- --></A><H3> | |
getUserObject</H3> | |
<PRE> | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>getUserObject</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> key)</PRE> | |
<DL> | |
<DD>Get the value for the specified key from the map of user objects. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.3.2</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="addTransactionListener(java.lang.Object)"><!-- --></A><H3> | |
addTransactionListener</H3> | |
<PRE> | |
void <B>addTransactionListener</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> listener)</PRE> | |
<DL> | |
<DD>Register a listener for transaction-related events. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.2.5</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="removeTransactionListener(java.lang.Object)"><!-- --></A><H3> | |
removeTransactionListener</H3> | |
<PRE> | |
void <B>removeTransactionListener</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> listener)</PRE> | |
<DL> | |
<DD>Remove a listener for transaction-related events. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.2.5</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getTransactionListeners()"><!-- --></A><H3> | |
getTransactionListeners</H3> | |
<PRE> | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>> <B>getTransactionListeners</B>()</PRE> | |
<DL> | |
<DD>Gets an umodifiable collection of currently registered lsteners. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>2.0.0</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getTransactionListenerCallbackMode()"><!-- --></A><H3> | |
getTransactionListenerCallbackMode</H3> | |
<PRE> | |
int <B>getTransactionListenerCallbackMode</B>()</PRE> | |
<DL> | |
<DD>The callback mode for handling exceptions from transaction event | |
listeners. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setTransactionListenerCallbackMode(int)"><!-- --></A><H3> | |
setTransactionListenerCallbackMode</H3> | |
<PRE> | |
void <B>setTransactionListenerCallbackMode</B>(int mode)</PRE> | |
<DL> | |
<DD>The callback mode for handling exceptions from transaction event | |
listeners. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="addLifecycleListener(java.lang.Object, java.lang.Class[])"><!-- --></A><H3> | |
addLifecycleListener</H3> | |
<PRE> | |
void <B>addLifecycleListener</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> listener, | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>[] classes)</PRE> | |
<DL> | |
<DD>Register a listener for lifecycle-related events on the specified | |
classes. If the classes are null, all events will be propagated to | |
the listener. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.3.3</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="removeLifecycleListener(java.lang.Object)"><!-- --></A><H3> | |
removeLifecycleListener</H3> | |
<PRE> | |
void <B>removeLifecycleListener</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> listener)</PRE> | |
<DL> | |
<DD>Remove a listener for lifecycle-related events. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.3.3</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getLifecycleEventManager()"><!-- --></A><H3> | |
getLifecycleEventManager</H3> | |
<PRE> | |
<A HREF="../../../../org/apache/openjpa/event/LifecycleEventManager.html" title="class in org.apache.openjpa.event">LifecycleEventManager</A> <B>getLifecycleEventManager</B>()</PRE> | |
<DL> | |
<DD>Return the lifecycle event manager associated with the broker. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getLifecycleListenerCallbackMode()"><!-- --></A><H3> | |
getLifecycleListenerCallbackMode</H3> | |
<PRE> | |
int <B>getLifecycleListenerCallbackMode</B>()</PRE> | |
<DL> | |
<DD>The callback mode for handling exceptions from lifecycle event listeners. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setLifecycleListenerCallbackMode(int)"><!-- --></A><H3> | |
setLifecycleListenerCallbackMode</H3> | |
<PRE> | |
void <B>setLifecycleListenerCallbackMode</B>(int mode)</PRE> | |
<DL> | |
<DD>The callback mode for handling exceptions from lifecycle event listeners. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getCachePreparedQuery()"><!-- --></A><H3> | |
getCachePreparedQuery</H3> | |
<PRE> | |
boolean <B>getCachePreparedQuery</B>()</PRE> | |
<DL> | |
<DD>Affirms if this receiver is caching prepared queries. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>2.0.0</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setCachePreparedQuery(boolean)"><!-- --></A><H3> | |
setCachePreparedQuery</H3> | |
<PRE> | |
void <B>setCachePreparedQuery</B>(boolean flag)</PRE> | |
<DL> | |
<DD>Sets whether this receiver will cache prepared queries during its | |
lifetime. The cache configured at BrokerFactory level is not affected by | |
setting it inactive for this receiver. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>2.0.0</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="begin()"><!-- --></A><H3> | |
begin</H3> | |
<PRE> | |
void <B>begin</B>()</PRE> | |
<DL> | |
<DD>Begin a transaction. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="commit()"><!-- --></A><H3> | |
commit</H3> | |
<PRE> | |
void <B>commit</B>()</PRE> | |
<DL> | |
<DD>Commit the current transaction. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="rollback()"><!-- --></A><H3> | |
rollback</H3> | |
<PRE> | |
void <B>rollback</B>()</PRE> | |
<DL> | |
<DD>Rollback the current transaction. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="syncWithManagedTransaction()"><!-- --></A><H3> | |
syncWithManagedTransaction</H3> | |
<PRE> | |
boolean <B>syncWithManagedTransaction</B>()</PRE> | |
<DL> | |
<DD>Attempt to synchronize with a current managed transaction, returning | |
true if successful, false if no managed transaction is active. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="commitAndResume()"><!-- --></A><H3> | |
commitAndResume</H3> | |
<PRE> | |
void <B>commitAndResume</B>()</PRE> | |
<DL> | |
<DD>Issue a commit and then start a new transaction. This is identical to: | |
<pre> broker.commit (); broker.begin (); | |
</pre> except that the broker's internal atomic lock is utilized, | |
so this method can be safely executed from multiple threads. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.2.4</DD> | |
<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#commit()"><CODE>commit()</CODE></A>, | |
<A HREF="../../../../org/apache/openjpa/kernel/Broker.html#begin()"><CODE>begin()</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="rollbackAndResume()"><!-- --></A><H3> | |
rollbackAndResume</H3> | |
<PRE> | |
void <B>rollbackAndResume</B>()</PRE> | |
<DL> | |
<DD>Issue a rollback and then start a new transaction. This is identical to: | |
<pre> broker.rollback (); broker.begin (); | |
</pre> except that the broker's internal atomic lock is utilized, | |
so this method can be safely executed from multiple threads. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.2.4</DD> | |
<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/openjpa/kernel/Broker.html#rollback()"><CODE>rollback()</CODE></A>, | |
<A HREF="../../../../org/apache/openjpa/kernel/Broker.html#begin()"><CODE>begin()</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getRollbackOnly()"><!-- --></A><H3> | |
getRollbackOnly</H3> | |
<PRE> | |
boolean <B>getRollbackOnly</B>()</PRE> | |
<DL> | |
<DD>Return whether the current transaction has been marked for rollback. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setRollbackOnly()"><!-- --></A><H3> | |
setRollbackOnly</H3> | |
<PRE> | |
void <B>setRollbackOnly</B>()</PRE> | |
<DL> | |
<DD>Mark the current transaction for rollback. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setRollbackOnly(java.lang.Throwable)"><!-- --></A><H3> | |
setRollbackOnly</H3> | |
<PRE> | |
void <B>setRollbackOnly</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> cause)</PRE> | |
<DL> | |
<DD>Mark the current transaction for rollback with the specified cause | |
of the rollback. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.9.7</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getRollbackCause()"><!-- --></A><H3> | |
getRollbackCause</H3> | |
<PRE> | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> <B>getRollbackCause</B>()</PRE> | |
<DL> | |
<DD>Returns the Throwable that caused the transaction to be | |
marked for rollback. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the Throwable, or null if none was given<DT><B>Since:</B></DT> | |
<DD>0.9.7</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setSavepoint(java.lang.String)"><!-- --></A><H3> | |
setSavepoint</H3> | |
<PRE> | |
void <B>setSavepoint</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE> | |
<DL> | |
<DD>Set a transactional savepoint where operations after this savepoint | |
will be rolled back. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="rollbackToSavepoint()"><!-- --></A><H3> | |
rollbackToSavepoint</H3> | |
<PRE> | |
void <B>rollbackToSavepoint</B>()</PRE> | |
<DL> | |
<DD>Rollback the current transaction to the last savepoint. | |
Savepoints set after this one will become invalid. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="rollbackToSavepoint(java.lang.String)"><!-- --></A><H3> | |
rollbackToSavepoint</H3> | |
<PRE> | |
void <B>rollbackToSavepoint</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE> | |
<DL> | |
<DD>Rollback the current transaction to the given savepoint name. | |
Savepoints set after this one will become invalid. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="releaseSavepoint()"><!-- --></A><H3> | |
releaseSavepoint</H3> | |
<PRE> | |
void <B>releaseSavepoint</B>()</PRE> | |
<DL> | |
<DD>Release the last set savepoint and any resources associated with it. | |
The given savepoint and any set after it will become invalid. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="releaseSavepoint(java.lang.String)"><!-- --></A><H3> | |
releaseSavepoint</H3> | |
<PRE> | |
void <B>releaseSavepoint</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE> | |
<DL> | |
<DD>Release the savepoint and any resources associated with it. | |
The given savepoint and any set after it will become invalid. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="flush()"><!-- --></A><H3> | |
flush</H3> | |
<PRE> | |
void <B>flush</B>()</PRE> | |
<DL> | |
<DD>Flush all transactional instances to the data store. This method may | |
set the rollback only flag on the current transaction if it encounters | |
an error. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.2.5</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="preFlush()"><!-- --></A><H3> | |
preFlush</H3> | |
<PRE> | |
void <B>preFlush</B>()</PRE> | |
<DL> | |
<DD>Run pre-flush actions on transactional objects, including | |
persistence-by-reachability, inverse relationship management, | |
deletion of dependent instances, and instance callbacks. | |
Transaction listeners are not invoked. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.3.3</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="validateChanges()"><!-- --></A><H3> | |
validateChanges</H3> | |
<PRE> | |
void <B>validateChanges</B>()</PRE> | |
<DL> | |
<DD>Validate the changes made in this transaction, reporting any optimistic | |
violations, constraint violations, etc. In a datastore transaction or | |
a flushed optimistic transaction, this method will act just like | |
<A HREF="../../../../org/apache/openjpa/kernel/Broker.html#flush()"><CODE>flush()</CODE></A>. In an optimistic transaction that has not yet begun a | |
datastore-level transaction, however, it will only report exceptions | |
that would occur on flush, without retaining any datastore resources. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="persist(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
persist</H3> | |
<PRE> | |
void <B>persist</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> obj, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Persist the given object. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="persistAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
persistAll</H3> | |
<PRE> | |
void <B>persistAll</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Persist the given objects. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="persist(java.lang.Object, java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
persist</H3> | |
<PRE> | |
<A HREF="../../../../org/apache/openjpa/kernel/OpenJPAStateManager.html" title="interface in org.apache.openjpa.kernel">OpenJPAStateManager</A> <B>persist</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> id, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Make the given instance persistent. Unlike other persist operations, | |
this method does <b>not</b> immediately cascade to fields marked | |
<A HREF="../../../../org/apache/openjpa/meta/ValueMetaData.html#CASCADE_IMMEDIATE"><CODE>ValueMetaData.CASCADE_IMMEDIATE</CODE></A>. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>pc</CODE> - the instance to persist<DD><CODE>id</CODE> - the id to give the state manager; may be null for default | |
<DT><B>Returns:</B><DD>the state manager for the newly persistent instance</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="delete(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
delete</H3> | |
<PRE> | |
void <B>delete</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Delete the given object. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="deleteAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
deleteAll</H3> | |
<PRE> | |
void <B>deleteAll</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Delete the given objects. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="release(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
release</H3> | |
<PRE> | |
void <B>release</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Release the given object from management. This operation is not | |
recursive. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="releaseAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
releaseAll</H3> | |
<PRE> | |
void <B>releaseAll</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Release the given objects from management. This operation is not | |
recursive. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="refresh(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
refresh</H3> | |
<PRE> | |
void <B>refresh</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Refresh the state of the given object. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="refreshAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
refreshAll</H3> | |
<PRE> | |
void <B>refreshAll</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Refresh the state of the given objects. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="evict(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
evict</H3> | |
<PRE> | |
void <B>evict</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Evict the given object. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="evictAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
evictAll</H3> | |
<PRE> | |
void <B>evictAll</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Evict the given objects. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="evictAll(org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
evictAll</H3> | |
<PRE> | |
void <B>evictAll</B>(<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Evict all clean objects. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="evictAll(org.apache.openjpa.kernel.Extent, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
evictAll</H3> | |
<PRE> | |
void <B>evictAll</B>(<A HREF="../../../../org/apache/openjpa/kernel/Extent.html" title="interface in org.apache.openjpa.kernel">Extent</A> extent, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Evict all persistent-clean and persistent-nontransactional | |
instances in the given <A HREF="../../../../org/apache/openjpa/kernel/Extent.html" title="interface in org.apache.openjpa.kernel"><CODE>Extent</CODE></A>. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="detachAll(org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
detachAll</H3> | |
<PRE> | |
void <B>detachAll</B>(<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Detach all objects in place. A flush will be performed before | |
detaching the entities. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="detachAll(org.apache.openjpa.kernel.OpCallbacks, boolean)"><!-- --></A><H3> | |
detachAll</H3> | |
<PRE> | |
void <B>detachAll</B>(<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call, | |
boolean flush)</PRE> | |
<DL> | |
<DD>Detach all objects in place, with the option of performing a | |
flush before doing the detachment. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>call</CODE> - Persistence operation callbacks<DD><CODE>flush</CODE> - boolean value to indicate whether to perform a | |
flush before detaching the entities (true, do the flush; | |
false, don't do the flush)</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="detach(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
detach</H3> | |
<PRE> | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>detach</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Detach the specified object from the broker. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>pc</CODE> - the instance to detach | |
<DT><B>Returns:</B><DD>the detached instance</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="detachAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
detachAll</H3> | |
<PRE> | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] <B>detachAll</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Detach the specified objects from the broker. The objects returned can | |
be manipulated and re-attached with <A HREF="../../../../org/apache/openjpa/kernel/Broker.html#attachAll(java.util.Collection, boolean, org.apache.openjpa.kernel.OpCallbacks)"><CODE>attachAll(java.util.Collection, boolean, org.apache.openjpa.kernel.OpCallbacks)</CODE></A>. The | |
detached instances will be unmanaged copies of the specified parameters, | |
and are suitable for serialization and manipulation outside | |
of a OpenJPA environment. When detaching instances, only fields | |
in the current <A HREF="../../../../org/apache/openjpa/kernel/FetchConfiguration.html" title="interface in org.apache.openjpa.kernel"><CODE>FetchConfiguration</CODE></A> will be traversed. Thus, | |
to detach a graph of objects, relations to other persistent | |
instances must either be in the <code>default-fetch-group</code>, | |
or in the current custom <A HREF="../../../../org/apache/openjpa/kernel/FetchConfiguration.html" title="interface in org.apache.openjpa.kernel"><CODE>FetchConfiguration</CODE></A>. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>objs</CODE> - the instances to detach | |
<DT><B>Returns:</B><DD>the detached instances</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="attach(java.lang.Object, boolean, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
attach</H3> | |
<PRE> | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>attach</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
boolean copyNew, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Import the specified detached object into the broker. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>pc</CODE> - instance to import<DD><CODE>copyNew</CODE> - whether to copy new instances | |
<DT><B>Returns:</B><DD>the re-attached instance</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="attachAll(java.util.Collection, boolean, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
attachAll</H3> | |
<PRE> | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[] <B>attachAll</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
boolean copyNew, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Import the specified objects into the broker. Instances that were | |
previously detached from this or another broker will have their | |
changed merged into the persistent instances. Instances that | |
are new will be persisted as new instances. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>objs</CODE> - array of instances to import<DD><CODE>copyNew</CODE> - whether to copy new instances | |
<DT><B>Returns:</B><DD>the re-attached instances</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="newInstance(java.lang.Class)"><!-- --></A><H3> | |
newInstance</H3> | |
<PRE> | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>newInstance</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A> cls)</PRE> | |
<DL> | |
<DD>Create a new instance of type <code>cls</code>. If <code>cls</code> is | |
an interface or an abstract class whose abstract methods follow the | |
JavaBeans convention, this method will create a concrete implementation | |
according to the metadata that defines the class. | |
Otherwise, if <code>cls</code> is a managed type, this will return an | |
instance of the specified class. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <code>cls</code> is not a managed | |
type or interface.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isDetached(java.lang.Object)"><!-- --></A><H3> | |
isDetached</H3> | |
<PRE> | |
boolean <B>isDetached</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> obj)</PRE> | |
<DL> | |
<DD>Returns <code>true</code> if <code>obj</code> is a detached object | |
(one that can be reattached to a <A HREF="../../../../org/apache/openjpa/kernel/Broker.html" title="interface in org.apache.openjpa.kernel"><CODE>Broker</CODE></A> via a call to | |
<A HREF="../../../../org/apache/openjpa/kernel/Broker.html#attach(java.lang.Object, boolean, org.apache.openjpa.kernel.OpCallbacks)"><CODE>attach(java.lang.Object, boolean, org.apache.openjpa.kernel.OpCallbacks)</CODE></A>); otherwise returns <code>false</code>. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="newExtent(java.lang.Class, boolean)"><!-- --></A><H3> | |
newExtent</H3> | |
<PRE> | |
<A HREF="../../../../org/apache/openjpa/kernel/Extent.html" title="interface in org.apache.openjpa.kernel">Extent</A> <B>newExtent</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A> cls, | |
boolean subs)</PRE> | |
<DL> | |
<DD>Return an extent of the given class, optionally including subclasses. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="newQuery(java.lang.String, java.lang.Class, java.lang.Object)"><!-- --></A><H3> | |
newQuery</H3> | |
<PRE> | |
<A HREF="../../../../org/apache/openjpa/kernel/Query.html" title="interface in org.apache.openjpa.kernel">Query</A> <B>newQuery</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> language, | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A> cls, | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> query)</PRE> | |
<DL> | |
<DD>Create a new query from the given data, with the given candidate class | |
and language. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="newQuery(java.lang.String, java.lang.Object)"><!-- --></A><H3> | |
newQuery</H3> | |
<PRE> | |
<A HREF="../../../../org/apache/openjpa/kernel/Query.html" title="interface in org.apache.openjpa.kernel">Query</A> <B>newQuery</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> language, | |
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> query)</PRE> | |
<DL> | |
<DD>Create a new query in the given language. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getIdentitySequence(org.apache.openjpa.meta.ClassMetaData)"><!-- --></A><H3> | |
getIdentitySequence</H3> | |
<PRE> | |
<A HREF="../../../../org/apache/openjpa/kernel/Seq.html" title="interface in org.apache.openjpa.kernel">Seq</A> <B>getIdentitySequence</B>(<A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A> meta)</PRE> | |
<DL> | |
<DD>Returns a <A HREF="../../../../org/apache/openjpa/kernel/Seq.html" title="interface in org.apache.openjpa.kernel"><CODE>Seq</CODE></A> for the datastore identity values of the | |
specified persistent class, or null if the class' identity cannot be | |
represented as a sequence. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getValueSequence(org.apache.openjpa.meta.FieldMetaData)"><!-- --></A><H3> | |
getValueSequence</H3> | |
<PRE> | |
<A HREF="../../../../org/apache/openjpa/kernel/Seq.html" title="interface in org.apache.openjpa.kernel">Seq</A> <B>getValueSequence</B>(<A HREF="../../../../org/apache/openjpa/meta/FieldMetaData.html" title="class in org.apache.openjpa.meta">FieldMetaData</A> fmd)</PRE> | |
<DL> | |
<DD>Returns a <A HREF="../../../../org/apache/openjpa/kernel/Seq.html" title="interface in org.apache.openjpa.kernel"><CODE>Seq</CODE></A> for the generated values of the specified | |
field, or null if the field is not generated. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="lock(java.lang.Object, int, int, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
lock</H3> | |
<PRE> | |
void <B>lock</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
int level, | |
int timeout, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Ensure that the given instance is locked at the given lock level. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>pc</CODE> - the object to lock<DD><CODE>level</CODE> - the lock level to use<DD><CODE>timeout</CODE> - the number of milliseconds to wait for the lock before | |
giving up, or -1 for no limit<DT><B>Since:</B></DT> | |
<DD>0.3.1</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="lock(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
lock</H3> | |
<PRE> | |
void <B>lock</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> pc, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Ensure that the given instance is locked at the current lock level, as | |
set in the <A HREF="../../../../org/apache/openjpa/kernel/FetchConfiguration.html" title="interface in org.apache.openjpa.kernel"><CODE>FetchConfiguration</CODE></A> for the broker. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.3.1</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="lockAll(java.util.Collection, int, int, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
lockAll</H3> | |
<PRE> | |
void <B>lockAll</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
int level, | |
int timeout, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Ensure that the given instances are locked at the given lock level. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>objs</CODE> - the objects to lock<DD><CODE>level</CODE> - the lock level to use<DD><CODE>timeout</CODE> - the number of milliseconds to wait for the lock before | |
giving up, or -1 for no limit<DT><B>Since:</B></DT> | |
<DD>0.3.1</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="lockAll(java.util.Collection, org.apache.openjpa.kernel.OpCallbacks)"><!-- --></A><H3> | |
lockAll</H3> | |
<PRE> | |
void <B>lockAll</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objs, | |
<A HREF="../../../../org/apache/openjpa/kernel/OpCallbacks.html" title="interface in org.apache.openjpa.kernel">OpCallbacks</A> call)</PRE> | |
<DL> | |
<DD>Ensure that the given instances are locked at the current lock level, as | |
set in the <A HREF="../../../../org/apache/openjpa/kernel/FetchConfiguration.html" title="interface in org.apache.openjpa.kernel"><CODE>FetchConfiguration</CODE></A> for the broker. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.3.1</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="cancelAll()"><!-- --></A><H3> | |
cancelAll</H3> | |
<PRE> | |
boolean <B>cancelAll</B>()</PRE> | |
<DL> | |
<DD>Cancel all pending data store statements. If statements are cancelled | |
while a flush is in progress, the transaction rollback only flag will | |
be set. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true if any statements were cancelled, false otherwise<DT><B>Since:</B></DT> | |
<DD>0.3.1</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="dirtyType(java.lang.Class)"><!-- --></A><H3> | |
dirtyType</H3> | |
<PRE> | |
void <B>dirtyType</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A> cls)</PRE> | |
<DL> | |
<DD>Mark the given class as dirty within the current transaction. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Since:</B></DT> | |
<DD>0.3.0</DD> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="beginOperation(boolean)"><!-- --></A><H3> | |
beginOperation</H3> | |
<PRE> | |
boolean <B>beginOperation</B>(boolean syncTrans)</PRE> | |
<DL> | |
<DD>Begin a logical operation. This indicates to the broker the | |
granularity of an operation which may require pre/post operation | |
side-effects, such as non-tx detach. | |
Will lock the broker until the <A HREF="../../../../org/apache/openjpa/kernel/Broker.html#endOperation()"><CODE>endOperation()</CODE></A> is called. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>syncTrans</CODE> - whether instances may be loaded/modified during | |
this operation requiring a re-check of global tx | |
<DT><B>Returns:</B><DD>whether this is the outermost operation on the stack</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="endOperation()"><!-- --></A><H3> | |
endOperation</H3> | |
<PRE> | |
boolean <B>endOperation</B>()</PRE> | |
<DL> | |
<DD>End a logical operation. This indicates to the broker the | |
granularity of an operation which may require pre/post operation | |
side-effects, such as non-tx detach. Unlocks the given broker. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>whether this is the outermost operation on the stack</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isClosed()"><!-- --></A><H3> | |
isClosed</H3> | |
<PRE> | |
boolean <B>isClosed</B>()</PRE> | |
<DL> | |
<DD>Whether the broker is closed. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isCloseInvoked()"><!-- --></A><H3> | |
isCloseInvoked</H3> | |
<PRE> | |
boolean <B>isCloseInvoked</B>()</PRE> | |
<DL> | |
<DD>Whether <A HREF="../../../../org/apache/openjpa/kernel/Broker.html#close()"><CODE>close()</CODE></A> has been invoked, though the broker might | |
remain open until the current managed transaction completes. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="close()"><!-- --></A><H3> | |
close</H3> | |
<PRE> | |
void <B>close</B>()</PRE> | |
<DL> | |
<DD>Close the broker. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/openjpa/lib/util/Closeable.html#close()">close</A></CODE> in interface <CODE><A HREF="../../../../org/apache/openjpa/lib/util/Closeable.html" title="interface in org.apache.openjpa.lib.util">Closeable</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="assertOpen()"><!-- --></A><H3> | |
assertOpen</H3> | |
<PRE> | |
void <B>assertOpen</B>()</PRE> | |
<DL> | |
<DD>Throw an exception if this broker has been closed. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="assertActiveTransaction()"><!-- --></A><H3> | |
assertActiveTransaction</H3> | |
<PRE> | |
void <B>assertActiveTransaction</B>()</PRE> | |
<DL> | |
<DD>Throw an exception if there is no active transaction. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="assertNontransactionalRead()"><!-- --></A><H3> | |
assertNontransactionalRead</H3> | |
<PRE> | |
void <B>assertNontransactionalRead</B>()</PRE> | |
<DL> | |
<DD>Throw an exception if there is no transaction active and | |
nontransactional reading is not enabled. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="assertWriteOperation()"><!-- --></A><H3> | |
assertWriteOperation</H3> | |
<PRE> | |
void <B>assertWriteOperation</B>()</PRE> | |
<DL> | |
<DD>Throw an exception if a write operation is not permitted (there is | |
no active transaction and nontransactional writing is not enabled). | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<!-- ========= END OF CLASS DATA ========= --> | |
<HR> | |
<!-- ======= START OF BOTTOM NAVBAR ====== --> | |
<A NAME="navbar_bottom"><!-- --></A> | |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_bottom_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Broker.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../org/apache/openjpa/kernel/Bootstrap.html" title="class in org.apache.openjpa.kernel"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/openjpa/kernel/BrokerFactory.html" title="interface in org.apache.openjpa.kernel"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../index.html?org/apache/openjpa/kernel/Broker.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="Broker.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_bottom"></A> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
<HR> | |
Copyright © 2006–2013 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved. | |
</BODY> | |
</HTML> |