📄 transactionfactory.html
字号:
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/hibernate/transaction/TransactionFactory.html#isTransactionManagerRequired()">isTransactionManagerRequired</A></B>()</CODE>
<BR>
Do we require access to the JTA TransactionManager for this strategy?</TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="createTransaction(org.hibernate.jdbc.JDBCContext, org.hibernate.transaction.TransactionFactory.Context)"><!-- --></A><H3>
createTransaction</H3>
<PRE>
public <A HREF="../../../org/hibernate/Transaction.html" title="interface in org.hibernate">Transaction</A> <B>createTransaction</B>(<A HREF="../../../org/hibernate/jdbc/JDBCContext.html" title="class in org.hibernate.jdbc">JDBCContext</A> jdbcContext, <A HREF="../../../org/hibernate/transaction/TransactionFactory.Context.html" title="interface in org.hibernate.transaction">TransactionFactory.Context</A> context) throws <A HREF="../../../org/hibernate/HibernateException.html" title="class in org.hibernate">HibernateException</A></PRE>
<DL>
<DD>Begin a transaction and return the associated <tt>Transaction</tt> instance.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>jdbcContext</CODE> - The jdbc context to which the transaction belongs<DD><CODE>context</CODE> - The contract regarding the context in which this transaction will operate.<DT><B>Returns:</B><DD>Transaction<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/hibernate/HibernateException.html" title="class in org.hibernate">HibernateException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="configure(java.util.Properties)"><!-- --></A><H3>
configure</H3>
<PRE>
public void <B>configure</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A> props) throws <A HREF="../../../org/hibernate/HibernateException.html" title="class in org.hibernate">HibernateException</A></PRE>
<DL>
<DD>Configure from the given properties.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>props</CODE> - <DT><B>Throws:</B><DD><CODE><A HREF="../../../org/hibernate/HibernateException.html" title="class in org.hibernate">HibernateException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getDefaultReleaseMode()"><!-- --></A><H3>
getDefaultReleaseMode</H3>
<PRE>
public <A HREF="../../../org/hibernate/ConnectionReleaseMode.html" title="class in org.hibernate">ConnectionReleaseMode</A> <B>getDefaultReleaseMode</B>()</PRE>
<DL>
<DD>Get the default connection release mode
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isTransactionManagerRequired()"><!-- --></A><H3>
isTransactionManagerRequired</H3>
<PRE>
public boolean <B>isTransactionManagerRequired</B>()</PRE>
<DL>
<DD>Do we require access to the JTA TransactionManager for this strategy?
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="areCallbacksLocalToHibernateTransactions()"><!-- --></A><H3>
areCallbacksLocalToHibernateTransactions</H3>
<PRE>
public boolean <B>areCallbacksLocalToHibernateTransactions</B>()</PRE>
<DL>
<DD>Are all transaction callbacks local to Hibernate Transactions? Or can the callbacks originate from some other source (e.g. a JTA Synchronization).
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if callbacks only ever originate from the Hibernate <A HREF="../../../org/hibernate/Transaction.html" title="interface in org.hibernate"><CODE>Transaction</CODE></A>; false otherwise.</DL>
</DD>
</DL>
<HR>
<A NAME="isTransactionInProgress(org.hibernate.jdbc.JDBCContext, org.hibernate.transaction.TransactionFactory.Context, org.hibernate.Transaction)"><!-- --></A><H3>
isTransactionInProgress</H3>
<PRE>
public boolean <B>isTransactionInProgress</B>(<A HREF="../../../org/hibernate/jdbc/JDBCContext.html" title="class in org.hibernate.jdbc">JDBCContext</A> jdbcContext, <A HREF="../../../org/hibernate/transaction/TransactionFactory.Context.html" title="interface in org.hibernate.transaction">TransactionFactory.Context</A> transactionContext, <A HREF="../../../org/hibernate/Transaction.html" title="interface in org.hibernate">Transaction</A> transaction)</PRE>
<DL>
<DD>Determine whether an underlying transaction is in progress. <p/> Mainly this is used in determining whether to register a synchronization as well as whether or not to circumvent auto flushing outside transactions.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>jdbcContext</CODE> - <DD><CODE>transactionContext</CODE> - <DD><CODE>transaction</CODE> - <DT><B>Returns:</B><DD>true if an underlying transaction is know to be in effect.</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=3 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/TransactionFactory.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">
PREV CLASS
<A HREF="../../../org/hibernate/transaction/TransactionFactory.Context.html" title="interface in org.hibernate.transaction"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="TransactionFactory.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: <A HREF="#nested_class_summary">NESTED</A> | 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>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -