[cvs] expresso commit by lhamel: add convenience constructor

JCorporate Ltd jcorp at jcorporate.com
Fri Jan 7 01:52:50 UTC 2005


Log Message:
-----------
add convenience constructor

Modified Files:
--------------
    expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj:
        RowSecuredDBObject.java

Revision Data
-------------
Index: RowSecuredDBObject.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/RowSecuredDBObject.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/RowSecuredDBObject.java -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/RowSecuredDBObject.java -u -r1.42 -r1.43
--- expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/RowSecuredDBObject.java
+++ expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/RowSecuredDBObject.java
@@ -191,6 +191,21 @@
     }
 
     /**
+     * Constructor: Specify a DB connection, typically for a transaction db context
+     *
+     * @param theConnection A DBConnection that this object should use to
+     *                      connect to the database
+     * @throws DBException If the object cannot be created
+     */
+    public RowSecuredDBObject(DBConnection theConnection)
+            throws DBException {
+        super(theConnection);
+
+        // check that key is not too long
+        checkKeyLength();
+    }
+
+    /**
      * Creates a new RowSecuredDBObject object.
      * This constructor will attempt to use servlet filter
      * to set data context--from expresso v.5.6.  However, if you


More information about the cvs mailing list