You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jo...@apache.org on 2001/04/27 22:53:10 UTC

cvs commit: jakarta-turbine/src/java/org/apache/turbine/util/db/map DatabaseMap.java

jon         01/04/27 13:53:10

  Modified:    src/java/org/apache/turbine/util/db IDBroker.java
               src/java/org/apache/turbine/util/db/map DatabaseMap.java
  Log:
  corrected some javadoc in IDBroker (jmcnally, please verify that i have
  this correct)
  
  and added some javadoc to DatabaseMap to specify the valid generator types
  
  Revision  Changes    Path
  1.27      +4 -3      jakarta-turbine/src/java/org/apache/turbine/util/db/IDBroker.java
  
  Index: IDBroker.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/src/java/org/apache/turbine/util/db/IDBroker.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- IDBroker.java	2001/04/04 02:27:51	1.26
  +++ IDBroker.java	2001/04/27 20:53:10	1.27
  @@ -90,11 +90,12 @@
    * <p>
    * Use this class like this:
    * <pre>
  - * int id = dbMap.getIdGenerator().getNextIdAsInt(null, "TABLE_NAME");
  + * int id = dbMap.getIDBroker().getNextIdAsInt(null, "TABLE_NAME");
    *  - or -
  - * BigDecimal[] ids = ((IDBroker)dbMap.getIdGenerator())
  + * BigDecimal[] ids = ((IDBroker)dbMap.getIDBroker())
    *     .getNextIds("TABLE_NAME", numOfIdsToReturn);
    * </pre>
  + *
    * NOTE: When the ID_TABLE must be updated we must ensure that
    * IDBroker objects running in different JVMs do not overwrite each
    * other.  This is accomplished using using the transactional support
  @@ -103,7 +104,7 @@
    *
    * @author <a href="mailto:frank.kim@clearink.com">Frank Y. Kim</a>
    * @author <a href="mailto:john.mcnally@clearink.com">John D. McNally</a>
  - * @version $Id: IDBroker.java,v 1.26 2001/04/04 02:27:51 jmcnally Exp $
  + * @version $Id: IDBroker.java,v 1.27 2001/04/27 20:53:10 jon Exp $
    */
   public class IDBroker
       implements Runnable, IdGenerator
  
  
  
  1.5       +3 -2      jakarta-turbine/src/java/org/apache/turbine/util/db/map/DatabaseMap.java
  
  Index: DatabaseMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/src/java/org/apache/turbine/util/db/map/DatabaseMap.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DatabaseMap.java	2001/03/06 06:14:19	1.4
  +++ DatabaseMap.java	2001/04/27 20:53:10	1.5
  @@ -64,7 +64,7 @@
    * DatabaseMap is used to model a database.
    *
    * @author <a href="mailto:john.mcnally@clearink.com">John D. McNally</a>
  - * @version $Id: DatabaseMap.java,v 1.4 2001/03/06 06:14:19 chrise Exp $
  + * @version $Id: DatabaseMap.java,v 1.5 2001/04/27 20:53:10 jon Exp $
    */
   public class DatabaseMap
   {
  @@ -267,7 +267,8 @@
       }
   
       /**
  -     * Get a type of id generator.
  +     * Get a type of id generator. Example valid values are:
  +     * TableMap.IDBROKERTABLE, TableMap.AUTOINCREMENT, TableMap.SEQUENCE
        *
        * @param type a <code>String</code> value
        * @return an <code>IdGenerator</code> value
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org