Author: pcl
Date: Fri Oct 19 00:00:26 2007
New Revision: 586282
URL: http://svn.apache.org/viewvc?rev=586282&view=rev
Log:
OPENJPA-317. Documentation changes.
Modified:
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_caching.xml
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_optimization.xml
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_pc.xml
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_remote.xml
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_runtime.xml
Modified: openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_caching.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_caching.xml?rev=586282&r1=586281&r2=586282&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_caching.xml (original)
+++ openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_caching.xml Fri Oct 19 00:00:26 2007
@@ -639,11 +639,11 @@
// temporarily disable query caching for all queries created from em
OpenJPAEntityManager oem = OpenJPAPersistence.cast(em);
-oem.getFetchPlan ().setQueryResultCache(false);
+oem.getFetchPlan ().setQueryResultCacheEnabled(false);
// re-enable caching for a particular query
OpenJPAQuery oq = oem.createQuery(...);
-oq.getFetchPlan().setQueryResultCache(true);
+oq.getFetchPlan().setQueryResultCacheEnabled(true);
Modified: openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml?rev=586282&r1=586281&r2=586282&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml (original)
+++ openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml Fri Oct 19 00:00:26 2007
@@ -2773,7 +2773,7 @@
Query q = em.createQuery("select m from Magazine m where m.title = 'JDJ'");
OpenJPAQuery kq = OpenJPAPersistence.cast(q);
JDBCFetchPlan fetch = (JDBCFetchPlan) kq.getFetchPlan ();
-fetch.setJoinSyntax(JDBCFetchPlan.JOIN_SYNTAX_SQL92);
+fetch.setJoinSyntax(JoinSyntax.SQL92);
List results = q.getResultList();
@@ -3266,9 +3266,9 @@
OpenJPAQuery kq = OpenJPAPersistence.cast(q);
JDBCFetchPlan fetch = (JDBCFetchPlan) kq.getFetchPlan();
fetch.setFetchBatchSize(20);
-fetch.setResultSetType(ResultSet.TYPE_SCROLL_INSENSITIVE);
-fetch.setFetchDirection(ResultSet.FETCH_FORWARD);
-fetch.setLRSSize(JDBCFetchPlan.SIZE_LAST);
+fetch.setResultSetType(ResultSetType.SCROLL_INSENSITIVE);
+fetch.setFetchDirection(FetchDirection.FORWARD);
+fetch.setLRSSizeAlgorithm(LRSSizeAlgorithm.LAST);
List results = q.getResultList();
Modified: openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_optimization.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_optimization.xml?rev=586282&r1=586281&r2=586282&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_optimization.xml (original)
+++ openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_optimization.xml Fri Oct 19 00:00:26 2007
@@ -154,7 +154,7 @@
perform periodic flushes during your transaction to reduce its memory
requirements. See the Javadoc:
-OpenJPAEntityManager.setLargeTransaction. Note that transactions in
+OpenJPAEntityManager.setTrackChangesByType. Note that transactions in
large mode have to more aggressively flush items from the data cache.
If your transaction will visit objects that you know are very unlikely to be
Modified: openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_pc.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_pc.xml?rev=586282&r1=586281&r2=586282&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_pc.xml (original)
+++ openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_pc.xml Fri Oct 19 00:00:26 2007
@@ -2405,8 +2405,8 @@
Query q = em.createQuery("select p from Person p where p.address.state = 'TX'");
OpenJPAQuery kq = OpenJPAPersistence.cast(q);
JDBCFetchPlan fetch = (JDBCFetchPlan) kq.getFetchPlan();
-fetch.setEagerFetchMode(JDBCFetchPlan.EAGER_PARALLEL);
-fetch.setSubclassFetchMode(JDBCFetchPlan.EAGER_JOIN);
+fetch.setEagerFetchMode(FetchMode.PARALLEL);
+fetch.setSubclassFetchMode(FetchMode.JOIN);
List results = q.getResultList();
Modified: openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_remote.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_remote.xml?rev=586282&r1=586281&r2=586282&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_remote.xml (original)
+++ openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_remote.xml Fri Oct 19 00:00:26 2007
@@ -125,7 +125,7 @@
You can stop OpenJPA from assuming the transaction will commit by invoking
-OpenJPAEntityManager.setRollbackOnly prior to detaching
+EntityTransaction.setRollbackOnly prior to detaching
your objects. Setting the RollbackOnly flag prevents OpenJPA
from flushing when detaching dirty objects; instead OpenJPA just runs its
pre-flush actions (see the OpenJPAEntityManager.preFlush
@@ -344,12 +344,18 @@
for controlling detached state:
-public static final int DETACH_LOADED;
-public static final int DETACH_FETCH_GROUPS;
-public static final int DETACH_ALL;
-public int getDetachState();
-public void setDetachState(int mode);
+public DetachStateType getDetachState();
+public void setDetachState(DetachStateType type);
+
+The DetachStateType enum contains the following values:
+
+
+enum DetachStateType {
+ FETCH_GROUPS,
+ LOADED,
+ ALL
+}
Detached State Field
Modified: openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_runtime.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_runtime.xml?rev=586282&r1=586281&r2=586282&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_runtime.xml (original)
+++ openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_runtime.xml Fri Oct 19 00:00:26 2007
@@ -1755,8 +1755,8 @@
public void removeTransactionListener(Object listener);
-These OpenJPAEntityManager methods allow you to add and
-remove listeners.
+These OpenJPAEntityManagerSPI methods allow you to add
+and remove listeners. These methods are outside the bounds of the published OpenJPA APIs, and are subject to change in the future.
For details on the transaction framework, see the