[cvs] expresso commit by lhamel: put descriptions in bundle

JCorporate Ltd jcorp at jcorp2.servlets.net
Wed Nov 17 00:54:08 PST 2004


Log Message:
-----------
put descriptions in bundle

Modified Files:
--------------
    expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj:
        RowPermissions.java

Revision Data
-------------
Index: RowPermissions.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj/RowPermissions.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj/RowPermissions.java -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj/RowPermissions.java -u -r1.13 -r1.14
--- expresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj/RowPermissions.java
+++ expresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj/RowPermissions.java
@@ -71,11 +71,10 @@
 /**
  * storage for read/write permissions concerning a given row in the database
  * this table stores user & "other" permissions
- *
+ * <p/>
  * this object and its table should be manipulated only through RowSecuredDBObject
  *
  * @author larry hamel
- *
  * @see com.jcorporate.expresso.core.dbobj.RowSecuredDBObject
  * @see com.jcorporate.expresso.services.dbobj.RowGroupPerms
  */
@@ -113,7 +112,7 @@
      * InterBase probably has one of the lowest limits, 200 bytes for the index,
      * which is a combination of all indexed fields,
      * documented at http://bdn.borland.com/article/0,1410,25245,00.html
-     *
+     * <p/>
      * increase this length if you need to, and if your database allows a larger
      * number of bytes in indices.
      */
@@ -219,8 +218,9 @@
 
     /**
      * always returns true
-     * @throws DBException upon error
+     *
      * @return true if the own can administrate the row
+     * @throws DBException upon error
      */
     public boolean canOwnerAdministrate() throws DBException {
         return true;
@@ -249,19 +249,20 @@
 
     /**
      * override in subclesses, and be sure to call this as first line of override
+     *
      * @throws DBException upon error
      */
     protected synchronized void setupFields() throws DBException {
         setTargetTable(PERMISSIONS_TABLE_NAME);
         setDescription(PERMISSIONS_TABLE_DESCRIP);
-        addField(TABLE_NAME, DBField.VARCHAR_TYPE, MAX_TABLE_NAME_LENGTH, false, "Target table name");
+        addField(TABLE_NAME, DBField.VARCHAR_TYPE, MAX_TABLE_NAME_LENGTH, false, "Targettablename");
         /**
          * @todo should ROW_KEY be longvarchar?  is that indexable on all databases?
          * [Answer: LongVarChar is NOT indexable on several databases -MR]
          */
-        addField(ROW_KEY, sKeyType, getMaxKeyLen(), false, "Row key");
+        addField(ROW_KEY, sKeyType, getMaxKeyLen(), false, "Rowkey");
         addField(OWNER_ID, DBField.INT_TYPE, 0, true, "Owner");
-        addField(PERMISSIONS, DBField.INT_TYPE, 0, true, "Permission bits");
+        addField(PERMISSIONS, DBField.INT_TYPE, 0, true, "Permissionbits");
         addKey(TABLE_NAME);
         addKey(ROW_KEY);
     }
@@ -276,6 +277,7 @@
 
     /**
      * set permissions
+     *
      * @param perm the permissions to set
      * @throws DBException upon DataObject error
      */
@@ -285,8 +287,9 @@
 
     /**
      * set permissions
-     * @throws DBException upon DataObject error
+     *
      * @return the permission code
+     * @throws DBException upon DataObject error
      */
     public int permissions() throws DBException {
         // protect against empty perm.
@@ -296,8 +299,9 @@
 
     /**
      * indicates that this object is new--no permissions have been set
-     * @throws DBException upon DataObject error
+     *
      * @return true if the field is Fresh.
+     * @throws DBException upon DataObject error
      */
     public boolean isFresh() throws DBException {
         return getField(PERMISSIONS).length() == 0;


More information about the cvs mailing list