User: dsundstrom
  Date: 02/02/26 16:03:25

  Modified:    src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata
                        JDBCReadAheadMetaData.java
  Log:
  Added new constructor that takes all state info as parameters.
  
  Revision  Changes    Path
  1.6       +19 -1     
jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata/JDBCReadAheadMetaData.java
  
  Index: JDBCReadAheadMetaData.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata/JDBCReadAheadMetaData.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JDBCReadAheadMetaData.java        15 Jan 2002 21:19:43 -0000      1.5
  +++ JDBCReadAheadMetaData.java        27 Feb 2002 00:03:25 -0000      1.6
  @@ -19,7 +19,7 @@
    * It loads its data from standardjbosscmp-jdbc.xml and jbosscmp-jdbc.xml
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Oleg Nitz</a>
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.6 $
    */
   public final class JDBCReadAheadMetaData {
   
  @@ -72,6 +72,24 @@
         strategy = ON_LOAD;
         pageSize = 255;
         eagerLoadGroup = "*";
  +   }
  +
  +   /**
  +    * Constructs read ahead meta data with specified strategy, pageSize and 
  +    * eagerLoadGroup.
  +    */
  +   public JDBCReadAheadMetaData(
  +         String strategy, 
  +         int pageSize, 
  +         String eagerLoadGroup) {
  +      
  +      this.strategy = (byte) STRATEGIES.indexOf(strategy);
  +      if(this.strategy < 0) {
  +         throw new IllegalArgumentException("Unknown read ahead strategy '" + 
  +               strategy + "'.");
  +      }
  +      this.pageSize = pageSize;
  +      this.eagerLoadGroup = eagerLoadGroup;
      }
   
      /**
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to