Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 72356 invoked from network); 19 Jan 2009 13:04:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jan 2009 13:04:06 -0000 Received: (qmail 38256 invoked by uid 500); 19 Jan 2009 13:04:06 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 38232 invoked by uid 500); 19 Jan 2009 13:04:06 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 38216 invoked by uid 99); 19 Jan 2009 13:04:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jan 2009 05:04:06 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Mon, 19 Jan 2009 13:04:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3C35E2388986; Mon, 19 Jan 2009 05:03:43 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r735680 - /jackrabbit/sandbox/jackrabbit-jdbc2jcr/src/main/java/org/apache/jackrabbit/jdbc/jdbc.cnd Date: Mon, 19 Jan 2009 13:03:43 -0000 To: commits@jackrabbit.apache.org From: jukka@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090119130343.3C35E2388986@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jukka Date: Mon Jan 19 05:03:42 2009 New Revision: 735680 URL: http://svn.apache.org/viewvc?rev=735680&view=rev Log: jdbc2jcr: document the jdbc view definition node types Modified: jackrabbit/sandbox/jackrabbit-jdbc2jcr/src/main/java/org/apache/jackrabbit/jdbc/jdbc.cnd Modified: jackrabbit/sandbox/jackrabbit-jdbc2jcr/src/main/java/org/apache/jackrabbit/jdbc/jdbc.cnd URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-jdbc2jcr/src/main/java/org/apache/jackrabbit/jdbc/jdbc.cnd?rev=735680&r1=735679&r2=735680&view=diff ============================================================================== --- jackrabbit/sandbox/jackrabbit-jdbc2jcr/src/main/java/org/apache/jackrabbit/jdbc/jdbc.cnd (original) +++ jackrabbit/sandbox/jackrabbit-jdbc2jcr/src/main/java/org/apache/jackrabbit/jdbc/jdbc.cnd Mon Jan 19 05:03:42 2009 @@ -1,5 +1,37 @@ -[jdbc:view] > nt:unstructured +// Column definition node +// The name of the node is used as the column name in the generated SQL view +[jdbc:column] + // By default the column maps to a property with the same name as the + // column definition node, but you can specify any relative property path + // in the "path" property to make that property mapped to the column. + - path (path) -[jdbc:column] > nt:unstructured + // By default the column type is a string, but you can override that + // by specifying any JCR value type (as seen in the PropertyType.TYPENAME + // constants) in the "type" property + - type (string) + + // Columns are by default single-valued (showing just the first value + // of a multi-valued property), but you can make a column multi-valued + // by setting the "multiple" property to "true" + - multiple (boolean) + +// View definition node +// The name of the node is used as the name of the generated SQL view +[jdbc:view] orderable + // Alternative name for the generated SQL view. Set this property to + // override the default of using the node name as the view name + - name (string) + + // The view query. All nodes that match the given JCR query are included + // in the generated SQL view. Default is the XPath query "//*". + - query (string) + + // The query language. Set to "sql" if the view query is expressed in SQL. + // Default value is "xpath". + - language (string) + + // Column definitions for this view + * (jdbc:column) = jdbc:column