jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r785602 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/sql2/Parser.java
Date Wed, 17 Jun 2009 13:46:06 GMT
Author: thomasm
Date: Wed Jun 17 13:46:06 2009
New Revision: 785602

URL: http://svn.apache.org/viewvc?rev=785602&view=rev
Log:
JCR-2157 SQL2 parser: Support CAST

Modified:
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/sql2/Parser.java

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/sql2/Parser.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/sql2/Parser.java?rev=785602&r1=785601&r2=785602&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/sql2/Parser.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/sql2/Parser.java
Wed Jun 17 13:46:06 2009
@@ -506,20 +506,15 @@
         } else if(readIf("BOOLEAN")) {
             return valueFactory.createValue(value.getBoolean());
         } else if(readIf("NAME")) {
-            // TODO getName
-            return valueFactory.createValue(value.getString());
+            return valueFactory.createValue(value.getString(), PropertyType.NAME);
         } else if(readIf("PATH")) {
-            // TODO getPath
-            return valueFactory.createValue(value.getString());
+            return valueFactory.createValue(value.getString(), PropertyType.PATH);
         } else if(readIf("REFERENCE")) {
-            // TODO getReference
-            return valueFactory.createValue(value.getString());
+            return valueFactory.createValue(value.getString(), PropertyType.REFERENCE);
         } else if(readIf("WEAKREFERENCE")) {
-            // TODO getWeakReference
-            return valueFactory.createValue(value.getString());
+            return valueFactory.createValue(value.getString(), PropertyType.WEAKREFERENCE);
         } else if(readIf("URI")) {
-            // TODO getURI
-            return valueFactory.createValue(value.getString());
+            return valueFactory.createValue(value.getString(), PropertyType.URI);
         } else {
             throw getSyntaxError("data type (STRING|BINARY|...)");
         }



Mime
View raw message