jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
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 GMT
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 = 'http://jackrabbit.apache.org/ns/2008/jdbc'>
 
-[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



Mime
View raw message