empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1299808 - /empire-db/trunk/empire-db/src/main/java/org/apache/empire/data/bean/BeanClass.java
Date Mon, 12 Mar 2012 19:43:05 GMT
Author: doebele
Date: Mon Mar 12 19:43:05 2012
New Revision: 1299808

URL: http://svn.apache.org/viewvc?rev=1299808&view=rev
Log:
EMPIREDB-126
oops missed something

Modified:
    empire-db/trunk/empire-db/src/main/java/org/apache/empire/data/bean/BeanClass.java

Modified: empire-db/trunk/empire-db/src/main/java/org/apache/empire/data/bean/BeanClass.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db/src/main/java/org/apache/empire/data/bean/BeanClass.java?rev=1299808&r1=1299807&r2=1299808&view=diff
==============================================================================
--- empire-db/trunk/empire-db/src/main/java/org/apache/empire/data/bean/BeanClass.java (original)
+++ empire-db/trunk/empire-db/src/main/java/org/apache/empire/data/bean/BeanClass.java Mon
Mar 12 19:43:05 2012
@@ -65,25 +65,26 @@ public abstract class BeanClass
         return prop;
     }
 
-    protected final BeanProperty addProp(String propname, DataType dataType, double size,
boolean required)
+    protected final BeanProperty addProp(String propname, DataType dataType, double size,
DataMode dataMode)
     {
-        BeanProperty prop = new BeanProperty(propname, dataType, size, required, "text",
false);
+        return addProp(propname, dataType, size, dataMode, "text");
+    }
+
+    protected final BeanProperty addProp(String propname, DataType dataType, double size,
boolean required, String controlType, boolean readOnly)
+    {
+        BeanProperty prop = new BeanProperty(propname, dataType, size, required, controlType,
readOnly);
         addProp(prop);
         return prop;
     }
 
     protected final BeanProperty addProp(String propname, DataType dataType, double size,
boolean required, String controlType)
     {
-        BeanProperty prop = new BeanProperty(propname, dataType, size, required, controlType,
false);
-        addProp(prop);
-        return prop;
+        return addProp(propname, dataType, size, required, controlType, false);
     }
 
-    protected final BeanProperty addProp(String propname, DataType dataType, double size,
boolean required, String controlType, boolean readOnly)
+    protected final BeanProperty addProp(String propname, DataType dataType, double size,
boolean required)
     {
-        BeanProperty prop = new BeanProperty(propname, dataType, size, required, controlType,
readOnly);
-        addProp(prop);
-        return prop;
+        return addProp(propname, dataType, size, required, "text", false);
     }
 
     /**



Mime
View raw message