db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1402633 - /db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/typemapping/TypeMap.java
Date Fri, 26 Oct 2012 19:46:13 GMT
Author: tfischer
Date: Fri Oct 26 19:46:12 2012
New Revision: 1402633

URL: http://svn.apache.org/viewvc?rev=1402633&view=rev
Log:
add javadoc

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/typemapping/TypeMap.java

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/typemapping/TypeMap.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/typemapping/TypeMap.java?rev=1402633&r1=1402632&r2=1402633&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/typemapping/TypeMap.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/typemapping/TypeMap.java
Fri Oct 26 19:46:12 2012
@@ -88,30 +88,53 @@ public final class TypeMap
         TEXT_TYPES = Collections.unmodifiableSet(textTypes);
     }
 
+    /** A sample java object for CHAR columns. */
     public static final String CHAR_OBJECT_TYPE = "\"\"";
+    /** A sample java object for VARCHAR columns. */
     public static final String VARCHAR_OBJECT_TYPE = "\"\"";
+    /** A sample java object for LONGVARCHAR columns. */
     public static final String LONGVARCHAR_OBJECT_TYPE = "\"\"";
+    /** A sample java object for CLOB columns. */
     public static final String CLOB_OBJECT_TYPE = "\"\"";
-    public static final String NUMERIC_OBJECT_TYPE 
+    /** A sample java object for NUMERIC columns. */
+    public static final String NUMERIC_OBJECT_TYPE
             = "new java.math.BigDecimal((double) 0)";
-    public static final String DECIMAL_OBJECT_TYPE 
+    /** A sample java object for DECIMAL columns. */
+    public static final String DECIMAL_OBJECT_TYPE
             = "new java.math.BigDecimal((double) 0)";
+    /** A sample java object for BIT columns. */
     public static final String BIT_OBJECT_TYPE = "new Boolean(true)";
+    /** A sample java object for TINYINT columns. */
     public static final String TINYINT_OBJECT_TYPE = "Byte.valueOf((byte) 0)";
+    /** A sample java object for SMALLINT columns. */
     public static final String SMALLINT_OBJECT_TYPE = "Short.valueOf((short) 0)";
+    /** A sample java object for INTEGER columns. */
     public static final String INTEGER_OBJECT_TYPE = "Integer.valueOf(0)";
+    /** A sample java object for BIGINT columns. */
     public static final String BIGINT_OBJECT_TYPE = "Long.valueOf(0)";
+    /** A sample java object for REAL columns. */
     public static final String REAL_OBJECT_TYPE = "new Float(0)";
+    /** A sample java object for FLOAT columns. */
     public static final String FLOAT_OBJECT_TYPE = "new Double(0)";
+    /** A sample java object for DOUBLE columns. */
     public static final String DOUBLE_OBJECT_TYPE = "new Double(0)";
+    /** A sample java object for BINARY columns. */
     public static final String BINARY_OBJECT_TYPE = "new Object()"; //?
+    /** A sample java object for VARBINARY columns. */
     public static final String VARBINARY_OBJECT_TYPE = "new Object()"; //?
+    /** A sample java object for LONGVARBINARY columns. */
     public static final String LONGVARBINARY_OBJECT_TYPE = "new Object()"; //?
+    /** A sample java object for BLOB columns. */
     public static final String BLOB_OBJECT_TYPE = "new Object()"; //?
+    /** A sample java object for DATE columns. */
     public static final String DATE_OBJECT_TYPE = "new Date()";
+    /** A sample java object for TIME columns. */
     public static final String TIME_OBJECT_TYPE = "new Date()";
+    /** A sample java object for TIMESTAMP columns. */
     public static final String TIMESTAMP_OBJECT_TYPE = "new Date()";
+    /** A sample java object for BOOLEANCHAR columns. */
     public static final String BOOLEANCHAR_OBJECT_TYPE = "\"\"";
+    /** A sample java object for BOOLEANINT columns. */
     public static final String BOOLEANINT_OBJECT_TYPE = "new Integer(0)";
 
     /**
@@ -286,7 +309,7 @@ public final class TypeMap
      */
     public static String getJavaObject(SchemaType jdbcType)
     {
-        return (String) SCHEMA_TYPE_TO_INIT_VALUE_MAP.get(jdbcType);
+        return SCHEMA_TYPE_TO_INIT_VALUE_MAP.get(jdbcType);
     }
 
     /**



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


Mime
View raw message