Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/database TableManager.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/database TableManager.java

Author dlr
Full name Daniel Rall
Date 2000-11-10 15:14:51 PST
Message User: dlr
  Date: 00/11/10 15:14:51

  Modified: java/org/joist/database TableManager.java
  Log:
  Added a haveValue() method (like the one in UnsecureServlet).
  
  Revision Changes Path
  1.16 +13 -1 joist/java/org/joist​/database/TableManag​er.java
  
  Index: TableManager.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/database/Table​Manager.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- TableManager.java 2000/10/21 19:13:28 1.15
  +++ TableManager.java 2000/11/10 23:14:51 1.16
  @@ -63,7 +63,7 @@
     * This is a superclass for subclasses that manage specific tables.
     *
     * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
  - * @version $Revision: 1.15 $
  + * @version $Revision: 1.16 $
     *
     * Copyright (c) 1999 dataweb systems, inc.
     * Copyright (c) 1999, 2000 Collab.Net, Inc.
  @@ -165,6 +165,18 @@
               if (stmt != null) stmt.close();
           }
           return id;
  + }
  +
  + /**
  + * Checks whether their is a value in the provided string (not
  + * <code>null</code> and not empty).
  + *
  + * @param value The string to check.
  + * @return Whether there is a value.
  + */
  + protected static final boolean haveValue (String value)
  + {
  + return (value != null && value.trim().length() > 0);
       }
   
       /**

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/java/org/joist/database TableManager.java dlr Daniel Rall 2000-11-10 15:14:51 PST
Messages per page: