User: patriot1burke
  Date: 01/06/21 14:55:01

  Modified:    src/main/org/jboss/ejb/plugins/jaws/jdbc
                        JDBCCommandFactory.java
  Log:
  createDefinedFinderCommand creates different objects
  based on the read-head flag of the FinderMetaData.  This change was for
  added functionality of combining LoadEntities with finders so that there is
  only 1 DB select instead of 2.
  
  Revision  Changes    Path
  1.11      +15 -3     
jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommandFactory.java
  
  Index: JDBCCommandFactory.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommandFactory.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- JDBCCommandFactory.java   2001/06/18 14:34:27     1.10
  +++ JDBCCommandFactory.java   2001/06/21 21:55:01     1.11
  @@ -67,8 +67,13 @@
    * object so that we can keep the hashtables clean.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Justin Forder</a>
  - * @author <a href="[EMAIL PROTECTED]">danch (Dan Christopherson</a>
  - * @version $Revision: 1.10 $
  + * @author <a href="[EMAIL PROTECTED]">danch (Dan Christopherson)</a>
  + * @author <a href="[EMAIL PROTECTED]">Bill Burke</a>
  + * @version $Revision: 1.11 $
  + *
  + * Revision:
  + * 20010621 Bill Burke: createDefinedFinderCommand creates different objects
  + * based on the read-head flag of the FinderMetaData.
    */
   public class JDBCCommandFactory implements JPMCommandFactory
   {
  @@ -195,7 +200,14 @@
      
      public JPMFindEntitiesCommand createDefinedFinderCommand(FinderMetaData f)
      {
  -      return new JDBCDefinedFinderCommand(this, f);
  +      if (f.hasReadAhead())
  +      {
  +         return new JDBCPreloadFinderCommand(this, f);
  +      }
  +      else
  +      {
  +         return new JDBCDefinedFinderCommand(this, f);
  +      }
      }
      
      public JPMFindEntitiesCommand createFindByCommand(Method finderMethod, 
FinderMetaData f)
  
  
  

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

Reply via email to