db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r453374 - /db/ojb/trunk/src/java/org/apache/ojb/broker/accesslayer/conversions/GUID2StringFieldConversion.java
Date Thu, 05 Oct 2006 20:38:48 GMT
Author: arminw
Date: Thu Oct  5 13:38:47 2006
New Revision: 453374

URL: http://svn.apache.org/viewvc?view=rev&rev=453374
Log:
deprecate this class, no need to use GUID objects because the guid value is always string
based

Modified:
    db/ojb/trunk/src/java/org/apache/ojb/broker/accesslayer/conversions/GUID2StringFieldConversion.java

Modified: db/ojb/trunk/src/java/org/apache/ojb/broker/accesslayer/conversions/GUID2StringFieldConversion.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/java/org/apache/ojb/broker/accesslayer/conversions/GUID2StringFieldConversion.java?view=diff&rev=453374&r1=453373&r2=453374
==============================================================================
--- db/ojb/trunk/src/java/org/apache/ojb/broker/accesslayer/conversions/GUID2StringFieldConversion.java
(original)
+++ db/ojb/trunk/src/java/org/apache/ojb/broker/accesslayer/conversions/GUID2StringFieldConversion.java
Thu Oct  5 13:38:47 2006
@@ -14,12 +14,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 import org.apache.ojb.broker.util.GUID;
 
 /**
- * this implementation of the FieldConversion interface converts
+ * This implementation of the FieldConversion interface converts
  * between GUIDs and their String representation.
- * @author Thomas Mahler
+ *
+ * @deprecated 
  * @version $Id$
  */
 public class GUID2StringFieldConversion implements FieldConversion
@@ -30,10 +32,10 @@
      */
     public Object javaToSql(Object source)
     {
-        if (source instanceof GUID)
+        if(source instanceof GUID)
         {
-        	GUID guid = (GUID) source;
-        	return guid.toString();
+            GUID guid = (GUID) source;
+            return guid.toString();
         }
         return source;
     }
@@ -42,12 +44,12 @@
      * @see FieldConversion#sqlToJava(Object)
      */
     public Object sqlToJava(Object source)
-    {   	
-    	if (source instanceof String)
-    	{
-        	return new GUID((String) source);
-    	}
-    	return source;
+    {
+        if(source instanceof String)
+        {
+            return new GUID((String) source);
+        }
+        return source;
     }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message