jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r554958 - in /jackrabbit/trunk/contrib/spi: commons/src/main/java/org/apache/jackrabbit/value/QValueFactoryImpl.java spi/src/main/java/org/apache/jackrabbit/spi/QValue.java
Date Tue, 10 Jul 2007 14:20:00 GMT
Author: reschke
Date: Tue Jul 10 07:19:59 2007
New Revision: 554958

URL: http://svn.apache.org/viewvc?view=rev&rev=554958
Log:
JCR-1018: add QValue.getCalendar() method, and add a dummy implementation to QValueFactoryImpl.

Modified:
    jackrabbit/trunk/contrib/spi/commons/src/main/java/org/apache/jackrabbit/value/QValueFactoryImpl.java
    jackrabbit/trunk/contrib/spi/spi/src/main/java/org/apache/jackrabbit/spi/QValue.java

Modified: jackrabbit/trunk/contrib/spi/commons/src/main/java/org/apache/jackrabbit/value/QValueFactoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/commons/src/main/java/org/apache/jackrabbit/value/QValueFactoryImpl.java?view=diff&rev=554958&r1=554957&r2=554958
==============================================================================
--- jackrabbit/trunk/contrib/spi/commons/src/main/java/org/apache/jackrabbit/value/QValueFactoryImpl.java
(original)
+++ jackrabbit/trunk/contrib/spi/commons/src/main/java/org/apache/jackrabbit/value/QValueFactoryImpl.java
Tue Jul 10 07:19:59 2007
@@ -246,6 +246,13 @@
         }
 
         /**
+         * @see QValue#getCalendar()
+         */
+        public Calendar getCalendar() throws RepositoryException {
+            throw new RuntimeException("implementation missing");
+        }
+
+        /**
          * @see QValue#getPath()
          */
         public Path getPath() throws RepositoryException {
@@ -534,6 +541,13 @@
          */
         public QName getQName() throws RepositoryException {
             throw new UnsupportedOperationException();
+        }
+
+        /**
+         * @see QValue#getCalendar()
+         */
+        public Calendar getCalendar() throws RepositoryException {
+           throw new UnsupportedOperationException();
         }
 
         /**

Modified: jackrabbit/trunk/contrib/spi/spi/src/main/java/org/apache/jackrabbit/spi/QValue.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/spi/src/main/java/org/apache/jackrabbit/spi/QValue.java?view=diff&rev=554958&r1=554957&r2=554958
==============================================================================
--- jackrabbit/trunk/contrib/spi/spi/src/main/java/org/apache/jackrabbit/spi/QValue.java (original)
+++ jackrabbit/trunk/contrib/spi/spi/src/main/java/org/apache/jackrabbit/spi/QValue.java Tue
Jul 10 07:19:59 2007
@@ -23,6 +23,7 @@
 import javax.jcr.PropertyType;
 import javax.jcr.Property;
 import java.io.InputStream;
+import java.util.Calendar;
 
 /**
  * <code>QValue</code>...
@@ -88,6 +89,14 @@
      * @throws RepositoryException if an error occurs.
      */
     public QName getQName() throws RepositoryException;
+
+    /**
+     * Returns a <code>Calendar</code> representation of this value.
+     *
+     * @return A <code>Calendar</code> representation of this value.
+     * @throws RepositoryException if an error occurs.
+     */
+    public Calendar getCalendar() throws RepositoryException;
 
     /**
      * Returns a <code>Path</code> representation of this value.



Mime
View raw message