openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r908674 - /openjpa/branches/1.0.x/openjpa-project/src/doc/manual/ref_guide_caching.xml
Date Wed, 10 Feb 2010 22:10:25 GMT
Author: mikedd
Date: Wed Feb 10 22:10:22 2010
New Revision: 908674

URL: http://svn.apache.org/viewvc?rev=908674&view=rev
Log:
add doc for datacache type inclusion/exclusion

Modified:
    openjpa/branches/1.0.x/openjpa-project/src/doc/manual/ref_guide_caching.xml

Modified: openjpa/branches/1.0.x/openjpa-project/src/doc/manual/ref_guide_caching.xml
URL: http://svn.apache.org/viewvc/openjpa/branches/1.0.x/openjpa-project/src/doc/manual/ref_guide_caching.xml?rev=908674&r1=908673&r2=908674&view=diff
==============================================================================
--- openjpa/branches/1.0.x/openjpa-project/src/doc/manual/ref_guide_caching.xml (original)
+++ openjpa/branches/1.0.x/openjpa-project/src/doc/manual/ref_guide_caching.xml Wed Feb 10
22:10:22 2010
@@ -216,13 +216,51 @@
 }
 </programlisting>
             </example>
+
+            <para>
+            <indexterm>
+                <primary>caching</primary>
+                <secondary>exclusions</secondary>
+            </indexterm>
+            Entities may be explicitly excluded from the cache by providing a list of fully
qualified class names in the ExcludedTypes argument. The entities provided via ExcludedTypes
will not be cached regardless of the @DataCache annotation. 
+            </para>
+            <example id="ex_exclude_types_from_cache">
+                <title>
+                    Excluding entities
+                </title>
+                <para>
+                    Exclude entities foo.bar.Person and foo.bar.Employee from the cache.

+                    <programlisting>
+                    &lt;property name="openjpa.DataCache" value="true(ExcludedTypes=foo.bar.Person;foo.bar.Employee)"/&gt;
+                    </programlisting>
+                </para>
+            </example>
+
+            <para>
+            <indexterm>
+                <primary>caching</primary>
+                <secondary>inclusions</secondary>
+            </indexterm>
+            Entities may be explicitly included from the cache by providing a list of fully
qualified class names in the Types argument. The entities provided via ExcludedTypes will
not cached regardless of the @DataCache annotation. Any entities which are not included in
this list will not be cached. 
+            </para>
+            <example id="ex_include_types_in_cache">
+                <title>
+                    Including entities
+                </title>
+                <para>
+                    Include only entity foo.bar.FullTimeEmployee from the cache. 
+                    <programlisting>
+                    &lt;property name="openjpa.DataCache" value="true(Types=foo.bar.FullTimeEmployee)"/&gt;
+                    </programlisting>
+                </para>
+            </example>
             <para>
 See the <ulink url="../javadoc/org/apache/openjpa/persistence/DataCache.html">
 <classname>org.apache.openjpa.persistence.DataCache</classname></ulink>
Javadoc
 for more information on the <classname>DataCache</classname> annotation.
             </para>
             <para>
-            <indexterm>
+            <indexterm>mvn clean deploy -Pjavadoc-profile,docbook-profile,sign-release
                 <primary>
                     caching
                 </primary>



Mime
View raw message