blob: fde3bc9b0936129de24e4eb69faddf9fcbe85f38 [file] [log] [blame]
<!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.5.0_15) on Wed Aug 06 14:58:27 GMT-06:00 2008 -->
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>
OpenJPAPersistence (OpenJPA 1.2.0 API)
</TITLE>
<META NAME="keywords" CONTENT="org.apache.openjpa.persistence.OpenJPAPersistence class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="OpenJPAPersistence (OpenJPA 1.2.0 API)";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= 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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/OpenJPAPersistence.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityTransaction.html" title="interface in org.apache.openjpa.persistence"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAQuery.html" title="interface in org.apache.openjpa.persistence"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/openjpa/persistence/OpenJPAPersistence.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="OpenJPAPersistence.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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.persistence</FONT>
<BR>
Class OpenJPAPersistence</H2>
<PRE>
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.openjpa.persistence.OpenJPAPersistence</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>OpenJPAPersistence</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
</PRE>
<P>
Static helper methods for JPA users.
<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>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#EM_KEY">EM_KEY</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#EMF_KEY">EMF_KEY</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_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>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#OpenJPAPersistence()">OpenJPAPersistence</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== 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>static&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManager.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManager</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#cast(javax.persistence.EntityManager)">cast</A></B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html" title="class or interface in javax.persistence">EntityManager</A>&nbsp;em)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the OpenJPA facade to the given entity manager.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#cast(javax.persistence.EntityManagerFactory)">cast</A></B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManagerFactory.html" title="class or interface in javax.persistence">EntityManagerFactory</A>&nbsp;emf)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the OpenJPA facade to the given entity manager factory.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAQuery.html" title="interface in org.apache.openjpa.persistence">OpenJPAQuery</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#cast(javax.persistence.Query)">cast</A></B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/Query.html" title="class or interface in javax.persistence">Query</A>&nbsp;q)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the OpenJPA facade to the given query.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#close(java.lang.Object)">close</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close the given resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#createEntityManagerFactory(java.lang.String, javax.naming.Context)">createEntityManagerFactory</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;jndiLocation,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/naming/Context.html" title="class or interface in javax.naming">Context</A>&nbsp;context)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManagerFactory.html" title="class or interface in javax.persistence"><CODE>EntityManagerFactory</CODE></A> at the JNDI location specified
by <code>jndiLocation</code> in the context <code>context</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#createEntityManagerFactory(java.lang.String, java.lang.String)">createEntityManagerFactory</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;resource)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence"><CODE>OpenJPAEntityManagerFactory</CODE></A> specified by
<code>name</code> in an XML configuration file at the resource location
<code>resource</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#createEntityManagerFactory(java.lang.String, java.lang.String, java.util.Map)">createEntityManagerFactory</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;resource,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;map)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence"><CODE>OpenJPAEntityManagerFactory</CODE></A> specified by
<code>name</code> in an XML configuration file at the resource location
<code>resource</code>, applying the properties specified in
<code>map</code> as overrides.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#fromOpenJPAObjectId(java.lang.Object)">fromOpenJPAObjectId</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;oid)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#fromOpenJPAObjectIdClass(java.lang.Class)">fromOpenJPAObjectIdClass</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;oidClass)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManager.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManager</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#getEntityManager(java.lang.Object)">getEntityManager</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the entity manager for the given object, if one can be determined
from just the object alone.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#getEntityManagerFactory()">getEntityManagerFactory</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence"><CODE>OpenJPAEntityManagerFactory</CODE></A> specified by
your OpenJPA defaults.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#getEntityManagerFactory(java.util.Map)">getEntityManagerFactory</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;map)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence"><CODE>OpenJPAEntityManagerFactory</CODE></A> specified by
your OpenJPA defaults, using <code>map</code> as overrides.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#getMetaData(javax.persistence.EntityManager, java.lang.Class)">getMetaData</A></B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html" title="class or interface in javax.persistence">EntityManager</A>&nbsp;em,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;cls)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#getMetaData(javax.persistence.EntityManagerFactory, java.lang.Class)">getMetaData</A></B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManagerFactory.html" title="class or interface in javax.persistence">EntityManagerFactory</A>&nbsp;factory,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;cls)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#getMetaData(java.lang.Object)">getMetaData</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#isManagedType(javax.persistence.EntityManager, java.lang.Class)">isManagedType</A></B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html" title="class or interface in javax.persistence">EntityManager</A>&nbsp;em,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;cls)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the specified class is an entity or embeddable type.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/kernel/Broker.html" title="interface in org.apache.openjpa.kernel">Broker</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#toBroker(javax.persistence.EntityManager)">toBroker</A></B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html" title="class or interface in javax.persistence">EntityManager</A>&nbsp;em)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<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/persistence/OpenJPAPersistence.html#toBrokerFactory(javax.persistence.EntityManagerFactory)">toBrokerFactory</A></B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManagerFactory.html" title="class or interface in javax.persistence">EntityManagerFactory</A>&nbsp;factory)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManager.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManager</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#toEntityManager(org.apache.openjpa.kernel.Broker)">toEntityManager</A></B>(<A HREF="../../../../org/apache/openjpa/kernel/Broker.html" title="interface in org.apache.openjpa.kernel">Broker</A>&nbsp;broker)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#toEntityManagerFactory(org.apache.openjpa.kernel.BrokerFactory)">toEntityManagerFactory</A></B>(<A HREF="../../../../org/apache/openjpa/kernel/BrokerFactory.html" title="interface in org.apache.openjpa.kernel">BrokerFactory</A>&nbsp;factory)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#toOpenJPAObjectId(org.apache.openjpa.meta.ClassMetaData, java.lang.Object)">toOpenJPAObjectId</A></B>(<A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A>&nbsp;meta,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;oid)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#toOpenJPAObjectIds(org.apache.openjpa.meta.ClassMetaData, java.util.Collection)">toOpenJPAObjectIds</A></B>(<A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A>&nbsp;meta,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;oids)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/openjpa/persistence/OpenJPAPersistence.html#toOpenJPAObjectIds(org.apache.openjpa.meta.ClassMetaData, java.lang.Object...)">toOpenJPAObjectIds</A></B>(<A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A>&nbsp;meta,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>...&nbsp;oids)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_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>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="EM_KEY"><!-- --></A><H3>
EM_KEY</H3>
<PRE>
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>EM_KEY</B></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I><DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.openjpa.persistence.OpenJPAPersistence.EM_KEY">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="EMF_KEY"><!-- --></A><H3>
EMF_KEY</H3>
<PRE>
public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>EMF_KEY</B></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I><DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.openjpa.persistence.OpenJPAPersistence.EMF_KEY">Constant Field Values</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_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>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="OpenJPAPersistence()"><!-- --></A><H3>
OpenJPAPersistence</H3>
<PRE>
public <B>OpenJPAPersistence</B>()</PRE>
<DL>
</DL>
<!-- ============ 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="cast(javax.persistence.EntityManagerFactory)"><!-- --></A><H3>
cast</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A> <B>cast</B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManagerFactory.html" title="class or interface in javax.persistence">EntityManagerFactory</A>&nbsp;emf)</PRE>
<DL>
<DD>Return the OpenJPA facade to the given entity manager factory.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="cast(javax.persistence.EntityManager)"><!-- --></A><H3>
cast</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManager.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManager</A> <B>cast</B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html" title="class or interface in javax.persistence">EntityManager</A>&nbsp;em)</PRE>
<DL>
<DD>Return the OpenJPA facade to the given entity manager.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="cast(javax.persistence.Query)"><!-- --></A><H3>
cast</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAQuery.html" title="interface in org.apache.openjpa.persistence">OpenJPAQuery</A> <B>cast</B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/Query.html" title="class or interface in javax.persistence">Query</A>&nbsp;q)</PRE>
<DL>
<DD>Return the OpenJPA facade to the given query.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getEntityManagerFactory()"><!-- --></A><H3>
getEntityManagerFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A> <B>getEntityManagerFactory</B>()</PRE>
<DL>
<DD>Returns the <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence"><CODE>OpenJPAEntityManagerFactory</CODE></A> specified by
your OpenJPA defaults. This method will return the same logical factory
for each invocation.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getEntityManagerFactory(java.util.Map)"><!-- --></A><H3>
getEntityManagerFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A> <B>getEntityManagerFactory</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;map)</PRE>
<DL>
<DD>Returns the <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence"><CODE>OpenJPAEntityManagerFactory</CODE></A> specified by
your OpenJPA defaults, using <code>map</code> as overrides. This method
will return the same logical factory for invocations with the same
overrides.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="createEntityManagerFactory(java.lang.String, java.lang.String)"><!-- --></A><H3>
createEntityManagerFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A> <B>createEntityManagerFactory</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;resource)</PRE>
<DL>
<DD>Returns a new <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence"><CODE>OpenJPAEntityManagerFactory</CODE></A> specified by
<code>name</code> in an XML configuration file at the resource location
<code>resource</code>. If <code>name</code> is <code>null</code>, uses
the first resource found in the specified location, regardless of the
name specified in the XML resource or the name of the jar that the
resource is contained in. If <code>resource</code> is <code>null</code>,
uses the spec-defined <code>META-INF/persistence.xml</code> resource.
This method only resolves <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence"><CODE>OpenJPAEntityManagerFactory</CODE></A> instances.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="createEntityManagerFactory(java.lang.String, java.lang.String, java.util.Map)"><!-- --></A><H3>
createEntityManagerFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A> <B>createEntityManagerFactory</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;resource,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;map)</PRE>
<DL>
<DD>Returns a new <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence"><CODE>OpenJPAEntityManagerFactory</CODE></A> specified by
<code>name</code> in an XML configuration file at the resource location
<code>resource</code>, applying the properties specified in
<code>map</code> as overrides. If <code>name</code> is
<code>null</code>, uses the first resource found in the specified
location, regardless of the name specified in the XML resource or the
name of the jar that the resource is contained in.
If <code>resource</code> is <code>null</code>, uses the spec-defined
<code>META-INF/persistence.xml</code> resource.
This method only resolves <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence"><CODE>OpenJPAEntityManagerFactory</CODE></A> instances.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="createEntityManagerFactory(java.lang.String, javax.naming.Context)"><!-- --></A><H3>
createEntityManagerFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A> <B>createEntityManagerFactory</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;jndiLocation,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/naming/Context.html" title="class or interface in javax.naming">Context</A>&nbsp;context)</PRE>
<DL>
<DD>Returns the <A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManagerFactory.html" title="class or interface in javax.persistence"><CODE>EntityManagerFactory</CODE></A> at the JNDI location specified
by <code>jndiLocation</code> in the context <code>context</code>. If
<code>context</code> is <code>null</code>,
<code>new InitialContext()</code> will be used.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getEntityManager(java.lang.Object)"><!-- --></A><H3>
getEntityManager</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManager.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManager</A> <B>getEntityManager</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o)</PRE>
<DL>
<DD>Return the entity manager for the given object, if one can be determined
from just the object alone. This method will succeed for instances that
are enhanced, that were loaded from the database (rather than
being constructed with <code>new</code>), or that were created through
<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManager.html#createInstance(java.lang.Class)"><CODE>OpenJPAEntityManager.createInstance(java.lang.Class<T>)</CODE></A>.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="close(java.lang.Object)"><!-- --></A><H3>
close</H3>
<PRE>
public static void <B>close</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o)</PRE>
<DL>
<DD>Close the given resource. The resource can be an extent iterator,
query result, large result set relation, or any closeable OpenJPA
component.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isManagedType(javax.persistence.EntityManager, java.lang.Class)"><!-- --></A><H3>
isManagedType</H3>
<PRE>
public static boolean <B>isManagedType</B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html" title="class or interface in javax.persistence">EntityManager</A>&nbsp;em,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;cls)</PRE>
<DL>
<DD>Returns true if the specified class is an entity or embeddable type.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toEntityManagerFactory(org.apache.openjpa.kernel.BrokerFactory)"><!-- --></A><H3>
toEntityManagerFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManagerFactory.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManagerFactory</A> <B>toEntityManagerFactory</B>(<A HREF="../../../../org/apache/openjpa/kernel/BrokerFactory.html" title="interface in org.apache.openjpa.kernel">BrokerFactory</A>&nbsp;factory)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toBrokerFactory(javax.persistence.EntityManagerFactory)"><!-- --></A><H3>
toBrokerFactory</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/kernel/BrokerFactory.html" title="interface in org.apache.openjpa.kernel">BrokerFactory</A> <B>toBrokerFactory</B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManagerFactory.html" title="class or interface in javax.persistence">EntityManagerFactory</A>&nbsp;factory)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toEntityManager(org.apache.openjpa.kernel.Broker)"><!-- --></A><H3>
toEntityManager</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityManager.html" title="interface in org.apache.openjpa.persistence">OpenJPAEntityManager</A> <B>toEntityManager</B>(<A HREF="../../../../org/apache/openjpa/kernel/Broker.html" title="interface in org.apache.openjpa.kernel">Broker</A>&nbsp;broker)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toBroker(javax.persistence.EntityManager)"><!-- --></A><H3>
toBroker</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/kernel/Broker.html" title="interface in org.apache.openjpa.kernel">Broker</A> <B>toBroker</B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html" title="class or interface in javax.persistence">EntityManager</A>&nbsp;em)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMetaData(java.lang.Object)"><!-- --></A><H3>
getMetaData</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A> <B>getMetaData</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMetaData(javax.persistence.EntityManager, java.lang.Class)"><!-- --></A><H3>
getMetaData</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A> <B>getMetaData</B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html" title="class or interface in javax.persistence">EntityManager</A>&nbsp;em,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;cls)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMetaData(javax.persistence.EntityManagerFactory, java.lang.Class)"><!-- --></A><H3>
getMetaData</H3>
<PRE>
public static <A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A> <B>getMetaData</B>(<A HREF="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManagerFactory.html" title="class or interface in javax.persistence">EntityManagerFactory</A>&nbsp;factory,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;cls)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="fromOpenJPAObjectId(java.lang.Object)"><!-- --></A><H3>
fromOpenJPAObjectId</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>fromOpenJPAObjectId</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;oid)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toOpenJPAObjectId(org.apache.openjpa.meta.ClassMetaData, java.lang.Object)"><!-- --></A><H3>
toOpenJPAObjectId</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>toOpenJPAObjectId</B>(<A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A>&nbsp;meta,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;oid)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toOpenJPAObjectIds(org.apache.openjpa.meta.ClassMetaData, java.lang.Object...)"><!-- --></A><H3>
toOpenJPAObjectIds</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] <B>toOpenJPAObjectIds</B>(<A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A>&nbsp;meta,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>...&nbsp;oids)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toOpenJPAObjectIds(org.apache.openjpa.meta.ClassMetaData, java.util.Collection)"><!-- --></A><H3>
toOpenJPAObjectIds</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A> <B>toOpenJPAObjectIds</B>(<A HREF="../../../../org/apache/openjpa/meta/ClassMetaData.html" title="class in org.apache.openjpa.meta">ClassMetaData</A>&nbsp;meta,
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;oids)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="fromOpenJPAObjectIdClass(java.lang.Class)"><!-- --></A><H3>
fromOpenJPAObjectIdClass</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> <B>fromOpenJPAObjectIdClass</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;oidClass)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/apache/openjpa/persistence/JPAFacadeHelper.html" title="class in org.apache.openjpa.persistence"><CODE>JPAFacadeHelper</CODE></A> instead. This method pierces
the published-API boundary, as does the JPAFacadeHelper utilization.</I>
<P>
<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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/OpenJPAPersistence.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAEntityTransaction.html" title="interface in org.apache.openjpa.persistence"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/openjpa/persistence/OpenJPAQuery.html" title="interface in org.apache.openjpa.persistence"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/openjpa/persistence/OpenJPAPersistence.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="OpenJPAPersistence.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright &#169; 2006-2008 <a href="http://www.apache.org">Apache Software Foundation</a>. All Rights Reserved.
</BODY>
</HTML>