| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>JDOHelper (JDO API 3.2.1)</title> |
| <link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="JDOHelper (JDO API 3.2.1)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/JDOHelper.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../index-all.html">Index</a></li> |
| <li><a href="../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../javax/jdo/JDOFatalUserException.html" title="class in javax.jdo"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../javax/jdo/JDONullIdentityException.html" title="class in javax.jdo"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../index.html?javax/jdo/JDOHelper.html" target="_top">Frames</a></li> |
| <li><a href="JDOHelper.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">javax.jdo</div> |
| <h2 title="Class JDOHelper" class="title">Class JDOHelper</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>javax.jdo.JDOHelper</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="../../javax/jdo/Constants.html" title="interface in javax.jdo">Constants</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">JDOHelper</span> |
| extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> |
| implements <a href="../../javax/jdo/Constants.html" title="interface in javax.jdo">Constants</a></pre> |
| <div class="block">This class can be used by a JDO-aware application to call the JDO behavior |
| of <code>PersistenceCapable</code> instances without declaring them to be |
| <code>PersistenceCapable</code>. |
| <P>It is also used to acquire a <code>PersistenceManagerFactory</code> via |
| various methods. |
| <P>This helper class defines static methods that allow a JDO-aware |
| application to examine the runtime state of instances. For example, |
| an application can discover whether the instance is persistent, |
| transactional, dirty, new, deleted, or detached; and to get its associated |
| <code>PersistenceManager</code> if it has one.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Version:</span></dt> |
| <dd>2.1</dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.javax.jdo.Constants"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from interface javax.jdo.<a href="../../javax/jdo/Constants.html" title="interface in javax.jdo">Constants</a></h3> |
| <code><a href="../../javax/jdo/Constants.html#ANONYMOUS_PERSISTENCE_MANAGER_FACTORY_NAME">ANONYMOUS_PERSISTENCE_MANAGER_FACTORY_NAME</a>, <a href="../../javax/jdo/Constants.html#ELEMENT_INSTANCE_LIFECYCLE_LISTENER">ELEMENT_INSTANCE_LIFECYCLE_LISTENER</a>, <a href="../../javax/jdo/Constants.html#ELEMENT_PERSISTENCE_MANAGER_FACTORY">ELEMENT_PERSISTENCE_MANAGER_FACTORY</a>, <a href="../../javax/jdo/Constants.html#ELEMENT_PROPERTY">ELEMENT_PROPERTY</a>, <a href="../../javax/jdo/Constants.html#ENHANCER_EXCEPTION">ENHANCER_EXCEPTION</a>, <a href="../../javax/jdo/Constants.html#ENHANCER_NO_JDO_ENHANCER_FOUND">ENHANCER_NO_JDO_ENHANCER_FOUND</a>, <a href="../../javax/jdo/Constants.html#ENHANCER_USAGE_ERROR">ENHANCER_USAGE_ERROR</a>, <a href="../../javax/jdo/Constants.html#INSTANCE_LIFECYCLE_LISTENER_ATTRIBUTE_CLASSES">INSTANCE_LIFECYCLE_LISTENER_ATTRIBUTE_CLASSES</a>, <a href="../../javax/jdo/Constants.html#INSTANCE_LIFECYCLE_LISTENER_ATTRIBUTE_LISTENER">INSTANCE_LIFECYCLE_LISTENER_ATTRIBUTE_LISTENER</a>, <a href="../../javax/jdo/Constants.html#JAVAX_JDO">JAVAX_JDO</a>, <a href="../../javax/jdo/Constants.html#JAVAX_JDO_PREFIX">JAVAX_JDO_PREFIX</a>, <a href="../../javax/jdo/Constants.html#JDO_DTD_RESOURCE">JDO_DTD_RESOURCE</a>, <a href="../../javax/jdo/Constants.html#JDO_XSD_NS">JDO_XSD_NS</a>, <a href="../../javax/jdo/Constants.html#JDO_XSD_RESOURCE">JDO_XSD_RESOURCE</a>, <a href="../../javax/jdo/Constants.html#JDOCONFIG_DTD_RESOURCE">JDOCONFIG_DTD_RESOURCE</a>, <a href="../../javax/jdo/Constants.html#JDOCONFIG_RESOURCE_NAME">JDOCONFIG_RESOURCE_NAME</a>, <a href="../../javax/jdo/Constants.html#JDOCONFIG_XSD_NS">JDOCONFIG_XSD_NS</a>, <a href="../../javax/jdo/Constants.html#JDOCONFIG_XSD_RESOURCE">JDOCONFIG_XSD_RESOURCE</a>, <a href="../../javax/jdo/Constants.html#JDOQUERY_DTD_RESOURCE">JDOQUERY_DTD_RESOURCE</a>, <a href="../../javax/jdo/Constants.html#JDOQUERY_XSD_NS">JDOQUERY_XSD_NS</a>, <a href="../../javax/jdo/Constants.html#JDOQUERY_XSD_RESOURCE">JDOQUERY_XSD_RESOURCE</a>, <a href="../../javax/jdo/Constants.html#JTA">JTA</a>, <a href="../../javax/jdo/Constants.html#NONCONFIGURABLE_PROPERTY_VENDOR_NAME">NONCONFIGURABLE_PROPERTY_VENDOR_NAME</a>, <a href="../../javax/jdo/Constants.html#NONCONFIGURABLE_PROPERTY_VERSION_NUMBER">NONCONFIGURABLE_PROPERTY_VERSION_NUMBER</a>, <a href="../../javax/jdo/Constants.html#OPTION_APPLICATION_IDENTITY">OPTION_APPLICATION_IDENTITY</a>, <a href="../../javax/jdo/Constants.html#OPTION_ARRAY">OPTION_ARRAY</a>, <a href="../../javax/jdo/Constants.html#OPTION_ARRAYLIST">OPTION_ARRAYLIST</a>, <a href="../../javax/jdo/Constants.html#OPTION_BINARY_COMPATIBILITY">OPTION_BINARY_COMPATIBILITY</a>, <a href="../../javax/jdo/Constants.html#OPTION_CHANGE_APPLICATION_IDENTITY">OPTION_CHANGE_APPLICATION_IDENTITY</a>, <a href="../../javax/jdo/Constants.html#OPTION_DATASTORE_IDENTITY">OPTION_DATASTORE_IDENTITY</a>, <a href="../../javax/jdo/Constants.html#OPTION_DATASTORE_TIMEOUT">OPTION_DATASTORE_TIMEOUT</a>, <a href="../../javax/jdo/Constants.html#OPTION_GET_DATASTORE_CONNECTION">OPTION_GET_DATASTORE_CONNECTION</a>, <a href="../../javax/jdo/Constants.html#OPTION_GET_JDBC_CONNECTION">OPTION_GET_JDBC_CONNECTION</a>, <a href="../../javax/jdo/Constants.html#OPTION_LINKEDLIST">OPTION_LINKEDLIST</a>, <a href="../../javax/jdo/Constants.html#OPTION_MAPPING_HETEROGENEOUS_INTERFACE_TYPE">OPTION_MAPPING_HETEROGENEOUS_INTERFACE_TYPE</a>, <a href="../../javax/jdo/Constants.html#OPTION_MAPPING_HETEROGENEOUS_OBJECT_TYPE">OPTION_MAPPING_HETEROGENEOUS_OBJECT_TYPE</a>, <a href="../../javax/jdo/Constants.html#OPTION_MAPPING_JOINED_TABLE_PER_CLASS">OPTION_MAPPING_JOINED_TABLE_PER_CLASS</a>, <a href="../../javax/jdo/Constants.html#OPTION_MAPPING_JOINED_TABLE_PER_CONCRETE_CLASS">OPTION_MAPPING_JOINED_TABLE_PER_CONCRETE_CLASS</a>, <a href="../../javax/jdo/Constants.html#OPTION_MAPPING_NON_JOINED_TABLE_PER_CONCRETE_CLASS">OPTION_MAPPING_NON_JOINED_TABLE_PER_CONCRETE_CLASS</a>, <a href="../../javax/jdo/Constants.html#OPTION_MAPPING_RELATION_SUBCLASS_TABLE">OPTION_MAPPING_RELATION_SUBCLASS_TABLE</a>, <a href="../../javax/jdo/Constants.html#OPTION_NONDURABLE_IDENTITY">OPTION_NONDURABLE_IDENTITY</a>, <a href="../../javax/jdo/Constants.html#OPTION_NONTRANSACTIONAL_READ">OPTION_NONTRANSACTIONAL_READ</a>, <a href="../../javax/jdo/Constants.html#OPTION_NONTRANSACTIONAL_WRITE">OPTION_NONTRANSACTIONAL_WRITE</a>, <a href="../../javax/jdo/Constants.html#OPTION_NULL_COLLECTION">OPTION_NULL_COLLECTION</a>, <a href="../../javax/jdo/Constants.html#OPTION_OPTIMISTIC">OPTION_OPTIMISTIC</a>, <a href="../../javax/jdo/Constants.html#OPTION_PREDIRTY_EVENT">OPTION_PREDIRTY_EVENT</a>, <a href="../../javax/jdo/Constants.html#OPTION_QUERY_CANCEL">OPTION_QUERY_CANCEL</a>, <a href="../../javax/jdo/Constants.html#OPTION_QUERY_JDOQL_BITWISE_OPERATIONS">OPTION_QUERY_JDOQL_BITWISE_OPERATIONS</a>, <a href="../../javax/jdo/Constants.html#OPTION_QUERY_SQL">OPTION_QUERY_SQL</a>, <a href="../../javax/jdo/Constants.html#OPTION_RETAIN_VALUES">OPTION_RETAIN_VALUES</a>, <a href="../../javax/jdo/Constants.html#OPTION_TRANSACTIONAL_TRANSIENT">OPTION_TRANSACTIONAL_TRANSIENT</a>, <a href="../../javax/jdo/Constants.html#OPTION_TREEMAP">OPTION_TREEMAP</a>, <a href="../../javax/jdo/Constants.html#OPTION_TREESET">OPTION_TREESET</a>, <a href="../../javax/jdo/Constants.html#OPTION_UNCONSTRAINED_QUERY_VARIABLES">OPTION_UNCONSTRAINED_QUERY_VARIABLES</a>, <a href="../../javax/jdo/Constants.html#OPTION_VECTOR">OPTION_VECTOR</a>, <a href="../../javax/jdo/Constants.html#OPTION_VERSION_DATETIME">OPTION_VERSION_DATETIME</a>, <a href="../../javax/jdo/Constants.html#OPTION_VERSION_STATE_IMAGE">OPTION_VERSION_STATE_IMAGE</a>, <a href="../../javax/jdo/Constants.html#ORM_DTD_RESOURCE">ORM_DTD_RESOURCE</a>, <a href="../../javax/jdo/Constants.html#ORM_XSD_NS">ORM_XSD_NS</a>, <a href="../../javax/jdo/Constants.html#ORM_XSD_RESOURCE">ORM_XSD_RESOURCE</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_CLASS">PMF_ATTRIBUTE_CLASS</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_CONNECTION_DRIVER_NAME">PMF_ATTRIBUTE_CONNECTION_DRIVER_NAME</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_CONNECTION_FACTORY_NAME">PMF_ATTRIBUTE_CONNECTION_FACTORY_NAME</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_CONNECTION_FACTORY2_NAME">PMF_ATTRIBUTE_CONNECTION_FACTORY2_NAME</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_CONNECTION_PASSWORD">PMF_ATTRIBUTE_CONNECTION_PASSWORD</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_CONNECTION_URL">PMF_ATTRIBUTE_CONNECTION_URL</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_CONNECTION_USER_NAME">PMF_ATTRIBUTE_CONNECTION_USER_NAME</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_COPY_ON_ATTACH">PMF_ATTRIBUTE_COPY_ON_ATTACH</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_DATASTORE_READ_TIMEOUT_MILLIS">PMF_ATTRIBUTE_DATASTORE_READ_TIMEOUT_MILLIS</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_DATASTORE_WRITE_TIMEOUT_MILLIS">PMF_ATTRIBUTE_DATASTORE_WRITE_TIMEOUT_MILLIS</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_DETACH_ALL_ON_COMMIT">PMF_ATTRIBUTE_DETACH_ALL_ON_COMMIT</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_IGNORE_CACHE">PMF_ATTRIBUTE_IGNORE_CACHE</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_MAPPING">PMF_ATTRIBUTE_MAPPING</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_MULTITHREADED">PMF_ATTRIBUTE_MULTITHREADED</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_NAME">PMF_ATTRIBUTE_NAME</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_NONTRANSACTIONAL_READ">PMF_ATTRIBUTE_NONTRANSACTIONAL_READ</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_NONTRANSACTIONAL_WRITE">PMF_ATTRIBUTE_NONTRANSACTIONAL_WRITE</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_OPTIMISTIC">PMF_ATTRIBUTE_OPTIMISTIC</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_PERSISTENCE_UNIT_NAME">PMF_ATTRIBUTE_PERSISTENCE_UNIT_NAME</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_READONLY">PMF_ATTRIBUTE_READONLY</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_RESTORE_VALUES">PMF_ATTRIBUTE_RESTORE_VALUES</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_RETAIN_VALUES">PMF_ATTRIBUTE_RETAIN_VALUES</a>, <a href="../../javax/jdo/Constants.html#PMF_ATTRIBUTE_SERVER_TIME_ZONE_ID">PMF_ATTRIBUTE_SERVER_TIME_ZONE_ID</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_ATTRIBUTE_NAME">PROPERTY_ATTRIBUTE_NAME</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_ATTRIBUTE_VALUE">PROPERTY_ATTRIBUTE_VALUE</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_CONNECTION_DRIVER_NAME">PROPERTY_CONNECTION_DRIVER_NAME</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_CONNECTION_FACTORY_NAME">PROPERTY_CONNECTION_FACTORY_NAME</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_CONNECTION_FACTORY2_NAME">PROPERTY_CONNECTION_FACTORY2_NAME</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_CONNECTION_PASSWORD">PROPERTY_CONNECTION_PASSWORD</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_CONNECTION_URL">PROPERTY_CONNECTION_URL</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_CONNECTION_USER_NAME">PROPERTY_CONNECTION_USER_NAME</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_COPY_ON_ATTACH">PROPERTY_COPY_ON_ATTACH</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_DATASTORE_READ_TIMEOUT_MILLIS">PROPERTY_DATASTORE_READ_TIMEOUT_MILLIS</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_DATASTORE_WRITE_TIMEOUT_MILLIS">PROPERTY_DATASTORE_WRITE_TIMEOUT_MILLIS</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_DETACH_ALL_ON_COMMIT">PROPERTY_DETACH_ALL_ON_COMMIT</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_ENHANCER_VENDOR_NAME">PROPERTY_ENHANCER_VENDOR_NAME</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_ENHANCER_VERSION_NUMBER">PROPERTY_ENHANCER_VERSION_NUMBER</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_IGNORE_CACHE">PROPERTY_IGNORE_CACHE</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_INSTANCE_LIFECYCLE_LISTENER">PROPERTY_INSTANCE_LIFECYCLE_LISTENER</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_MAPPING">PROPERTY_MAPPING</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_MAPPING_CATALOG">PROPERTY_MAPPING_CATALOG</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_MAPPING_SCHEMA">PROPERTY_MAPPING_SCHEMA</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_MULTITHREADED">PROPERTY_MULTITHREADED</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_NAME">PROPERTY_NAME</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_NONTRANSACTIONAL_READ">PROPERTY_NONTRANSACTIONAL_READ</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_NONTRANSACTIONAL_WRITE">PROPERTY_NONTRANSACTIONAL_WRITE</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_OPTIMISTIC">PROPERTY_OPTIMISTIC</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_PERSISTENCE_MANAGER_FACTORY_CLASS">PROPERTY_PERSISTENCE_MANAGER_FACTORY_CLASS</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_PERSISTENCE_UNIT_NAME">PROPERTY_PERSISTENCE_UNIT_NAME</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_PREFIX_INSTANCE_LIFECYCLE_LISTENER">PROPERTY_PREFIX_INSTANCE_LIFECYCLE_LISTENER</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_READONLY">PROPERTY_READONLY</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_RESTORE_VALUES">PROPERTY_RESTORE_VALUES</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_RETAIN_VALUES">PROPERTY_RETAIN_VALUES</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_SERVER_TIME_ZONE_ID">PROPERTY_SERVER_TIME_ZONE_ID</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_SPI_PROPERTIES_FILE_NAME">PROPERTY_SPI_PROPERTIES_FILE_NAME</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_SPI_RESOURCE_NAME">PROPERTY_SPI_RESOURCE_NAME</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_TRANSACTION_ISOLATION_LEVEL">PROPERTY_TRANSACTION_ISOLATION_LEVEL</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_TRANSACTION_ISOLATION_LEVEL_READ_COMMITTED">PROPERTY_TRANSACTION_ISOLATION_LEVEL_READ_COMMITTED</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_TRANSACTION_ISOLATION_LEVEL_READ_UNCOMMITTED">PROPERTY_TRANSACTION_ISOLATION_LEVEL_READ_UNCOMMITTED</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_TRANSACTION_ISOLATION_LEVEL_REPEATABLE_READ">PROPERTY_TRANSACTION_ISOLATION_LEVEL_REPEATABLE_READ</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_TRANSACTION_ISOLATION_LEVEL_SERIALIZABLE">PROPERTY_TRANSACTION_ISOLATION_LEVEL_SERIALIZABLE</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_TRANSACTION_ISOLATION_LEVEL_SNAPSHOT">PROPERTY_TRANSACTION_ISOLATION_LEVEL_SNAPSHOT</a>, <a href="../../javax/jdo/Constants.html#PROPERTY_TRANSACTION_TYPE">PROPERTY_TRANSACTION_TYPE</a>, <a href="../../javax/jdo/Constants.html#RESOURCE_LOCAL">RESOURCE_LOCAL</a>, <a href="../../javax/jdo/Constants.html#SERVICE_LOOKUP_ENHANCER_RESOURCE_NAME">SERVICE_LOOKUP_ENHANCER_RESOURCE_NAME</a>, <a href="../../javax/jdo/Constants.html#SERVICE_LOOKUP_PMF_RESOURCE_NAME">SERVICE_LOOKUP_PMF_RESOURCE_NAME</a>, <a href="../../javax/jdo/Constants.html#TX_READ_COMMITTED">TX_READ_COMMITTED</a>, <a href="../../javax/jdo/Constants.html#TX_READ_UNCOMMITTED">TX_READ_UNCOMMITTED</a>, <a href="../../javax/jdo/Constants.html#TX_REPEATABLE_READ">TX_REPEATABLE_READ</a>, <a href="../../javax/jdo/Constants.html#TX_SERIALIZABLE">TX_SERIALIZABLE</a>, <a href="../../javax/jdo/Constants.html#TX_SNAPSHOT">TX_SNAPSHOT</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#JDOHelper--">JDOHelper</a></span>()</code> |
| <div class="block">Some applications might prefer to use instance |
| methods instead of static methods.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getClassNameFromURL-java.net.URL-">getClassNameFromURL</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url)</code> |
| <div class="block">Get a class name from a URL.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>protected static <a href="https://docs.oracle.com/javase/8/docs/api/javax/xml/parsers/DocumentBuilderFactory.html?is-external=true" title="class or interface in javax.xml.parsers">DocumentBuilderFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getDefaultDocumentBuilderFactory--">getDefaultDocumentBuilderFactory</a></span>()</code> </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>protected static <a href="https://docs.oracle.com/javase/8/docs/api/org/xml/sax/ErrorHandler.html?is-external=true" title="class or interface in org.xml.sax">ErrorHandler</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getDefaultErrorHandler--">getDefaultErrorHandler</a></span>()</code> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>protected static <a href="https://docs.oracle.com/javase/8/docs/api/javax/xml/parsers/DocumentBuilderFactory.html?is-external=true" title="class or interface in javax.xml.parsers">DocumentBuilderFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getDocumentBuilderFactory--">getDocumentBuilderFactory</a></span>()</code> </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/JDOEnhancer.html" title="interface in javax.jdo">JDOEnhancer</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getEnhancer--">getEnhancer</a></span>()</code> |
| <div class="block">Get a <code>JDOEnhancer</code> using the available enhancer(s) specified in |
| "META-INF/services/JDOEnhancer" using the context class loader.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/JDOEnhancer.html" title="interface in javax.jdo">JDOEnhancer</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getEnhancer-java.lang.ClassLoader-">getEnhancer</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader)</code> |
| <div class="block">Get a <code>JDOEnhancer</code> using the available enhancer(s) specified in |
| "META-INF/services/JDOEnhancer"</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>protected static <a href="https://docs.oracle.com/javase/8/docs/api/org/xml/sax/ErrorHandler.html?is-external=true" title="class or interface in org.xml.sax">ErrorHandler</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getErrorHandler--">getErrorHandler</a></span>()</code> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/JDOHelper.html" title="class in javax.jdo">JDOHelper</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getInstance--">getInstance</a></span>()</code> |
| <div class="block">Return the singleton instance of JDOHelper.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getNamedPMFProperties-java.lang.String-java.lang.ClassLoader-java.lang.String-">getNamedPMFProperties</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jdoconfigResourceName)</code> |
| <div class="block">Find and return the named <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a>'s properties, |
| or null if not found.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getObjectId-java.lang.Object-">getObjectId</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</code> |
| <div class="block">Return a copy of the JDO identity associated with the parameter |
| instance.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getObjectIds-java.util.Collection-">getObjectIds</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><?> pcs)</code> |
| <div class="block">Get object ids for a collection of instances.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getObjectIds-java.lang.Object:A-">getObjectIds</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] pcs)</code> |
| <div class="block">Get object ids for an array of instances.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/ObjectState.html" title="enum in javax.jdo">ObjectState</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getObjectState-java.lang.Object-">getObjectState</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</code> |
| <div class="block">Accessor for the state of the passed object.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManager.html" title="interface in javax.jdo">PersistenceManager</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManager-java.lang.Object-">getPersistenceManager</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</code> |
| <div class="block">Return the associated <code>PersistenceManager</code> if there is one.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory--">getPersistenceManagerFactory</a></span>()</code> |
| <div class="block">Get the anonymous <code>PersistenceManagerFactory</code> configured via |
| the standard configuration file resource "META-INF/jdoconfig.xml", using |
| the current thread's context class loader |
| to locate the configuration file resource(s).</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.lang.ClassLoader-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> pmfClassLoader)</code> |
| <div class="block">Get the anonymous <code>PersistenceManagerFactory</code> configured via |
| the standard configuration file resource "META-INF/jdoconfig.xml", using |
| the given class loader.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.io.File-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> propsFile)</code> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> configured based |
| on the properties stored in the file at |
| <code>propsFile</code>.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.io.File-java.lang.ClassLoader-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> propsFile, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader)</code> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> configured based |
| on the properties stored in the file at |
| <code>propsFile</code>.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.io.InputStream-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> stream)</code> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> configured based |
| on the Properties stored in the input stream at |
| <code>stream</code>.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.io.InputStream-java.lang.ClassLoader-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> stream, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader)</code> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> configured based |
| on the Properties stored in the input stream at |
| <code>stream</code>.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> props)</code> |
| <div class="block">Get a <code>PersistenceManagerFactory</code> based on a <code>Properties</code> |
| instance, using the current thread's context class loader to locate the |
| <code>PersistenceManagerFactory</code> class.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.lang.ClassLoader-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> props, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> pmfClassLoader)</code> |
| <div class="block">Get a <code>PersistenceManagerFactory</code> based on a |
| <code>Map</code> and a class loader.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>protected static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.util.Map-java.lang.ClassLoader-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> overrides, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> props, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> pmfClassLoader)</code> |
| <div class="block">Get a <code>PersistenceManagerFactory</code> based on a |
| <code>Map</code> of overrides, a <code>Map</code> of |
| properties, and a class loader.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.lang.String-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> overrides, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code> |
| <div class="block">Returns a named <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> or persistence unit.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.lang.String-java.lang.ClassLoader-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> overrides, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader)</code> |
| <div class="block">Returns a named <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> or persistence unit.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.lang.String-java.lang.ClassLoader-java.lang.ClassLoader-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> overrides, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> pmfLoader)</code> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> configured based |
| on the properties stored in the resource at |
| <code>name</code>, or, if not found, returns a |
| <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> with the given |
| name or, if not found, returns a |
| <code>javax.persistence.EntityManagerFactory</code> cast to a |
| <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.lang.String-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code> |
| <div class="block">Returns a named <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> or persistence unit.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.lang.String-java.lang.ClassLoader-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader)</code> |
| <div class="block">Returns a named <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> or persistence unit.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.lang.String-java.lang.ClassLoader-java.lang.ClassLoader-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> pmfLoader)</code> |
| <div class="block">Returns a named <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> or persistence unit.</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.lang.String-javax.naming.Context-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jndiLocation, |
| <a href="https://docs.oracle.com/javase/8/docs/api/javax/naming/Context.html?is-external=true" title="class or interface in javax.naming">Context</a> context)</code> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> at the JNDI |
| location specified by <code>jndiLocation</code> in the context |
| <code>context</code>.</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.lang.String-javax.naming.Context-java.lang.ClassLoader-">getPersistenceManagerFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jndiLocation, |
| <a href="https://docs.oracle.com/javase/8/docs/api/javax/naming/Context.html?is-external=true" title="class or interface in javax.naming">Context</a> context, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader)</code> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> at the JNDI |
| location specified by <code>jndiLocation</code> in the context |
| <code>context</code>.</div> |
| </td> |
| </tr> |
| <tr id="i31" class="rowColor"> |
| <td class="colFirst"><code>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getPropertiesFromJdoconfig-java.lang.String-java.lang.ClassLoader-">getPropertiesFromJdoconfig</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader)</code> </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getResources-java.lang.ClassLoader-java.lang.String-">getResources</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> resourceName)</code> |
| <div class="block">Get resources of the resource loader.</div> |
| </td> |
| </tr> |
| <tr id="i33" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getTransactionalObjectId-java.lang.Object-">getTransactionalObjectId</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</code> |
| <div class="block">Return a copy of the JDO identity associated with the parameter |
| instance.</div> |
| </td> |
| </tr> |
| <tr id="i34" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#getVersion-java.lang.Object-">getVersion</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</code> |
| <div class="block">Return the version of the instance.</div> |
| </td> |
| </tr> |
| <tr id="i35" class="rowColor"> |
| <td class="colFirst"><code>protected static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#invokeGetPersistenceManagerFactoryOnImplementation-java.lang.String-java.util.Map-java.util.Map-java.lang.ClassLoader-">invokeGetPersistenceManagerFactoryOnImplementation</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> pmfClassName, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> overrides, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> properties, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> cl)</code> |
| <div class="block">Invoke the getPersistenceManagerFactory method on the implementation.</div> |
| </td> |
| </tr> |
| <tr id="i36" class="altColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#isDeleted-java.lang.Object-">isDeleted</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</code> |
| <div class="block">Tests whether the parameter instance has been deleted.</div> |
| </td> |
| </tr> |
| <tr id="i37" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#isDetached-java.lang.Object-">isDetached</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</code> |
| <div class="block">Tests whether the parameter instance has been detached.</div> |
| </td> |
| </tr> |
| <tr id="i38" class="altColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#isDirty-java.lang.Object-">isDirty</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</code> |
| <div class="block">Tests whether the parameter instance is dirty.</div> |
| </td> |
| </tr> |
| <tr id="i39" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#isNew-java.lang.Object-">isNew</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</code> |
| <div class="block">Tests whether the parameter instance has been newly made persistent.</div> |
| </td> |
| </tr> |
| <tr id="i40" class="altColor"> |
| <td class="colFirst"><code>protected static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#isNullOrBlank-java.lang.String-">isNullOrBlank</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s)</code> </td> |
| </tr> |
| <tr id="i41" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#isPersistent-java.lang.Object-">isPersistent</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</code> |
| <div class="block">Tests whether the parameter instance is persistent.</div> |
| </td> |
| </tr> |
| <tr id="i42" class="altColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#isTransactional-java.lang.Object-">isTransactional</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</code> |
| <div class="block">Tests whether the parameter instance is transactional.</div> |
| </td> |
| </tr> |
| <tr id="i43" class="rowColor"> |
| <td class="colFirst"><code>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#loadPropertiesFromResource-java.lang.ClassLoader-java.lang.String-">loadPropertiesFromResource</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code> |
| <div class="block">Load a Properties instance by name from the class loader.</div> |
| </td> |
| </tr> |
| <tr id="i44" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#makeDirty-java.lang.Object-java.lang.String-">makeDirty</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> |
| <div class="block">Explicitly mark the parameter instance and field dirty.</div> |
| </td> |
| </tr> |
| <tr id="i45" class="rowColor"> |
| <td class="colFirst"><code>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#readNamedPMFProperties-java.net.URL-java.lang.String-javax.xml.parsers.DocumentBuilderFactory-">readNamedPMFProperties</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> requestedPMFName, |
| <a href="https://docs.oracle.com/javase/8/docs/api/javax/xml/parsers/DocumentBuilderFactory.html?is-external=true" title="class or interface in javax.xml.parsers">DocumentBuilderFactory</a> factory)</code> |
| <div class="block">Reads JDO configuration file, creates a Map for each |
| persistence-manager-factory, then returns the map.</div> |
| </td> |
| </tr> |
| <tr id="i46" class="altColor"> |
| <td class="colFirst"><code>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#readPropertiesFromPMFElementAttributes-org.w3c.dom.Node-">readPropertiesFromPMFElementAttributes</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/org/w3c/dom/Node.html?is-external=true" title="class or interface in org.w3c.dom">Node</a> pmfElement)</code> </td> |
| </tr> |
| <tr id="i47" class="rowColor"> |
| <td class="colFirst"><code>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../javax/jdo/JDOHelper.html#readPropertiesFromPMFSubelements-org.w3c.dom.Node-java.net.URL-">readPropertiesFromPMFSubelements</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/org/w3c/dom/Node.html?is-external=true" title="class or interface in org.w3c.dom">Node</a> pmfElement, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url)</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="JDOHelper--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>JDOHelper</h4> |
| <pre>public JDOHelper()</pre> |
| <div class="block">Some applications might prefer to use instance |
| methods instead of static methods.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getInstance--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getInstance</h4> |
| <pre>public static <a href="../../javax/jdo/JDOHelper.html" title="class in javax.jdo">JDOHelper</a> getInstance()</pre> |
| <div class="block">Return the singleton instance of JDOHelper. This instance is |
| thread-safe.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the thread-safe singleton JDOHelper</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManager-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManager</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManager.html" title="interface in javax.jdo">PersistenceManager</a> getPersistenceManager(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</pre> |
| <div class="block">Return the associated <code>PersistenceManager</code> if there is one. |
| Transactional and persistent instances return the associated |
| <code>PersistenceManager</code>. |
| |
| <P>Transient non-transactional instances and instances of classes |
| that do not implement <code>PersistenceCapable</code> return |
| <code>null</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pc</code> - the <code>PersistenceCapable</code> instance.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>PersistenceManager</code> associated with the parameter |
| instance.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/spi/PersistenceCapable.html#jdoGetPersistenceManager--"><code>PersistenceCapable.jdoGetPersistenceManager()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="makeDirty-java.lang.Object-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeDirty</h4> |
| <pre>public static void makeDirty(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> |
| <div class="block">Explicitly mark the parameter instance and field dirty. |
| Normally, <code>PersistenceCapable</code> classes are able to detect |
| changes made to their fields. However, if a reference to an array is |
| given to a method outside the class, and the array is modified, then the |
| persistent instance is not aware of the change. This API allows the |
| application to notify the instance that a change was made to a field. |
| |
| <P>Transient instances and instances of classes |
| that do not implement <code>PersistenceCapable</code> ignore this method.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pc</code> - the <code>PersistenceCapable</code> instance.</dd> |
| <dd><code>fieldName</code> - the name of the field to be marked dirty.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/spi/PersistenceCapable.html#jdoMakeDirty-java.lang.String-"><code>PersistenceCapable.jdoMakeDirty(String fieldName)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getObjectId-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getObjectId</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> getObjectId(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</pre> |
| <div class="block">Return a copy of the JDO identity associated with the parameter |
| instance. |
| |
| <P>Persistent instances of <code>PersistenceCapable</code> classes have a |
| JDO identity managed by the <code>PersistenceManager</code>. This method |
| returns a copy of the ObjectId that represents the JDO identity. |
| |
| <P>Transient instances and instances of classes that do not implement |
| <code>PersistenceCapable</code> return <code>null</code>. |
| |
| <P>The ObjectId may be serialized |
| and later restored, and used with a <code>PersistenceManager</code> from |
| the same JDO implementation to locate a persistent instance with the same |
| data store identity. |
| |
| <P>If the JDO identity is managed by the application, then the ObjectId |
| may be used with a <code>PersistenceManager</code> from any JDO |
| implementation that supports the <code>PersistenceCapable</code> class. |
| |
| <P>If the JDO identity is not managed by the application or the data |
| store, then the ObjectId returned is only valid within the current |
| transaction. |
| <P></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pc</code> - the PersistenceCapable instance.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a copy of the ObjectId of the parameter instance as of the |
| beginning of the transaction.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/PersistenceManager.html#getObjectId-java.lang.Object-"><code>PersistenceManager.getObjectId(Object pc)</code></a>, |
| <a href="../../javax/jdo/spi/PersistenceCapable.html#jdoGetObjectId--"><code>PersistenceCapable.jdoGetObjectId()</code></a>, |
| <a href="../../javax/jdo/PersistenceManager.html#getObjectById-java.lang.Object-boolean-"><code>PersistenceManager.getObjectById(Object oid, boolean validate)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getObjectIds-java.util.Collection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getObjectIds</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> getObjectIds(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><?> pcs)</pre> |
| <div class="block">Get object ids for a collection of instances. For each instance |
| in the parameter, the getObjectId method is called. This method |
| returns one identity instance for each element |
| in the parameter. The order of iteration of the returned |
| Collection exactly matches the order of iteration of the |
| parameter Collection.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pcs</code> - the persistence-capable instances</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the object ids of the parameters</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/JDOHelper.html#getObjectId-java.lang.Object-"><code>getObjectId(Object pc)</code></a>, |
| <a href="../../javax/jdo/JDOHelper.html#getObjectIds-java.lang.Object:A-"><code>getObjectIds(Object[] pcs)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getObjectIds-java.lang.Object:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getObjectIds</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] getObjectIds(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] pcs)</pre> |
| <div class="block">Get object ids for an array of instances. For each instance |
| in the parameter, the getObjectId method is called. This method |
| returns one identity instance for each element |
| in the parameter. The order of instances of the returned |
| array exactly matches the order of instances of the |
| parameter array.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pcs</code> - the persistence-capable instances</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the object ids of the parameters</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/JDOHelper.html#getObjectId-java.lang.Object-"><code>getObjectId(Object pc)</code></a>, |
| <a href="../../javax/jdo/JDOHelper.html#getObjectIds-java.util.Collection-"><code>getObjectIds(Collection pcs)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getTransactionalObjectId-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTransactionalObjectId</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> getTransactionalObjectId(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</pre> |
| <div class="block">Return a copy of the JDO identity associated with the parameter |
| instance.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pc</code> - the <code>PersistenceCapable</code> instance.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a copy of the ObjectId of the parameter instance as modified in |
| this transaction.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/spi/PersistenceCapable.html#jdoGetTransactionalObjectId--"><code>PersistenceCapable.jdoGetTransactionalObjectId()</code></a>, |
| <a href="../../javax/jdo/PersistenceManager.html#getObjectById-java.lang.Object-boolean-"><code>PersistenceManager.getObjectById(Object oid, boolean validate)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getVersion-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getVersion</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> getVersion(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</pre> |
| <div class="block">Return the version of the instance.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pc</code> - the instance</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the version of the instance</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isDirty-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isDirty</h4> |
| <pre>public static boolean isDirty(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</pre> |
| <div class="block">Tests whether the parameter instance is dirty. |
| |
| Instances that have been modified, deleted, or newly |
| made persistent in the current transaction return <code>true</code>. |
| |
| <P>Transient instances and instances of classes that do not implement |
| <code>PersistenceCapable</code> return <code>false</code>. |
| <P></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pc</code> - the <code>PersistenceCapable</code> instance.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the parameter instance has been modified in |
| the current transaction.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/spi/StateManager.html#makeDirty-javax.jdo.spi.PersistenceCapable-java.lang.String-"><code>StateManager.makeDirty(PersistenceCapable pc, |
| String fieldName)</code></a>, |
| <a href="../../javax/jdo/spi/PersistenceCapable.html#jdoIsDirty--"><code>PersistenceCapable.jdoIsDirty()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isTransactional-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isTransactional</h4> |
| <pre>public static boolean isTransactional(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</pre> |
| <div class="block">Tests whether the parameter instance is transactional. |
| |
| Instances whose state is associated with the current transaction |
| return true. |
| |
| <P>Transient instances and instances of classes that do not implement |
| <code>PersistenceCapable</code> return <code>false</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pc</code> - the <code>PersistenceCapable</code> instance.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the parameter instance is transactional.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/spi/PersistenceCapable.html#jdoIsTransactional--"><code>PersistenceCapable.jdoIsTransactional()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isPersistent-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isPersistent</h4> |
| <pre>public static boolean isPersistent(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</pre> |
| <div class="block">Tests whether the parameter instance is persistent. |
| |
| Instances that represent persistent objects in the data store |
| return <code>true</code>. |
| |
| <P>Transient instances and instances of classes that do not implement |
| <code>PersistenceCapable</code> return <code>false</code>. |
| <P></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pc</code> - the <code>PersistenceCapable</code> instance.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the parameter instance is persistent.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/PersistenceManager.html#makePersistent-T-"><code>PersistenceManager.makePersistent(Object pc)</code></a>, |
| <a href="../../javax/jdo/spi/PersistenceCapable.html#jdoIsPersistent--"><code>PersistenceCapable.jdoIsPersistent()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isNew-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isNew</h4> |
| <pre>public static boolean isNew(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</pre> |
| <div class="block">Tests whether the parameter instance has been newly made persistent. |
| |
| Instances that have been made persistent in the current transaction |
| return <code>true</code>. |
| |
| <P>Transient instances and instances of classes that do not implement |
| <code>PersistenceCapable</code> return <code>false</code>. |
| <P></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pc</code> - the <code>PersistenceCapable</code> instance.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the parameter instance was made persistent |
| in the current transaction.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/PersistenceManager.html#makePersistent-T-"><code>PersistenceManager.makePersistent(Object pc)</code></a>, |
| <a href="../../javax/jdo/spi/PersistenceCapable.html#jdoIsNew--"><code>PersistenceCapable.jdoIsNew()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isDeleted-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isDeleted</h4> |
| <pre>public static boolean isDeleted(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</pre> |
| <div class="block">Tests whether the parameter instance has been deleted. |
| |
| Instances that have been deleted in the current transaction return |
| <code>true</code>. |
| |
| <P>Transient instances and instances of classes that do not implement |
| <code>PersistenceCapable</code> return <code>false</code>. |
| <P></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pc</code> - the <code>PersistenceCapable</code> instance.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the parameter instance was deleted |
| in the current transaction.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/PersistenceManager.html#deletePersistent-java.lang.Object-"><code>PersistenceManager.deletePersistent(Object pc)</code></a>, |
| <a href="../../javax/jdo/spi/PersistenceCapable.html#jdoIsDeleted--"><code>PersistenceCapable.jdoIsDeleted()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isDetached-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isDetached</h4> |
| <pre>public static boolean isDetached(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</pre> |
| <div class="block">Tests whether the parameter instance has been detached. |
| |
| Instances that have been detached return true. |
| |
| <P>Transient instances return false. |
| <P></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pc</code> - the instance</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if this instance is detached.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/spi/PersistenceCapable.html#jdoIsDetached--"><code>PersistenceCapable.jdoIsDetached()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getObjectState-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getObjectState</h4> |
| <pre>public static <a href="../../javax/jdo/ObjectState.html" title="enum in javax.jdo">ObjectState</a> getObjectState(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> pc)</pre> |
| <div class="block">Accessor for the state of the passed object.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pc</code> - The object</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The object state</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory()</pre> |
| <div class="block">Get the anonymous <code>PersistenceManagerFactory</code> configured via |
| the standard configuration file resource "META-INF/jdoconfig.xml", using |
| the current thread's context class loader |
| to locate the configuration file resource(s).</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the anonymous <code>PersistenceManagerFactory</code>.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.lang.String-java.lang.ClassLoader-java.lang.ClassLoader-"><code>getPersistenceManagerFactory(Map,String,ClassLoader,ClassLoader)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> pmfClassLoader)</pre> |
| <div class="block">Get the anonymous <code>PersistenceManagerFactory</code> configured via |
| the standard configuration file resource "META-INF/jdoconfig.xml", using |
| the given class loader.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pmfClassLoader</code> - the ClassLoader used to load resources and classes</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the anonymous <code>PersistenceManagerFactory</code>.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.lang.String-java.lang.ClassLoader-java.lang.ClassLoader-"><code>getPersistenceManagerFactory(Map,String,ClassLoader,ClassLoader)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.util.Map-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> props)</pre> |
| <div class="block">Get a <code>PersistenceManagerFactory</code> based on a <code>Properties</code> |
| instance, using the current thread's context class loader to locate the |
| <code>PersistenceManagerFactory</code> class.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>props</code> - a <code>Properties</code> instance with properties of the |
| <code>PersistenceManagerFactory</code>.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>PersistenceManagerFactory</code>.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.lang.ClassLoader-"><code>getPersistenceManagerFactory(java.util.Map,ClassLoader)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.util.Map-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> props, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> pmfClassLoader)</pre> |
| <div class="block">Get a <code>PersistenceManagerFactory</code> based on a |
| <code>Map</code> and a class loader. |
| This method delegates to the getPersistenceManagerFactory |
| method that takes a Map of overrides and a Map of properties, |
| passing null as the overrides parameter.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>props</code> - a <code>Map</code> with properties of the |
| <code>PersistenceManagerFactory</code>.</dd> |
| <dd><code>pmfClassLoader</code> - the class loader used to load the |
| <code>PersistenceManagerFactory</code> class</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>PersistenceManagerFactory</code>.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.0</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.util.Map-java.lang.ClassLoader-"><code>getPersistenceManagerFactory(java.util.Map, java.util.Map, ClassLoader)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.util.Map-java.util.Map-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>protected static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> overrides, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> props, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> pmfClassLoader)</pre> |
| <div class="block">Get a <code>PersistenceManagerFactory</code> based on a |
| <code>Map</code> of overrides, a <code>Map</code> of |
| properties, and a class loader. |
| The following are standard key names: |
| <BR><code>"javax.jdo.PersistenceManagerFactoryClass" |
| <BR>"javax.jdo.option.Optimistic", |
| <BR>"javax.jdo.option.RetainValues", |
| <BR>"javax.jdo.option.RestoreValues", |
| <BR>"javax.jdo.option.IgnoreCache", |
| <BR>"javax.jdo.option.NontransactionalRead", |
| <BR>"javax.jdo.option.NontransactionalWrite", |
| <BR>"javax.jdo.option.Multithreaded", |
| <BR>"javax.jdo.option.ConnectionUserName", |
| <BR>"javax.jdo.option.ConnectionPassword", |
| <BR>"javax.jdo.option.ConnectionURL", |
| <BR>"javax.jdo.option.ConnectionFactoryName", |
| <BR>"javax.jdo.option.ConnectionFactory2Name", |
| <BR>"javax.jdo.option.Mapping", |
| <BR>"javax.jdo.mapping.Catalog", |
| <BR>"javax.jdo.mapping.Schema", |
| <BR>"javax.jdo.option.PersistenceUnitName", |
| <BR>"javax.jdo.option.DetachAllOnCommit", |
| <BR>"javax.jdo.option.CopyOnAttach", |
| <BR>"javax.jdo.option.ReadOnly", |
| <BR>"javax.jdo.option.TransactionIsolationLevel", |
| <BR>"javax.jdo.option.TransactionType", |
| <BR>"javax.jdo.option.ServerTimeZoneID", |
| <BR>"javax.jdo.option.DatastoreReadTimeoutMillis", |
| <BR>"javax.jdo.option.DatastoreWriteTimeoutMillis", |
| <BR>"javax.jdo.option.Name". |
| </code> |
| and properties of the form |
| <BR><code>javax.jdo.option.InstanceLifecycleListener.{listenerClass}[=[{pcClasses}]]</code> |
| where <code>{listenerClass}</code> is the fully qualified name of a |
| class that implements |
| <a href="../../javax/jdo/listener/InstanceLifecycleListener.html" title="interface in javax.jdo.listener"><code>InstanceLifecycleListener</code></a>, and |
| <code>{pcClasses}</code> is an optional comma- or whitespace-delimited |
| list of persistence-capable classes to be observed; the absence of a |
| value for a property of this form means that instances of all |
| persistence-capable classes will be observed by an instance of the given |
| listener class. |
| <P>JDO implementations |
| are permitted to define key values of their own. Any key values not |
| recognized by the implementation must be ignored. Key values that are |
| recognized but not supported by an implementation must result in a |
| <code>JDOFatalUserException</code> thrown by the method. |
| <P>The returned <code>PersistenceManagerFactory</code> is not |
| configurable (the <code>set<I>XXX</I></code> methods will throw an |
| exception). |
| <P>JDO implementations might manage a map of instantiated |
| <code>PersistenceManagerFactory</code> instances based on specified |
| property key values, and return a previously instantiated |
| <code>PersistenceManagerFactory</code> instance. In this case, the |
| properties of the returned instance must exactly match the requested |
| properties.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>overrides</code> - Overrides of properties</dd> |
| <dd><code>props</code> - a <code>Properties</code> instance with properties of the |
| <code>PersistenceManagerFactory</code>.</dd> |
| <dd><code>pmfClassLoader</code> - the class loader to use to load the |
| <code>PersistenceManagerFactory</code> class</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>PersistenceManagerFactory</code>.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../javax/jdo/JDOFatalUserException.html" title="class in javax.jdo">JDOFatalUserException</a></code> - if |
| <ul><li>the pmfClassLoader passed is invalid; or |
| </li><li>a valid class name cannot be obtained from |
| either <code>props</code> or system resources |
| (an entry in META-INF/services/javax.jdo.PersistenceManagerFactory); or |
| </li><li>all implementations throw an exception. |
| </li></ul></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getClassNameFromURL-java.net.URL-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getClassNameFromURL</h4> |
| <pre>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getClassNameFromURL(<a href="https://docs.oracle.com/javase/8/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block">Get a class name from a URL. The URL is from getResources with |
| e.g. META-INF/services/javax.jdo.PersistenceManagerFactory as the |
| parameter. Parse the file, removing blank lines, comment lines, |
| and comments.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>url</code> - the URL of the services file</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the name of the class contained in the file</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - Throw if an error occurs on accessing this URL</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre> |
| <div class="block">Returns a named <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> or persistence unit.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - Name of the PMF</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>PersistenceManagerFactory</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.lang.String-java.lang.ClassLoader-java.lang.ClassLoader-"><code>getPersistenceManagerFactory(Map,String,ClassLoader,ClassLoader)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.lang.String-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader)</pre> |
| <div class="block">Returns a named <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> or persistence unit.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - Name of the PMF</dd> |
| <dd><code>loader</code> - ClassLoader to use</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>PersistenceManagerFactory</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.0</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.lang.String-java.lang.ClassLoader-java.lang.ClassLoader-"><code>getPersistenceManagerFactory(Map,String,ClassLoader,ClassLoader)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.lang.String-java.lang.ClassLoader-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> pmfLoader)</pre> |
| <div class="block">Returns a named <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> or persistence unit.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - Name of the PMF</dd> |
| <dd><code>resourceLoader</code> - ClassLoader to use for loading resources</dd> |
| <dd><code>pmfLoader</code> - ClassLoader to use for loading the PMF</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>PersistenceManagerFactory</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.lang.String-java.lang.ClassLoader-java.lang.ClassLoader-"><code>getPersistenceManagerFactory(Map,String,ClassLoader,ClassLoader)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.util.Map-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> overrides, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre> |
| <div class="block">Returns a named <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> or persistence unit.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - Name of the PMF</dd> |
| <dd><code>overrides</code> - Property overrides</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>PersistenceManagerFactory</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.lang.String-java.lang.ClassLoader-java.lang.ClassLoader-"><code>getPersistenceManagerFactory(Map,String,ClassLoader,ClassLoader)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.util.Map-java.lang.String-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> overrides, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader)</pre> |
| <div class="block">Returns a named <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> or persistence unit.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>overrides</code> - Property overrides</dd> |
| <dd><code>name</code> - Name of the PMF</dd> |
| <dd><code>resourceLoader</code> - ClassLoader to use for loading resources</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The PMF</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.util.Map-java.lang.String-java.lang.ClassLoader-java.lang.ClassLoader-"><code>getPersistenceManagerFactory(Map,String,ClassLoader,ClassLoader)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.util.Map-java.lang.String-java.lang.ClassLoader-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> overrides, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> pmfLoader)</pre> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> configured based |
| on the properties stored in the resource at |
| <code>name</code>, or, if not found, returns a |
| <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> with the given |
| name or, if not found, returns a |
| <code>javax.persistence.EntityManagerFactory</code> cast to a |
| <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a>. If the name given is null or consists |
| only of whitespace, it is interpreted as |
| <a href="../../javax/jdo/Constants.html#ANONYMOUS_PERSISTENCE_MANAGER_FACTORY_NAME"><code>Constants.ANONYMOUS_PERSISTENCE_MANAGER_FACTORY_NAME</code></a>. |
| The following are standard key names: |
| <BR><code>"javax.jdo.PersistenceManagerFactoryClass" |
| <BR>"javax.jdo.option.Optimistic", |
| <BR>"javax.jdo.option.RetainValues", |
| <BR>"javax.jdo.option.RestoreValues", |
| <BR>"javax.jdo.option.IgnoreCache", |
| <BR>"javax.jdo.option.NontransactionalRead", |
| <BR>"javax.jdo.option.NontransactionalWrite", |
| <BR>"javax.jdo.option.Multithreaded", |
| <BR>"javax.jdo.option.ConnectionUserName", |
| <BR>"javax.jdo.option.ConnectionPassword", |
| <BR>"javax.jdo.option.ConnectionURL", |
| <BR>"javax.jdo.option.ConnectionFactoryName", |
| <BR>"javax.jdo.option.ConnectionFactory2Name", |
| <BR>"javax.jdo.option.Mapping", |
| <BR>"javax.jdo.mapping.Catalog", |
| <BR>"javax.jdo.mapping.Schema", |
| <BR>"javax.jdo.option.PersistenceUnitName". |
| <BR>"javax.jdo.option.DetachAllOnCommit". |
| <BR>"javax.jdo.option.CopyOnAttach". |
| <BR>"javax.jdo.option.TransactionType". |
| <BR>"javax.jdo.option.ServerTimeZoneID". |
| <BR>"javax.jdo.option.DatastoreReadTimeoutMillis", |
| <BR>"javax.jdo.option.DatastoreWriteTimeoutMillis", |
| <BR>"javax.jdo.option.Name". |
| </code> |
| and properties of the form |
| <BR><code>javax.jdo.option.InstanceLifecycleListener.{listenerClass}[=[{pcClasses}]]</code> |
| where <code>{listenerClass}</code> is the fully qualified name of a |
| class that implements |
| <a href="../../javax/jdo/listener/InstanceLifecycleListener.html" title="interface in javax.jdo.listener"><code>InstanceLifecycleListener</code></a>, and |
| <code>{pcClasses}</code> is an optional comma- or whitespace-delimited |
| list of persistence-capable classes to be observed; the absence of a |
| value for a property of this form means that instances of all |
| persistence-capable classes will be observed by an instance of the given |
| listener class. |
| <P>JDO implementations |
| are permitted to define key values of their own. Any key values not |
| recognized by the implementation must be ignored. Key values that are |
| recognized but not supported by an implementation must result in a |
| <code>JDOFatalUserException</code> thrown by the method. |
| <P>The returned <code>PersistenceManagerFactory</code> is not |
| configurable (the <code>set<I>XXX</I></code> methods will throw an |
| exception). |
| |
| This method loads the properties found at <code>name</code>, if any, via |
| <code>resourceLoader</code>, and creates a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> with <code>pmfLoader</code>. Any |
| exceptions thrown during resource loading will |
| be wrapped in a <a href="../../javax/jdo/JDOFatalUserException.html" title="class in javax.jdo"><code>JDOFatalUserException</code></a>. |
| If multiple PMFs with the requested name are found, a |
| <a href="../../javax/jdo/JDOFatalUserException.html" title="class in javax.jdo"><code>JDOFatalUserException</code></a> is thrown.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>overrides</code> - a Map containing properties that override properties |
| defined in any resources loaded according to the "name" parameter</dd> |
| <dd><code>name</code> - interpreted as the name of the resource containing the PMF |
| properties, the name of the PMF, or the persistence unit name, in that |
| order; if name is null, blank or whitespace, it is interpreted as |
| indicating the anonymous <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a>.</dd> |
| <dd><code>resourceLoader</code> - the class loader to use to load properties file |
| resources; must be non-null if <code>name</code> is non-null or blank</dd> |
| <dd><code>pmfLoader</code> - the class loader to use to load the |
| <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> or |
| <code>javax.persistence.EntityManagerFactory</code> classes</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> with properties in the |
| given resource, with the given name, or with the given persitence unit name</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/Constants.html#ANONYMOUS_PERSISTENCE_MANAGER_FACTORY_NAME"><code>Constants.ANONYMOUS_PERSISTENCE_MANAGER_FACTORY_NAME</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="invokeGetPersistenceManagerFactoryOnImplementation-java.lang.String-java.util.Map-java.util.Map-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>invokeGetPersistenceManagerFactoryOnImplementation</h4> |
| <pre>protected static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> invokeGetPersistenceManagerFactoryOnImplementation(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> pmfClassName, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> overrides, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><?,?> properties, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> cl)</pre> |
| <div class="block">Invoke the getPersistenceManagerFactory method on the implementation. |
| If the overrides parameter to this method is not null, the static method |
| with Map overrides, Map properties parameters will be invoked. |
| If the overrides parameter to this method is null, the static method |
| with Map properties parameter will be invoked.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pmfClassName</code> - the name of the implementation factory class</dd> |
| <dd><code>overrides</code> - a Map of overrides</dd> |
| <dd><code>properties</code> - a Map of properties</dd> |
| <dd><code>cl</code> - the class loader to use to load the implementation class</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the PersistenceManagerFactory</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="loadPropertiesFromResource-java.lang.ClassLoader-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>loadPropertiesFromResource</h4> |
| <pre>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> loadPropertiesFromResource(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre> |
| <div class="block">Load a Properties instance by name from the class loader.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>resourceLoader</code> - the class loader from which to load the properties</dd> |
| <dd><code>name</code> - the name of the resource</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a Properties instance or null if no resource is found</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPropertiesFromJdoconfig-java.lang.String-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPropertiesFromJdoconfig</h4> |
| <pre>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> getPropertiesFromJdoconfig(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - Name of the PMF</dd> |
| <dd><code>resourceLoader</code> - ClassLoader to use for loading resources</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The properties for this PMF</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../javax/jdo/JDOHelper.html#getNamedPMFProperties-java.lang.String-java.lang.ClassLoader-java.lang.String-"><code>getNamedPMFProperties(String,ClassLoader,String)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNamedPMFProperties-java.lang.String-java.lang.ClassLoader-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNamedPMFProperties</h4> |
| <pre>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> getNamedPMFProperties(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jdoconfigResourceName)</pre> |
| <div class="block">Find and return the named <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a>'s properties, |
| or null if not found. |
| If multiple named PMF property sets with |
| the given name are found (including anonymous ones), throw |
| <a href="../../javax/jdo/JDOFatalUserException.html" title="class in javax.jdo"><code>JDOFatalUserException</code></a>. |
| This method is here only to facilitate testing; the parameter |
| "jdoconfigResourceName" in public usage should always have the value |
| given in the constant <a href="../../javax/jdo/Constants.html#JDOCONFIG_RESOURCE_NAME"><code>Constants.JDOCONFIG_RESOURCE_NAME</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - The persistence unit name; null is disallowed.</dd> |
| <dd><code>resourceLoader</code> - The ClassLoader used to load the standard JDO |
| configuration file.</dd> |
| <dd><code>jdoconfigResourceName</code> - The name of the configuration file to read. |
| In public usage, this should always be the value of |
| <a href="../../javax/jdo/Constants.html#JDOCONFIG_RESOURCE_NAME"><code>Constants.JDOCONFIG_RESOURCE_NAME</code></a>.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The named <code>PersistenceManagerFactory</code> properties if |
| found, null if not.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../javax/jdo/JDOFatalUserException.html" title="class in javax.jdo">JDOFatalUserException</a></code> - if multiple named PMF property sets are |
| found with the given name, or any other exception is encountered.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDocumentBuilderFactory--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDocumentBuilderFactory</h4> |
| <pre>protected static <a href="https://docs.oracle.com/javase/8/docs/api/javax/xml/parsers/DocumentBuilderFactory.html?is-external=true" title="class or interface in javax.xml.parsers">DocumentBuilderFactory</a> getDocumentBuilderFactory()</pre> |
| </li> |
| </ul> |
| <a name="getDefaultDocumentBuilderFactory--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDefaultDocumentBuilderFactory</h4> |
| <pre>protected static <a href="https://docs.oracle.com/javase/8/docs/api/javax/xml/parsers/DocumentBuilderFactory.html?is-external=true" title="class or interface in javax.xml.parsers">DocumentBuilderFactory</a> getDefaultDocumentBuilderFactory()</pre> |
| </li> |
| </ul> |
| <a name="getErrorHandler--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getErrorHandler</h4> |
| <pre>protected static <a href="https://docs.oracle.com/javase/8/docs/api/org/xml/sax/ErrorHandler.html?is-external=true" title="class or interface in org.xml.sax">ErrorHandler</a> getErrorHandler()</pre> |
| </li> |
| </ul> |
| <a name="getDefaultErrorHandler--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDefaultErrorHandler</h4> |
| <pre>protected static <a href="https://docs.oracle.com/javase/8/docs/api/org/xml/sax/ErrorHandler.html?is-external=true" title="class or interface in org.xml.sax">ErrorHandler</a> getDefaultErrorHandler()</pre> |
| </li> |
| </ul> |
| <a name="readNamedPMFProperties-java.net.URL-java.lang.String-javax.xml.parsers.DocumentBuilderFactory-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>readNamedPMFProperties</h4> |
| <pre>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>>> readNamedPMFProperties(<a href="https://docs.oracle.com/javase/8/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> requestedPMFName, |
| <a href="https://docs.oracle.com/javase/8/docs/api/javax/xml/parsers/DocumentBuilderFactory.html?is-external=true" title="class or interface in javax.xml.parsers">DocumentBuilderFactory</a> factory)</pre> |
| <div class="block">Reads JDO configuration file, creates a Map for each |
| persistence-manager-factory, then returns the map.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>url</code> - URL of a JDO configuration file compliant with javax/jdo/jdoconfig.xsd.</dd> |
| <dd><code>requestedPMFName</code> - The name of the requested |
| persistence unit (allows for fail-fast).</dd> |
| <dd><code>factory</code> - The <code>DocumentBuilderFactory</code> to use for XML parsing.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a Map<String,Map> holding persistence unit configurations; for the |
| anonymous persistence unit, the value of the String key is the empty string, "".</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="readPropertiesFromPMFElementAttributes-org.w3c.dom.Node-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>readPropertiesFromPMFElementAttributes</h4> |
| <pre>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a> readPropertiesFromPMFElementAttributes(<a href="https://docs.oracle.com/javase/8/docs/api/org/w3c/dom/Node.html?is-external=true" title="class or interface in org.w3c.dom">Node</a> pmfElement)</pre> |
| </li> |
| </ul> |
| <a name="readPropertiesFromPMFSubelements-org.w3c.dom.Node-java.net.URL-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>readPropertiesFromPMFSubelements</h4> |
| <pre>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a> readPropertiesFromPMFSubelements(<a href="https://docs.oracle.com/javase/8/docs/api/org/w3c/dom/Node.html?is-external=true" title="class or interface in org.w3c.dom">Node</a> pmfElement, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url)</pre> |
| </li> |
| </ul> |
| <a name="isNullOrBlank-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isNullOrBlank</h4> |
| <pre>protected static boolean isNullOrBlank(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s)</pre> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.io.File-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> propsFile)</pre> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> configured based |
| on the properties stored in the file at |
| <code>propsFile</code>. This method is equivalent to |
| invoking <a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.io.File-java.lang.ClassLoader-"><code>getPersistenceManagerFactory(File,ClassLoader)</code></a> with |
| <code>Thread.currentThread().getContextClassLoader()</code> as |
| the <code>loader</code> argument.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>propsFile</code> - the file containing the Properties</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the PersistenceManagerFactory</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.io.File-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> propsFile, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader)</pre> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> configured based |
| on the properties stored in the file at |
| <code>propsFile</code>. Creates a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> with <code>loader</code>. Any |
| <code>IOException</code>s or |
| <code>FileNotFoundException</code>s thrown during resource |
| loading will be wrapped in a <a href="../../javax/jdo/JDOFatalUserException.html" title="class in javax.jdo"><code>JDOFatalUserException</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>propsFile</code> - the file containing the Properties</dd> |
| <dd><code>loader</code> - the class loader to use to load the |
| <code>PersistenceManagerFactory</code> class</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the PersistenceManagerFactory</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.lang.String-javax.naming.Context-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jndiLocation, |
| <a href="https://docs.oracle.com/javase/8/docs/api/javax/naming/Context.html?is-external=true" title="class or interface in javax.naming">Context</a> context)</pre> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</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. This method is equivalent to invoking <a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.lang.String-javax.naming.Context-java.lang.ClassLoader-"><code>getPersistenceManagerFactory(String,Context,ClassLoader)</code></a> |
| with <code>Thread.currentThread().getContextClassLoader()</code> as |
| the <code>loader</code> argument.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>jndiLocation</code> - the JNDI location containing the |
| PersistenceManagerFactory</dd> |
| <dd><code>context</code> - the context in which to find the named |
| PersistenceManagerFactory</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the PersistenceManagerFactory</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.lang.String-javax.naming.Context-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jndiLocation, |
| <a href="https://docs.oracle.com/javase/8/docs/api/javax/naming/Context.html?is-external=true" title="class or interface in javax.naming">Context</a> context, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader)</pre> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</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. Creates a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> with |
| <code>loader</code>. Any <code>NamingException</code>s thrown |
| will be wrapped in a <a href="../../javax/jdo/JDOFatalUserException.html" title="class in javax.jdo"><code>JDOFatalUserException</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>jndiLocation</code> - the JNDI location containing the |
| PersistenceManagerFactory</dd> |
| <dd><code>context</code> - the context in which to find the named |
| PersistenceManagerFactory</dd> |
| <dd><code>loader</code> - the class loader to use to load the |
| <code>PersistenceManagerFactory</code> class</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the PersistenceManagerFactory</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.io.InputStream-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> stream)</pre> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> configured based |
| on the Properties stored in the input stream at |
| <code>stream</code>. This method is equivalent to |
| invoking <a href="../../javax/jdo/JDOHelper.html#getPersistenceManagerFactory-java.io.InputStream-java.lang.ClassLoader-"><code>getPersistenceManagerFactory(InputStream,ClassLoader)</code></a> with |
| <code>Thread.currentThread().getContextClassLoader()</code> as |
| the <code>loader</code> argument.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>stream</code> - the stream containing the Properties</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the PersistenceManagerFactory</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPersistenceManagerFactory-java.io.InputStream-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPersistenceManagerFactory</h4> |
| <pre>public static <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo">PersistenceManagerFactory</a> getPersistenceManagerFactory(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> stream, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader)</pre> |
| <div class="block">Returns a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> configured based |
| on the Properties stored in the input stream at |
| <code>stream</code>. Creates a <a href="../../javax/jdo/PersistenceManagerFactory.html" title="interface in javax.jdo"><code>PersistenceManagerFactory</code></a> with <code>loader</code>. Any |
| <code>IOException</code>s thrown during resource |
| loading will be wrapped in a <a href="../../javax/jdo/JDOFatalUserException.html" title="class in javax.jdo"><code>JDOFatalUserException</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>stream</code> - the stream containing the Properties</dd> |
| <dd><code>loader</code> - the class loader to use to load the |
| <code>PersistenceManagerFactory</code> class</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the PersistenceManagerFactory</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getEnhancer--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEnhancer</h4> |
| <pre>public static <a href="../../javax/jdo/JDOEnhancer.html" title="interface in javax.jdo">JDOEnhancer</a> getEnhancer()</pre> |
| <div class="block">Get a <code>JDOEnhancer</code> using the available enhancer(s) specified in |
| "META-INF/services/JDOEnhancer" using the context class loader.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>JDOEnhancer</code>.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../javax/jdo/JDOFatalUserException.html" title="class in javax.jdo">JDOFatalUserException</a></code> - if no available enhancer</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>3.0</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getEnhancer-java.lang.ClassLoader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEnhancer</h4> |
| <pre>public static <a href="../../javax/jdo/JDOEnhancer.html" title="interface in javax.jdo">JDOEnhancer</a> getEnhancer(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader)</pre> |
| <div class="block">Get a <code>JDOEnhancer</code> using the available enhancer(s) specified in |
| "META-INF/services/JDOEnhancer"</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>loader</code> - the loader to use for loading the JDOEnhancer class (if any)</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>JDOEnhancer</code>.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../javax/jdo/JDOFatalUserException.html" title="class in javax.jdo">JDOFatalUserException</a></code> - if no available enhancer</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>3.0</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getResources-java.lang.ClassLoader-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getResources</h4> |
| <pre>protected static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a>> getResources(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> resourceLoader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> resourceName) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block">Get resources of the resource loader. |
| Perform this operation in a doPrivileged block.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>resourceLoader</code> - ClassLoader to use for loading resources</dd> |
| <dd><code>resourceName</code> - Name of the resource</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the resources</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an error occurs accessing the resources</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/JDOHelper.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../index-all.html">Index</a></li> |
| <li><a href="../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../javax/jdo/JDOFatalUserException.html" title="class in javax.jdo"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../javax/jdo/JDONullIdentityException.html" title="class in javax.jdo"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../index.html?javax/jdo/JDOHelper.html" target="_top">Frames</a></li> |
| <li><a href="JDOHelper.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2005–2022 <a href="http://www.apache.org">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |