Return-Path: X-Original-To: apmail-cayenne-commits-archive@www.apache.org Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 667B7D159 for ; Tue, 30 Oct 2012 05:46:31 +0000 (UTC) Received: (qmail 68412 invoked by uid 500); 30 Oct 2012 05:46:31 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 68310 invoked by uid 500); 30 Oct 2012 05:46:29 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 68252 invoked by uid 99); 30 Oct 2012 05:46:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 05:46:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,LOTS_OF_MONEY X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 05:45:51 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 3994A2388CD7 for ; Tue, 30 Oct 2012 05:43:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r836565 [16/47] - in /websites/staging/cayenne/trunk/content: ./ doc12/ doc20/ doc30/ Date: Tue, 30 Oct 2012 05:43:02 -0000 To: commits@cayenne.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121030054330.3994A2388CD7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: websites/staging/cayenne/trunk/content/doc12/using-jndi.html ============================================================================== --- websites/staging/cayenne/trunk/content/doc12/using-jndi.html (original) +++ websites/staging/cayenne/trunk/content/doc12/using-jndi.html Tue Oct 30 05:42:47 2012 @@ -1,100 +1,5 @@ +Title: Apache Cayenne » Using JNDI - - - -Apache Cayenne » Using JNDI - - - - - - - - - -
- - - -
- - - -
- -
-

Cayenne can be setup to obtain a DataSource via JNDI, instead of using its own connection pool. To do that Cayenne DataNodes must be configured to use JNDIDataSourceFactory. This can be done in the modeler as shown on the pictures below.

@@ -189,21 +94,3 @@ </ResourceParams> </Context>
-
- -
- -
- - - - - - \ No newline at end of file Modified: websites/staging/cayenne/trunk/content/doc12/using-orderings.html ============================================================================== --- websites/staging/cayenne/trunk/content/doc12/using-orderings.html (original) +++ websites/staging/cayenne/trunk/content/doc12/using-orderings.html Tue Oct 30 05:42:47 2012 @@ -1,100 +1,5 @@ +Title: Apache Cayenne » Using Orderings - - - -Apache Cayenne » Using Orderings - - - - - - - - - -
- - - -
- - - -
- -
-

To sort SelectQuery results, orderings are used. Orderings use path expressions discussed in the previous section to identify the attributes that must be used in sorting. For example to order results by artist name, the following code can be used:

@@ -141,21 +46,3 @@ orderings.add(Ordering.orderList(list, orderings);
-
- -
- -
- - - - - - \ No newline at end of file Modified: websites/staging/cayenne/trunk/content/doc12/web-applications.html ============================================================================== --- websites/staging/cayenne/trunk/content/doc12/web-applications.html (original) +++ websites/staging/cayenne/trunk/content/doc12/web-applications.html Tue Oct 30 05:42:47 2012 @@ -1,100 +1,5 @@ +Title: Apache Cayenne » Web Applications - - - -Apache Cayenne » Web Applications - - - - - - - - - -
- - - - -
- -
- -
- - - - - - \ No newline at end of file Modified: websites/staging/cayenne/trunk/content/doc20/accessing-pk-and-fk-values.html ============================================================================== --- websites/staging/cayenne/trunk/content/doc20/accessing-pk-and-fk-values.html (original) +++ websites/staging/cayenne/trunk/content/doc20/accessing-pk-and-fk-values.html Tue Oct 30 05:42:47 2012 @@ -1,100 +1,5 @@ +Title: Apache Cayenne » Accessing PK and FK values - - - -Apache Cayenne » Accessing PK and FK values - - - - - - - - - -
- - - -
- - - -
- -
-

Normally it is not advisable to map primary and foreign key columns (PK and FK) as Java class properties (ObjAttributes). When reverse engineering of the database is done using CayenneModeler, the produced mapping will reflect that – PKs and FKs will not be included in the Java class. However, sometimes an application requires access to these values.

For a generic and easy API to obtain an object primary key or to find an object from a known PK, skip to the next chapter on DataObjectUtils class.
@@ -175,21 +80,3 @@ }
-
- -
- -
- - - - - - \ No newline at end of file Modified: websites/staging/cayenne/trunk/content/doc20/acknowledgments.html ============================================================================== --- websites/staging/cayenne/trunk/content/doc20/acknowledgments.html (original) +++ websites/staging/cayenne/trunk/content/doc20/acknowledgments.html Tue Oct 30 05:42:47 2012 @@ -1,117 +1,4 @@ +Title: Apache Cayenne » Acknowledgments - - - -Apache Cayenne » Acknowledgments - - - - - - - - - -
- - - -
- - - -
- -
-


We would like to thank our dedicated team of contributors - for making this project possible, early adopters - for taking all the pain to help us make a usable product, other users - for providing feedback, comments, patches and bug reports.

-
- -
- -
- -
- - - - \ No newline at end of file Modified: websites/staging/cayenne/trunk/content/doc20/ant-tasks.html ============================================================================== --- websites/staging/cayenne/trunk/content/doc20/ant-tasks.html (original) +++ websites/staging/cayenne/trunk/content/doc20/ant-tasks.html Tue Oct 30 05:42:47 2012 @@ -1,100 +1,5 @@ +Title: Apache Cayenne » Ant Tasks - - - -Apache Cayenne » Ant Tasks - - - - - - - - - -
- - - -
- - - -
- -
-

Cayenne ships with Ant tasks that provide Ant frontend to a number of useful operations in Cayenne. The following tasks are included:

    @@ -128,21 +33,3 @@ -
    - -
- -
- -
- - - - \ No newline at end of file Modified: websites/staging/cayenne/trunk/content/doc20/bnf-for-expressionparser.html ============================================================================== --- websites/staging/cayenne/trunk/content/doc20/bnf-for-expressionparser.html (original) +++ websites/staging/cayenne/trunk/content/doc20/bnf-for-expressionparser.html Tue Oct 30 05:42:47 2012 @@ -1,100 +1,5 @@ +Title: Apache Cayenne » BNF for ExpressionParser - - - -Apache Cayenne » BNF for ExpressionParser - - - - - - - - - -
- - - -
- - - -
- -
-

BNF for ExpressionParser.jj

@@ -129,21 +34,3 @@ namedParameter ::= "$" <P pathExpression ::= ( <PROPERTY_PATH> | "obj:" <PROPERTY_PATH> | "db:" <PROPERTY_PATH> )
-
- -
- -
- -
- - - - \ No newline at end of file Modified: websites/staging/cayenne/trunk/content/doc20/building-expressions.html ============================================================================== --- websites/staging/cayenne/trunk/content/doc20/building-expressions.html (original) +++ websites/staging/cayenne/trunk/content/doc20/building-expressions.html Tue Oct 30 05:42:47 2012 @@ -1,100 +1,5 @@ +Title: Apache Cayenne » Building Expressions - - - -Apache Cayenne » Building Expressions - - - - - - - - - -
- - - -
- - - -
- -
-

The Expression class (org.apache.cayenne.exp.Expression) provides Expression.fromString(String) as a convenience method to create expressions of arbitrary complexity. The structure of expressions is fairly intuitive, with the formal grammar showing the formal syntax and operators currently supported, but this topic is devoted to showing examples of usage. To demonstrate, an expression that matches Paintings with names that start with "A" and a price less than $1000.00 can be written as:

@@ -263,21 +168,3 @@ values = dataContext.performQuery(query)

Even though the specified expression has two named parameters, the "gallery" key has been omitted. Cayenne will automatically translate the expression into "artist.artistName = $artist" (which becomes "artist.artistName = 'Salvador Dali'"). This feature allows a restrictive search qualifier to be written and prompt the user for search criteria. If the user leaves values out, the expression can automatically widen to be a less restrictive search by omitting the keys for the map.

-
- -
- -
- -
- - - - \ No newline at end of file Modified: websites/staging/cayenne/trunk/content/doc20/caching-lookup-tables.html ============================================================================== --- websites/staging/cayenne/trunk/content/doc20/caching-lookup-tables.html (original) +++ websites/staging/cayenne/trunk/content/doc20/caching-lookup-tables.html Tue Oct 30 05:42:47 2012 @@ -1,100 +1,5 @@ +Title: Apache Cayenne » Caching Lookup Tables - - - -Apache Cayenne » Caching Lookup Tables - - - - - - - - - -
- - - -
- - - -
- -
-

Query result caching feature can be used to implement caching of lookup tables. "Lookup" or "configuration" tables can be loosely defined as small tables that change rarely and mostly used in read-only fashion. Examples of such tables are COUNTRY, USER_TYPE, AREA_CODE, etc. Often data from such tables is displayed in a combo box or dropdown.

@@ -106,21 +11,3 @@
  • Whenever a list of countries is needed, use a local DataContext to get it from cache - context.performQuery("AllCountries", false).
  • -
    - -
    - -
    - -
    - - - - \ No newline at end of file Modified: websites/staging/cayenne/trunk/content/doc20/caching-query-results.html ============================================================================== --- websites/staging/cayenne/trunk/content/doc20/caching-query-results.html (original) +++ websites/staging/cayenne/trunk/content/doc20/caching-query-results.html Tue Oct 30 05:42:47 2012 @@ -1,100 +1,5 @@ +Title: Apache Cayenne » Caching Query Results - - - -Apache Cayenne » Caching Query Results - - - - - - - - - -
    - - - -
    - - - -
    - -
    -

    Cayenne provides a way to cache query results, avoiding unneeded database trips for the frequently used queries. Caching policy is configured per query. Policy can be set via the API or in CayenneModeler.

    @@ -220,21 +125,3 @@ List objects2 = context.performQuery(
    -
    - -
    - -
    - -
    - - - - \ No newline at end of file Modified: websites/staging/cayenne/trunk/content/doc20/cayenne-contract.html ============================================================================== --- websites/staging/cayenne/trunk/content/doc20/cayenne-contract.html (original) +++ websites/staging/cayenne/trunk/content/doc20/cayenne-contract.html Tue Oct 30 05:42:47 2012 @@ -1,100 +1,5 @@ +Title: Apache Cayenne » Cayenne Contract - - - -Apache Cayenne » Cayenne Contract - - - - - - - - - -
    - - - -
    - - - -
    - -
    -

    There is an implied contract between persistent objects and Cayenne runtime. Cayenne expects persistent objects to follow certain conventions, while itself providing management of the various aspects of a persistent object graph.

    Persistent Object Requirements

    @@ -193,21 +98,3 @@ assertFalse(b1.getListOfA().contains(a1)

    Lazy Object Resolution

    One of the object states is HOLLOW, corresponding to unresolved objects that only have their PK known. Most often HOLLOW objects are returned from to-one relationships. Whenever such object is "touched" by the user (i.e. a setter or a getter is invoked), Cayenne automatically infaltes it with the database values.

    -
    - -
    - -
    - -
    - - - - \ No newline at end of file Modified: websites/staging/cayenne/trunk/content/doc20/cayenne-datamaps.html ============================================================================== --- websites/staging/cayenne/trunk/content/doc20/cayenne-datamaps.html (original) +++ websites/staging/cayenne/trunk/content/doc20/cayenne-datamaps.html Tue Oct 30 05:42:47 2012 @@ -1,120 +1,7 @@ +Title: Apache Cayenne » Cayenne DataMaps - - - -Apache Cayenne » Cayenne DataMaps - - - - - - - - - - - - - - \ No newline at end of file