User: danch   
  Date: 01/03/26 07:19:36

  Modified:    src/main/org/jboss/ejb/plugins/jaws/jdbc JDBCCommand.java
                        JDBCCommandFactory.java
  Log:
  Make jaws logging of SQL configurable at deploy time
  
  Revision  Changes    Path
  1.30      +2 -1      jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommand.java
  
  Index: JDBCCommand.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCCommand.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- JDBCCommand.java  2001/03/11 22:47:50     1.29
  +++ JDBCCommand.java  2001/03/26 15:19:36     1.30
  @@ -57,7 +57,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Justin Forder</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Dirk Zimmermann</a>
  - * @version $Revision: 1.29 $
  + * @version $Revision: 1.30 $
    */
   public abstract class JDBCCommand
   {
  @@ -122,6 +122,7 @@
         this.jawsEntity = factory.getMetaData();
         this.log = factory.getLog();
         this.name = name;
  +      this.debug = factory.getDebug();
      }
   
      // Protected -----------------------------------------------------
  
  
  
  1.6       +9 -2      
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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JDBCCommandFactory.java   2001/02/21 06:20:10     1.5
  +++ JDBCCommandFactory.java   2001/03/26 15:19:36     1.6
  @@ -42,7 +42,7 @@
    * JAWSPersistenceManager JDBCCommandFactory
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Justin Forder</a>
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.6 $
    */
   public class JDBCCommandFactory implements JPMCommandFactory
   {
  @@ -52,6 +52,7 @@
      private Context javaCtx;
      private JawsEntityMetaData metadata;
      private Log log;
  +   private boolean debug = false;
      
      // These support singletons (within the scope of this factory)
      private JDBCBeanExistsCommand beanExistsCommand;
  @@ -75,9 +76,10 @@
          if (jamd == null) {
             // we are the first cmp entity to need jaws. Load jaws.xml for the whole 
application
                 JawsXmlFileLoader jfl = new JawsXmlFileLoader(amd, 
container.getClassLoader(), container.getLocalClassLoader(), log);
  -         jamd = jfl.load();
  +       jamd = jfl.load();
                 amd.addPluginData("JAWS", jamd);
          }
  +     debug = jamd.getDebug();
                  
          metadata = jamd.getBeanByEjbName(ejbName);
          if (metadata == null) {
  @@ -105,6 +107,11 @@
      public Log getLog()
      {
         return log;
  +   }
  +   
  +   public boolean getDebug() 
  +   {
  +      return debug;
      }
      
      // Additional Command creation
  
  
  

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

Reply via email to