incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r365990 - /incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/
Date Wed, 04 Jan 2006 21:07:57 GMT
Author: clombart
Date: Wed Jan  4 13:07:48 2006
New Revision: 365990

URL: http://svn.apache.org/viewcvs?rev=365990&view=rev
Log:
Apply patchs provided by Alexandru Popescu - see GRFT-82 & GRFT-83

Modified:
    incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/AbstractAtomicTypeConverterImpl.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/BinaryTypeConverterImpl.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/BooleanTypeConverterImpl.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/ByteArrayTypeConverterImpl.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/CalendarTypeConverterImpl.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/DoubleTypeConverterImpl.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/IntTypeConverterImpl.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/LongTypeConverterImpl.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/StringTypeConverterImpl.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/TimestampTypeConverterImpl.java
    incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/UtilDateTypeConverterImpl.java

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/AbstractAtomicTypeConverterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/AbstractAtomicTypeConverterImpl.java?rev=365990&r1=365989&r2=365990&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/AbstractAtomicTypeConverterImpl.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/AbstractAtomicTypeConverterImpl.java
Wed Jan  4 13:07:48 2006
@@ -1,75 +1,85 @@
-/*
- * Copyright 2004-2005 The Apache Software Foundation or its licensors,
- *                     as applicable.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.portals.graffito.jcr.persistence.atomictypeconverter.impl;
-
-import javax.jcr.Value;
-import javax.jcr.ValueFactory;
-
-import org.apache.portals.graffito.jcr.persistence.atomictypeconverter.AtomicTypeConverter;
-
-/**
- * Abstract implementation for {@link org.apache.portals.graffito.jcr.persistence.atomictypeconverter.AtomicTypeConverter}
- *  
- * @author <a href="mailto:christophe.lombart@gmail.com">Christophe Lombart</a>
- *
- */
-public abstract class AbstractAtomicTypeConverterImpl implements AtomicTypeConverter
-{
-
-	private ValueFactory valueFactory;
-
-	/**
-	 * Constructor
-	 * @param factory The JCR Value factory to used
-	 */
-	public AbstractAtomicTypeConverterImpl(ValueFactory factory)
-	{
-		super();
-		valueFactory = factory;
-	}
-
-	/**
-	 * 
-	 * @see org.apache.portals.graffito.jcr.persistence.atomictypeconverter.AtomicTypeConverter#getValue(java.lang.Object)
-	 */
-	public abstract Value getValue(Object propValue);
-
-
-    /**
-     * 
-     * @see org.apache.portals.graffito.jcr.persistence.atomictypeconverter.AtomicTypeConverter#getObject(javax.jcr.Value)
-     */
-	public abstract Object getObject(Value value);
-
-	/**
-	 * Set the JCR value factory
-	 * 
-	 * @param valueFactory The value factory to set
-	 */
-	void setValueFactory(ValueFactory valueFactory)
-	{
-		this.valueFactory = valueFactory;
-	}
-
-	/**	
-	 * @return the JCR value factory 
-	 */
-	public ValueFactory getValueFactory()
-	{
-		return this.valueFactory;
-	}
-}
+/*
+ * Copyright 2004-2005 The Apache Software Foundation or its licensors,
+ *                     as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.portals.graffito.jcr.persistence.atomictypeconverter.impl;
+
+import javax.jcr.Value;
+import javax.jcr.ValueFactory;
+
+import org.apache.portals.graffito.jcr.persistence.atomictypeconverter.AtomicTypeConverter;
+
+/**
+ * Abstract implementation for {@link org.apache.portals.graffito.jcr.persistence.atomictypeconverter.AtomicTypeConverter}
+ *  
+ * @author <a href="mailto:christophe.lombart@gmail.com">Christophe Lombart</a>
+ *
+ */
+public abstract class AbstractAtomicTypeConverterImpl implements AtomicTypeConverter
+{
+
+	private ValueFactory valueFactory;
+
+	 /**
+	  * No-arg constructor.
+	  * When using it you should provide later the <code>javax.jcr.ValueFactory</code>.
+	  * 
+	  * @see #setValueFactory(ValueFactory)
+	  */
+	  public AbstractAtomicTypeConverterImpl()
+	 {
+	 }	
+	  
+	/**
+	 * Constructor
+	 * @param factory The JCR Value factory to used
+	 */
+	public AbstractAtomicTypeConverterImpl(ValueFactory factory)
+	{
+		super();
+		valueFactory = factory;
+	}
+
+	/**
+	 * 
+	 * @see org.apache.portals.graffito.jcr.persistence.atomictypeconverter.AtomicTypeConverter#getValue(java.lang.Object)
+	 */
+	public abstract Value getValue(Object propValue);
+
+
+    /**
+     * 
+     * @see org.apache.portals.graffito.jcr.persistence.atomictypeconverter.AtomicTypeConverter#getObject(javax.jcr.Value)
+     */
+	public abstract Object getObject(Value value);
+
+	/**
+	 * Set the JCR value factory
+	 * 
+	 * @param valueFactory The value factory to set
+	 */
+	public void setValueFactory(ValueFactory valueFactory)
+	{
+		this.valueFactory = valueFactory;
+	}
+
+	/**	
+	 * @return the JCR value factory 
+	 */
+	public ValueFactory getValueFactory()
+	{
+		return this.valueFactory;
+	}
+}

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/BinaryTypeConverterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/BinaryTypeConverterImpl.java?rev=365990&r1=365989&r2=365990&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/BinaryTypeConverterImpl.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/BinaryTypeConverterImpl.java
Wed Jan  4 13:07:48 2006
@@ -34,6 +34,17 @@
  */
 public class BinaryTypeConverterImpl extends AbstractAtomicTypeConverterImpl
 {
+    /**
+     * No-arg constructor.
+     * When using it you should provide later the <code>javax.jcr.ValueFactory</code>.
+     * 
+     * @see #setValueFactory(ValueFactory)
+     */
+    public BinaryTypeConverterImpl()
+    {
+        super();
+    }
+    
 	/**
 	 * Constructor
 	 * @param factory The JCR Value factory to used

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/BooleanTypeConverterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/BooleanTypeConverterImpl.java?rev=365990&r1=365989&r2=365990&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/BooleanTypeConverterImpl.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/BooleanTypeConverterImpl.java
Wed Jan  4 13:07:48 2006
@@ -30,6 +30,17 @@
  */
 public class BooleanTypeConverterImpl extends AbstractAtomicTypeConverterImpl
 {
+    /**
+     * No-arg constructor.
+     * When using it you should provide later the <code>javax.jcr.ValueFactory</code>.
+     * 
+     * @see #setValueFactory(ValueFactory)
+     */
+    public BooleanTypeConverterImpl()
+    {
+        super();
+    }
+    
 	/**
 	 * Constructor
 	 * @param factory The JCR Value factory to used

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/ByteArrayTypeConverterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/ByteArrayTypeConverterImpl.java?rev=365990&r1=365989&r2=365990&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/ByteArrayTypeConverterImpl.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/ByteArrayTypeConverterImpl.java
Wed Jan  4 13:07:48 2006
@@ -32,7 +32,17 @@
  */
 public class ByteArrayTypeConverterImpl extends AbstractAtomicTypeConverterImpl
 {
-
+    /**
+     * No-arg constructor.
+     * When using it you should provide later the <code>javax.jcr.ValueFactory</code>.
+     * 
+     * @see #setValueFactory(ValueFactory)
+     */
+    public ByteArrayTypeConverterImpl()
+    {
+        super();
+    }
+    
 	/**
 	 * Constructor
 	 * @param factory The JCR Value factory to used

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/CalendarTypeConverterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/CalendarTypeConverterImpl.java?rev=365990&r1=365989&r2=365990&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/CalendarTypeConverterImpl.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/CalendarTypeConverterImpl.java
Wed Jan  4 13:07:48 2006
@@ -33,7 +33,17 @@
  */
 public class CalendarTypeConverterImpl extends AbstractAtomicTypeConverterImpl
 {
-
+    /**
+     * No-arg constructor.
+     * When using it you should provide later the <code>javax.jcr.ValueFactory</code>.
+     * 
+     * @see #setValueFactory(ValueFactory)
+     */
+    public CalendarTypeConverterImpl()
+    {
+        super();
+    }
+    
 	/**
 	 * Constructor
 	 * @param factory The JCR Value factory to used

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/DoubleTypeConverterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/DoubleTypeConverterImpl.java?rev=365990&r1=365989&r2=365990&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/DoubleTypeConverterImpl.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/DoubleTypeConverterImpl.java
Wed Jan  4 13:07:48 2006
@@ -31,6 +31,17 @@
  */
 public class DoubleTypeConverterImpl extends AbstractAtomicTypeConverterImpl
 {
+    /**
+     * No-arg constructor.
+     * When using it you should provide later the <code>javax.jcr.ValueFactory</code>.
+     * 
+     * @see #setValueFactory(ValueFactory)
+     */
+    public DoubleTypeConverterImpl()
+    {
+        super();
+    }
+    
 	/**
 	 * Constructor
 	 * @param factory The JCR Value factory to used

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/IntTypeConverterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/IntTypeConverterImpl.java?rev=365990&r1=365989&r2=365990&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/IntTypeConverterImpl.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/IntTypeConverterImpl.java
Wed Jan  4 13:07:48 2006
@@ -31,7 +31,17 @@
  */
 public class IntTypeConverterImpl extends AbstractAtomicTypeConverterImpl
 {
-
+    /**
+     * No-arg constructor.
+     * When using it you should provide later the <code>javax.jcr.ValueFactory</code>.
+     * 
+     * @see #setValueFactory(ValueFactory)
+     */
+    public IntTypeConverterImpl()
+    {
+        super();
+    }
+    
 	/**
 	 * Constructor
 	 * @param factory The JCR Value factory to used

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/LongTypeConverterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/LongTypeConverterImpl.java?rev=365990&r1=365989&r2=365990&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/LongTypeConverterImpl.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/LongTypeConverterImpl.java
Wed Jan  4 13:07:48 2006
@@ -32,7 +32,17 @@
  */
 public class LongTypeConverterImpl extends AbstractAtomicTypeConverterImpl
 {
-
+    /**
+     * No-arg constructor.
+     * When using it you should provide later the <code>javax.jcr.ValueFactory</code>.
+     * 
+     * @see #setValueFactory(ValueFactory)
+     */
+    public LongTypeConverterImpl()
+    {
+        super();
+    }
+    
 	/**
 	 * Constructor
 	 * @param factory The JCR Value factory to used

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/StringTypeConverterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/StringTypeConverterImpl.java?rev=365990&r1=365989&r2=365990&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/StringTypeConverterImpl.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/StringTypeConverterImpl.java
Wed Jan  4 13:07:48 2006
@@ -32,6 +32,17 @@
  */
 public class StringTypeConverterImpl extends AbstractAtomicTypeConverterImpl
 {
+    /**
+     * No-arg constructor.
+     * When using it you should provide later the <code>javax.jcr.ValueFactory</code>.
+     * 
+     * @see #setValueFactory(ValueFactory)
+     */
+    public StringTypeConverterImpl()
+    {
+        super();
+    }
+    
 	/**
 	 * Constructor
 	 * @param factory The JCR Value factory to used

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/TimestampTypeConverterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/TimestampTypeConverterImpl.java?rev=365990&r1=365989&r2=365990&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/TimestampTypeConverterImpl.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/TimestampTypeConverterImpl.java
Wed Jan  4 13:07:48 2006
@@ -34,6 +34,17 @@
  */
 public class TimestampTypeConverterImpl extends AbstractAtomicTypeConverterImpl
 {
+    /**
+     * No-arg constructor.
+     * When using it you should provide later the <code>javax.jcr.ValueFactory</code>.
+     * 
+     * @see #setValueFactory(ValueFactory)
+     */
+    public TimestampTypeConverterImpl()
+    {
+        super();
+    }
+    
 	/**
 	 * Constructor
 	 * @param factory The JCR Value factory to used

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/UtilDateTypeConverterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/UtilDateTypeConverterImpl.java?rev=365990&r1=365989&r2=365990&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/UtilDateTypeConverterImpl.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/atomictypeconverter/impl/UtilDateTypeConverterImpl.java
Wed Jan  4 13:07:48 2006
@@ -33,7 +33,17 @@
  */
 public class UtilDateTypeConverterImpl extends AbstractAtomicTypeConverterImpl
 {
-
+    /**
+     * No-arg constructor.
+     * When using it you should provide later the <code>javax.jcr.ValueFactory</code>.
+     * 
+     * @see #setValueFactory(ValueFactory)
+     */
+    public UtilDateTypeConverterImpl()
+    {
+        super();
+    }
+    
 	/**
 	 * Constructor
 	 * @param factory The JCR Value factory to used



Mime
View raw message