db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r379948 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/model/Column.java
Date Wed, 22 Feb 2006 22:39:56 GMT
Author: tomdz
Date: Wed Feb 22 14:39:55 2006
New Revision: 379948

URL: http://svn.apache.org/viewcvs?rev=379948&view=rev
Log:
Added new helper method

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/model/Column.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/model/Column.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/model/Column.java?rev=379948&r1=379947&r2=379948&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/model/Column.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/model/Column.java Wed Feb 22 14:39:55 2006
@@ -360,6 +360,19 @@
     }
 
     /**
+     * Sets both the size and scale.
+     * 
+     * @param size  The size
+     * @param scale The scale
+     */
+    public void setSizeAndScale(int size, int scale)
+    {
+        _size      = String.valueOf(size);
+        _sizeAsInt = new Integer(size);
+        _scale     = scale;
+    }
+    
+    /**
      * Returns the precision radix of the column.
      * 
      * @return The precision radix



Mime
View raw message