db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olegn...@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/metadata JdbcConnectionDescriptor.java RepositoryElements.java RepositoryTags.java RepositoryXmlHandler.java
Date Sun, 22 Dec 2002 15:56:42 GMT
olegnitz    2002/12/22 07:56:42

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        ConnectionManager.java
               src/java/org/apache/ojb/broker/ant
                        RepositoryVerifierHandler.java
               src/java/org/apache/ojb/broker/metadata
                        JdbcConnectionDescriptor.java
                        RepositoryElements.java RepositoryTags.java
                        RepositoryXmlHandler.java
  Log:
  Added "batch-mode" attribute to jdbc-connection-descriptor.
  By default it is set to "false" and should be used by those users of
  PersistenceBroker API that want to achieve better productivity
  by delaying of prepared statements execution until the end of transaction,
  when they are gathered into batches.
  
  Revision  Changes    Path
  1.18      +2 -1      jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/ConnectionManager.java
  
  Index: ConnectionManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/ConnectionManager.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ConnectionManager.java	20 Dec 2002 01:52:57 -0000	1.17
  +++ ConnectionManager.java	22 Dec 2002 15:56:41 -0000	1.18
  @@ -98,6 +98,7 @@
           this.jcd = broker.getDescriptorRepository().getDefaultJdbcConnection();
           this.connectionFactory = ConnectionFactoryFactory.getInstance();
           this.platform = PlatformFactory.getPlatformFor(jcd);
  +        this.batchMode = this.jcd.getBatchMode();
           OjbConfigurator.getInstance().configure(this);
       }
   
  
  
  
  1.8       +4 -3      jakarta-ojb/src/java/org/apache/ojb/broker/ant/RepositoryVerifierHandler.java
  
  Index: RepositoryVerifierHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/ant/RepositoryVerifierHandler.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- RepositoryVerifierHandler.java	21 Sep 2002 16:19:16 -0000	1.7
  +++ RepositoryVerifierHandler.java	22 Dec 2002 15:56:41 -0000	1.8
  @@ -113,6 +113,7 @@
       private Collection m_VerifyExceptions = new ArrayList(69);
       private Collection m_VerifyWarnings = new ArrayList(69);
   
  +    private int fldCnt = 0;
   
       /**
        * The only public constructor for RepositoryVerifierHandler.
  @@ -290,8 +291,8 @@
   
                   case FIELD_DESCRIPTOR :
                       {
  -                        int id = Integer.parseInt(atts.getValue("id"));
  -                        m_CurrentFLD = new FieldDescriptor(id);
  +			fldCnt++;
  +                        m_CurrentFLD = new FieldDescriptor(fldCnt);
   
                           String fieldName = atts.getValue(tags.getTagById(FIELD_NAME));
   
  
  
  
  1.16      +28 -13    jakarta-ojb/src/java/org/apache/ojb/broker/metadata/JdbcConnectionDescriptor.java
  
  Index: JdbcConnectionDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/metadata/JdbcConnectionDescriptor.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- JdbcConnectionDescriptor.java	8 Nov 2002 13:29:28 -0000	1.15
  +++ JdbcConnectionDescriptor.java	22 Dec 2002 15:56:41 -0000	1.16
  @@ -82,6 +82,7 @@
       protected Integer descriptorKey;
       protected ConnectionPoolDescriptor cpd;
       protected boolean m_eagerRelease = false;
  +    protected boolean m_batchMode = false;
   
       /**
        * Constructor declaration
  @@ -115,16 +116,16 @@
       {
           if (descriptorKey == null)
           {
  -            String empty = "";
               StringBuffer buf = new StringBuffer();
  -            buf.append(empty+m_Dbms);
  -            buf.append(empty+m_DbAlias);
  -            buf.append(empty+m_DatasourceName);
  -            buf.append(empty+m_UserName);
  -            buf.append(empty+m_Password);
  -            buf.append(empty+m_Protocol);
  -            buf.append(empty+m_SubProtocol);
  -            buf.append(empty+m_eagerRelease);
  +            buf.append(m_Dbms);
  +            buf.append(m_DbAlias);
  +            buf.append(m_DatasourceName);
  +            buf.append(m_UserName);
  +            buf.append(m_Password);
  +            buf.append(m_Protocol);
  +            buf.append(m_SubProtocol);
  +            buf.append(m_eagerRelease);
  +            buf.append(m_batchMode);
               descriptorKey = new Integer(buf.toString().hashCode());
           }
           return descriptorKey;
  @@ -156,7 +157,9 @@
               + "\n"
               + "PASSWORD: " + m_Password
               + "\n"
  -            + "EAGER RELEASE: " + m_eagerRelease;
  +            + "EAGER RELEASE: " + m_eagerRelease
  +            + "\n"
  +            + "BATCH MODE: " + m_batchMode;
       }
   
       /**
  @@ -482,7 +485,18 @@
       	m_eagerRelease = flag;
       }
   
  -    
  +    public boolean getBatchMode()
  +    {
  +    	return m_batchMode;
  +    }
  +
  +    public void setBatchMode(boolean flag)
  +    {
  +        this.clearDescriptorKey();
  +    	m_batchMode = flag;
  +    }
  +
  +
       /*
        * @see XmlCapable#toXML()
        */
  @@ -510,6 +524,7 @@
           	strReturn += "    " + tags.getAttribute(URL_SUBPROTOCOL, this.getSubProtocol()) + eol;
           	strReturn += "    " + encode(tags.getAttribute(URL_DBALIAS, this.getDbAlias())) + eol;
           	strReturn += "    " + tags.getAttribute(EAGER_RELEASE, "" + this.getEagerRelease()) + eol;
  +        	strReturn += "    " + tags.getAttribute(BATCH_MODE, "" + this.getBatchMode()) + eol;
           }
           //username is optional
           String user = getUserName();
  @@ -562,4 +577,4 @@
           }
           return retval.toString();
       }
  -}
  \ No newline at end of file
  +}
  
  
  
  1.16      +2 -1      jakarta-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryElements.java
  
  Index: RepositoryElements.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryElements.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- RepositoryElements.java	4 Dec 2002 21:37:19 -0000	1.15
  +++ RepositoryElements.java	22 Dec 2002 15:56:41 -0000	1.16
  @@ -75,6 +75,7 @@
       public static final int USER_NAME = 10;
       public static final int USER_PASSWD = 11;
       public static final int EAGER_RELEASE = 74;
  +    public static final int BATCH_MODE = 79;
       public static final int CLASS_DESCRIPTOR = 12;
       public static final int CLASS_NAME = 13;
       public static final int CLASS_PROXY = 35;
  @@ -140,6 +141,6 @@
   
   
       // maintain a last id to keep track where we are
  -    public static final int _LAST = 79;
  +    public static final int _LAST = 80;
   
   }
  
  
  
  1.18      +1 -0      jakarta-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryTags.java
  
  Index: RepositoryTags.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryTags.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- RepositoryTags.java	4 Dec 2002 21:37:19 -0000	1.17
  +++ RepositoryTags.java	22 Dec 2002 15:56:41 -0000	1.18
  @@ -104,6 +104,7 @@
           table.put("username", new Integer(USER_NAME));
           table.put("password", new Integer(USER_PASSWD));
           table.put("eager-release", new Integer(EAGER_RELEASE));
  +        table.put("batch-mode", new Integer(BATCH_MODE));
           table.put("class-descriptor", new Integer(CLASS_DESCRIPTOR));
           table.put("class", new Integer(CLASS_NAME));
           table.put("proxy", new Integer(CLASS_PROXY));
  
  
  
  1.24      +107 -98   jakarta-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java
  
  Index: RepositoryXmlHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- RepositoryXmlHandler.java	16 Dec 2002 18:21:06 -0000	1.23
  +++ RepositoryXmlHandler.java	22 Dec 2002 15:56:42 -0000	1.24
  @@ -160,6 +160,8 @@
        */
       public void startElement(String uri, String name, String qName, Attributes atts)
       {
  +        boolean isDebug = logger.isDebugEnabled();
  +
           m_CurrentString = null;
           try
           {
  @@ -185,13 +187,13 @@
                           		version);
                           }
   
  -                        logger.debug(" > " + tags.getTagById(MAPPING_REPOSITORY));
  +                        if (isDebug) logger.debug(" > " + tags.getTagById(MAPPING_REPOSITORY));
   
                           break;
                       }
                   case JDBC_CONNECTION_DESCRIPTOR :
                       {
  -                        logger.debug("   > " + tags.getTagById(JDBC_CONNECTION_DESCRIPTOR));
  +                        if (isDebug) logger.debug("   > " + tags.getTagById(JDBC_CONNECTION_DESCRIPTOR));
                           m_CurrentJCD = new JdbcConnectionDescriptor();
                           if (m_CurrentCLD == null)
                           {
  @@ -203,59 +205,64 @@
                           }
                           // set platform attribute
                           String platform = atts.getValue(tags.getTagById(DBMS_NAME));
  -                        logger.debug("     " + tags.getTagById(DBMS_NAME) + ": " + platform);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(DBMS_NAME) + ": " + platform);
                           m_CurrentJCD.setDbms(platform);
   
                           // set jdbc-level attribute
                           String level = atts.getValue(tags.getTagById(JDBC_LEVEL));
  -                        logger.debug("     " + tags.getTagById(JDBC_LEVEL) + ": " + level);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(JDBC_LEVEL) + ": " + level);
                           m_CurrentJCD.setJdbcLevel(level);
   
                           // set driver attribute
                           String driver = atts.getValue(tags.getTagById(DRIVER_NAME));
  -                        logger.debug("     " + tags.getTagById(DRIVER_NAME) + ": " + driver);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(DRIVER_NAME) + ": " + driver);
                           m_CurrentJCD.setDriver(driver);
   
                           // set protocol attribute
                           String protocol = atts.getValue(tags.getTagById(URL_PROTOCOL));
  -                        logger.debug("     " + tags.getTagById(URL_PROTOCOL) + ": " + protocol);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(URL_PROTOCOL) + ": " + protocol);
                           m_CurrentJCD.setProtocol(protocol);
   
                           // set subprotocol attribute
                           String subprotocol = atts.getValue(tags.getTagById(URL_SUBPROTOCOL));
  -                        logger.debug("     " + tags.getTagById(URL_SUBPROTOCOL) + ": " + subprotocol);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(URL_SUBPROTOCOL) + ": " + subprotocol);
                           m_CurrentJCD.setSubProtocol(subprotocol);
   
                           // set the dbalias attribute
                           String dbalias = atts.getValue(tags.getTagById(URL_DBALIAS));
  -                        logger.debug("     " + tags.getTagById(URL_DBALIAS) + ": " + dbalias);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(URL_DBALIAS) + ": " + dbalias);
                           m_CurrentJCD.setDbAlias(dbalias);
   
                           // set the datasource attribute
                           String datasource = atts.getValue(tags.getTagById(DATASOURCE_NAME));
  -                        logger.debug("     " + tags.getTagById(DATASOURCE_NAME) + ": " + datasource);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(DATASOURCE_NAME) + ": " + datasource);
                           m_CurrentJCD.setDatasourceName(datasource);
   
                           // set the user attribute
                           String user = atts.getValue(tags.getTagById(USER_NAME));
  -                        logger.debug("     " + tags.getTagById(USER_NAME) + ": " + user);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(USER_NAME) + ": " + user);
                           m_CurrentJCD.setUserName(user);
   
                           // set the password attribute
                           String password = atts.getValue(tags.getTagById(USER_PASSWD));
  -                        logger.debug("     " + tags.getTagById(USER_PASSWD) + ": " + password);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(USER_PASSWD) + ": " + password);
                           m_CurrentJCD.setPassWord(password);
   
                           // set eager-release attribute
                           String eagerRelease = atts.getValue(tags.getTagById(EAGER_RELEASE));
  -                        logger.debug("     " + tags.getTagById(EAGER_RELEASE) + ": " + eagerRelease);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(EAGER_RELEASE) + ": " + eagerRelease);
                           m_CurrentJCD.setEagerRelease(Boolean.valueOf(eagerRelease).booleanValue());
   
  +                        // set batch-mode attribute
  +                        String batchMode = atts.getValue(tags.getTagById(BATCH_MODE));
  +                        if (isDebug) logger.debug("     " + tags.getTagById(BATCH_MODE) + ": " + batchMode);
  +                        m_CurrentJCD.setBatchMode(Boolean.valueOf(batchMode).booleanValue());
  +
                           break;
                       }
                   case CLASS_DESCRIPTOR :
                       {
  -                        logger.debug("  > " + tags.getTagById(CLASS_DESCRIPTOR));
  +                        if (isDebug) logger.debug("  > " + tags.getTagById(CLASS_DESCRIPTOR));
                           m_CurrentCLD = new ClassDescriptor(m_repository);
   
                           // prepare for custom attributes
  @@ -263,12 +270,12 @@
   
                           // set isolation-level attribute
                           String isoLevel = atts.getValue(tags.getTagById(ISOLATION_LEVEL));
  -                        logger.debug("     " + tags.getTagById(ISOLATION_LEVEL) + ": " + isoLevel);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(ISOLATION_LEVEL) + ": " + isoLevel);
                           m_CurrentCLD.setIsolationLevel(getIsoLevel(isoLevel));
   
                           // set class attribute
                           String classname = atts.getValue(tags.getTagById(CLASS_NAME));
  -                        logger.debug("     " + tags.getTagById(CLASS_NAME) + ": " + classname);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CLASS_NAME) + ": " + classname);
                           m_CurrentCLD.setIsolationLevel(getIsoLevel(isoLevel));
                           try
                           {
  @@ -285,13 +292,13 @@
                           String schema = atts.getValue(tags.getTagById(SCHEMA_NAME));
                           if (schema != null)
                           {
  -                            logger.debug("     " + tags.getTagById(SCHEMA_NAME) + ": " + schema);
  +                            if (isDebug) logger.debug("     " + tags.getTagById(SCHEMA_NAME) + ": " + schema);
                               m_CurrentCLD.setSchema(schema);
                           }
   
                           // set proxy attribute
                           String proxy = atts.getValue(tags.getTagById(CLASS_PROXY));
  -                        logger.debug("     " + tags.getTagById(CLASS_PROXY) + ": " + proxy);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CLASS_PROXY) + ": " + proxy);
                           if (proxy != null)
                           {
                               if (proxy.equalsIgnoreCase("dynamic"))
  @@ -306,7 +313,7 @@
   
                           // set table attribute:
                           String table = atts.getValue(tags.getTagById(TABLE_NAME));
  -                        logger.debug("     " + tags.getTagById(TABLE_NAME) + ": " + table);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(TABLE_NAME) + ": " + table);
                           m_CurrentCLD.setTableName(table);
                           if (table == null)
                           {
  @@ -315,7 +322,7 @@
   
                           // set row-reader attribute
                           String rowreader = atts.getValue(tags.getTagById(ROW_READER));
  -                        logger.debug("     " + tags.getTagById(ROW_READER) + ": " + rowreader);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(ROW_READER) + ": " + rowreader);
                           if (rowreader != null)
                           {
                               m_CurrentCLD.setRowReaderClassName(rowreader);
  @@ -324,7 +331,7 @@
                           // set if extends
                            // set row-reader attribute
                           String extendsAtt = atts.getValue(tags.getTagById(EXTENDS));
  -                        logger.debug("     " + tags.getTagById(EXTENDS) + ": " + extendsAtt);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(EXTENDS) + ": " + extendsAtt);
                           if (extendsAtt != null)
                           {
                               m_CurrentCLD.setSuperClass(extendsAtt);
  @@ -332,7 +339,7 @@
   
                           //set accept-locks attribute
                           String acceptLocks = atts.getValue(tags.getTagById(ACCEPT_LOCKS));
  -                        logger.debug("     " + tags.getTagById(ACCEPT_LOCKS) + ": " + acceptLocks);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(ACCEPT_LOCKS) + ": " + acceptLocks);
                           boolean b = (new Boolean(acceptLocks)).booleanValue();
                           m_CurrentCLD.setAcceptLocks(b);
   
  @@ -342,14 +349,14 @@
                   case CLASS_EXTENT :
                       {
                           String classname = atts.getValue("class-ref");
  -                        logger.debug("     " + tags.getTagById(CLASS_EXTENT) + ": " + classname);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CLASS_EXTENT) + ": " + classname);
                           m_CurrentCLD.addExtentClassName(classname);
                           break;
                       }
                  /* case EXTENDS :
                       {
                           String classname = atts.getValue("class-ref");
  -                        logger.debug("     " + tags.getTagById(EXTENDS) + ": " + classname);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(EXTENDS) + ": " + classname);
                           m_CurrentCLD.setSuperClass(classname);
   
                           // get key for super class
  @@ -358,7 +365,7 @@
                           {
                               int fieldId;
                               fieldId = Integer.parseInt(fieldref);
  -                            logger.debug("     " + tags.getTagById(EXTENDS) + ": " +fieldId);
  +                            if (isDebug) logger.debug("     " + tags.getTagById(EXTENDS) + ": " +fieldId);
                               m_CurrentCLD.setSuperClassFieldRef(fieldId);
                           }
                           catch (NumberFormatException rex)
  @@ -374,7 +381,7 @@
   
                   case FIELD_DESCRIPTOR :
                       {
  -                        logger.debug("    > " + tags.getTagById(FIELD_DESCRIPTOR));
  +                        if (isDebug) logger.debug("    > " + tags.getTagById(FIELD_DESCRIPTOR));
   
                           int id = Integer.parseInt(atts.getValue("id"));
                           m_CurrentFLD = new FieldDescriptor(id);
  @@ -384,52 +391,52 @@
                           this.m_CurrentAttrContainer = this.m_CurrentFLD;
   
                           String fieldName = atts.getValue(tags.getTagById(FIELD_NAME));
  -                        logger.debug("     " + tags.getTagById(FIELD_NAME) + ": " + fieldName);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(FIELD_NAME) + ": " + fieldName);
                           String classname = m_CurrentCLD.getClassNameOfObject();
                           m_CurrentFLD.setPersistentField(classname, fieldName);
   
                           String columnName = atts.getValue(tags.getTagById(COLUMN_NAME));
  -                        logger.debug("     " + tags.getTagById(COLUMN_NAME) + ": " + columnName);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(COLUMN_NAME) + ": " + columnName);
                           m_CurrentFLD.setColumnName(columnName);
   
                           String jdbcType = atts.getValue(tags.getTagById(JDBC_TYPE));
  -                        logger.debug("     " + tags.getTagById(JDBC_TYPE) + ": " + jdbcType);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(JDBC_TYPE) + ": " + jdbcType);
                           m_CurrentFLD.setColumnType(jdbcType);
   
                           String primaryKey = atts.getValue(tags.getTagById(PRIMARY_KEY));
  -                        logger.debug("     " + tags.getTagById(PRIMARY_KEY) + ": " + primaryKey);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(PRIMARY_KEY) + ": " + primaryKey);
                           boolean b = (new Boolean(primaryKey)).booleanValue();
                           m_CurrentFLD.setPrimaryKey(b);
   
                           String nullable = atts.getValue(tags.getTagById(NULLABLE));
                           if (nullable != null)
                           {
  -                        	logger.debug("     " + tags.getTagById(NULLABLE) + ": " + nullable);
  +                        	if (isDebug) logger.debug("     " + tags.getTagById(NULLABLE) + ": " + nullable);
                           	b = ! (new Boolean(nullable)).booleanValue();
                           	m_CurrentFLD.setRequired(b);
                           }
   
                           String indexed = atts.getValue(tags.getTagById(INDEXED));
  -                        logger.debug("     " + tags.getTagById(INDEXED) + ": " + indexed);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(INDEXED) + ": " + indexed);
                           b = (new Boolean(indexed)).booleanValue();
                           m_CurrentFLD.setIndexed(b);
   
                           String autoincrement = atts.getValue(tags.getTagById(AUTO_INCREMENT));
  -                        logger.debug("     " + tags.getTagById(AUTO_INCREMENT) + ": " + autoincrement);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(AUTO_INCREMENT) + ": " + autoincrement);
                           b = (new Boolean(autoincrement)).booleanValue();
                           m_CurrentFLD.setAutoIncrement(b);
   
                           String sequenceName = atts.getValue(tags.getTagById(SEQUENCE_NAME));
  -                        logger.debug("     " + tags.getTagById(SEQUENCE_NAME) + ": " + sequenceName);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(SEQUENCE_NAME) + ": " + sequenceName);
                           m_CurrentFLD.setSequenceName(sequenceName);
   
                           String locking = atts.getValue(tags.getTagById(LOCKING));
  -                        logger.debug("     " + tags.getTagById(LOCKING) + ": " + locking);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(LOCKING) + ": " + locking);
                           b = (new Boolean(locking)).booleanValue();
                           m_CurrentFLD.setLocking(b);
   
                           String fieldConversion = atts.getValue(tags.getTagById(FIELD_CONVERSION));
  -                        logger.debug("     " + tags.getTagById(FIELD_CONVERSION) + ": " + fieldConversion);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(FIELD_CONVERSION) + ": " + fieldConversion);
                           if (fieldConversion != null)
                           {
                               m_CurrentFLD.setFieldConversionClassName(fieldConversion);
  @@ -440,7 +447,7 @@
                           if (length != null)
                           {
                               int i = Integer.parseInt(length);
  -                            logger.debug("     " + tags.getTagById(LENGTH) + ": " + i);
  +                            if (isDebug) logger.debug("     " + tags.getTagById(LENGTH) + ": " + i);
                               m_CurrentFLD.setLength(i);
                               m_CurrentFLD.setLengthSpecified(true);
                           }
  @@ -450,7 +457,7 @@
                           if (precision != null)
                           {
                               int i = Integer.parseInt(precision);
  -                            logger.debug("     " + tags.getTagById(PRECISION) + ": " + i);
  +                            if (isDebug) logger.debug("     " + tags.getTagById(PRECISION) + ": " + i);
                               m_CurrentFLD.setPrecision(i);
                               m_CurrentFLD.setPrecisionSpecified(true);
                           }
  @@ -460,7 +467,7 @@
                           if (scale != null)
                           {
                               int i = Integer.parseInt(scale);
  -                            logger.debug("     " + tags.getTagById(SCALE) + ": " + i);
  +                            if (isDebug) logger.debug("     " + tags.getTagById(SCALE) + ": " + i);
                               m_CurrentFLD.setScale(i);
                               m_CurrentFLD.setScaleSpecified(true);
                           }
  @@ -469,7 +476,7 @@
                       }
                   case REFERENCE_DESCRIPTOR :
                       {
  -                        logger.debug("    > " + tags.getTagById(REFERENCE_DESCRIPTOR));
  +                        if (isDebug) logger.debug("    > " + tags.getTagById(REFERENCE_DESCRIPTOR));
                           m_CurrentORD = new ObjectReferenceDescriptor();
                           m_CurrentCLD.addObjectReferenceDescriptor(m_CurrentORD);
   
  @@ -478,41 +485,41 @@
   
                           // set name attribute
                           name = atts.getValue(tags.getTagById(FIELD_NAME));
  -                        logger.debug("     " + tags.getTagById(FIELD_NAME) + ": " + name);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(FIELD_NAME) + ": " + name);
                           m_CurrentORD.setPersistentField(m_CurrentCLD.getClassNameOfObject(), name);
   
                           // set class-ref attribute
                           String classRef = atts.getValue(tags.getTagById(REFERENCED_CLASS));
  -                        logger.debug("     " + tags.getTagById(REFERENCED_CLASS) + ": " + classRef);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(REFERENCED_CLASS) + ": " + classRef);
   						m_CurrentORD.setItemClassName(classRef);
   
                           // set proxy attribute
                           String proxy = atts.getValue(tags.getTagById(PROXY_REFERENCE));
  -                        logger.debug("     " + tags.getTagById(PROXY_REFERENCE) + ": " + proxy);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(PROXY_REFERENCE) + ": " + proxy);
                           boolean b = (new Boolean(proxy)).booleanValue();
                           m_CurrentORD.setLazy(b);
   
                           // set refresh attribute
                           String refresh = atts.getValue(tags.getTagById(REFRESH_REFERENCE));
  -                        logger.debug("     " + tags.getTagById(REFRESH_REFERENCE) + ": " + refresh);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(REFRESH_REFERENCE) + ": " + refresh);
                           b = (new Boolean(refresh)).booleanValue();
                           m_CurrentORD.setRefresh(b);
   
                           // set auto-retrieve attribute
                           String autoRetrieve = atts.getValue(tags.getTagById(AUTO_RETRIEVE));
  -                        logger.debug("     " + tags.getTagById(AUTO_RETRIEVE) + ": " + autoRetrieve);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(AUTO_RETRIEVE) + ": " + autoRetrieve);
                           b = (new Boolean(autoRetrieve)).booleanValue();
                           m_CurrentORD.setCascadeRetrieve(b);
   
                           // set auto-update attribute
                           String autoUpdate = atts.getValue(tags.getTagById(AUTO_UPDATE));
  -                        logger.debug("     " + tags.getTagById(AUTO_UPDATE) + ": " + autoUpdate);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(AUTO_UPDATE) + ": " + autoUpdate);
                           b = (new Boolean(autoUpdate)).booleanValue();
                           m_CurrentORD.setCascadeStore(b);
   
                           //set auto-delete attribute
                           String autoDelete = atts.getValue(tags.getTagById(AUTO_DELETE));
  -                        logger.debug("     " + tags.getTagById(AUTO_DELETE) + ": " + autoDelete);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(AUTO_DELETE) + ": " + autoDelete);
                           b = (new Boolean(autoDelete)).booleanValue();
                           m_CurrentORD.setCascadeDelete(b);
   
  @@ -521,9 +528,9 @@
   
                   case FOREIGN_KEY :
                       {
  -                        logger.debug("    > " + tags.getTagById(FOREIGN_KEY));
  +                        if (isDebug) logger.debug("    > " + tags.getTagById(FOREIGN_KEY));
                           String fieldIdRef = atts.getValue(tags.getTagById(FIELD_ID_REF));
  -                        logger.debug("      " + tags.getTagById(FIELD_ID_REF) + ": " + fieldIdRef);
  +                        if (isDebug) logger.debug("      " + tags.getTagById(FIELD_ID_REF) + ": " + fieldIdRef);
   
                           try
                           {
  @@ -542,7 +549,7 @@
   
                   case COLLECTION_DESCRIPTOR :
                       {
  -                        logger.debug("    > " + tags.getTagById(COLLECTION_DESCRIPTOR));
  +                        if (isDebug) logger.debug("    > " + tags.getTagById(COLLECTION_DESCRIPTOR));
                           m_CurrentCOD = new CollectionDescriptor();
                           m_CurrentCLD.addCollectionDescriptor(m_CurrentCOD);
   
  @@ -551,19 +558,19 @@
   
                           // set name attribute
                           name = atts.getValue(tags.getTagById(FIELD_NAME));
  -                        logger.debug("     " + tags.getTagById(FIELD_NAME) + ": " + name);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(FIELD_NAME) + ": " + name);
                           m_CurrentCOD.setPersistentField(m_CurrentCLD.getClassNameOfObject(), name);
   
                           // set collection-class attribute
                           String collectionClassName = atts.getValue(tags.getTagById(COLLECTION_CLASS));
                           if (collectionClassName != null)
                           {
  -                        	logger.debug("     " + tags.getTagById(COLLECTION_CLASS) + ": " + collectionClassName);
  +                        	if (isDebug) logger.debug("     " + tags.getTagById(COLLECTION_CLASS) + ": " + collectionClassName);
    	                       	m_CurrentCOD.setCollectionClassName(collectionClassName);
                           }
                           // set element-class-ref attribute
                           String elementClassRef = atts.getValue(tags.getTagById(ITEMS_CLASS));
  -                        logger.debug("     " + tags.getTagById(ITEMS_CLASS) + ": " + elementClassRef);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(ITEMS_CLASS) + ": " + elementClassRef);
                           if (elementClassRef != null)
                           {
                           	m_CurrentCOD.setItemClassName(elementClassRef);
  @@ -572,7 +579,7 @@
                           //set orderby and sort attributes:
                           String orderby = atts.getValue(tags.getTagById(ORDERBY));
                           String sort = atts.getValue(tags.getTagById(SORT));
  -                        logger.debug("     " + tags.getTagById(SORT) + ": " + orderby + ", " + sort);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(SORT) + ": " + orderby + ", " + sort);
   
                           if (orderby != null)
                           {
  @@ -581,36 +588,36 @@
   
                           // set indirection-table attribute
                           String indirectionTable = atts.getValue(tags.getTagById(INDIRECTION_TABLE));
  -                        logger.debug("     " + tags.getTagById(INDIRECTION_TABLE) + ": " + indirectionTable);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(INDIRECTION_TABLE) + ": " + indirectionTable);
                           m_CurrentCOD.setIndirectionTable(indirectionTable);
   
                           // set proxy attribute
                           String proxy = atts.getValue(tags.getTagById(PROXY_REFERENCE));
  -                        logger.debug("     " + tags.getTagById(PROXY_REFERENCE) + ": " + proxy);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(PROXY_REFERENCE) + ": " + proxy);
                           boolean b = (new Boolean(proxy)).booleanValue();
                           m_CurrentCOD.setLazy(b);
   
                           // set refresh attribute
                           String refresh = atts.getValue(tags.getTagById(REFRESH_REFERENCE));
  -                        logger.debug("     " + tags.getTagById(REFRESH_REFERENCE) + ": " + refresh);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(REFRESH_REFERENCE) + ": " + refresh);
                           b = (new Boolean(refresh)).booleanValue();
                           m_CurrentCOD.setRefresh(b);
   
                           // set auto-retrieve attribute
                           String autoRetrieve = atts.getValue(tags.getTagById(AUTO_RETRIEVE));
  -                        logger.debug("     " + tags.getTagById(AUTO_RETRIEVE) + ": " + autoRetrieve);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(AUTO_RETRIEVE) + ": " + autoRetrieve);
                           b = (new Boolean(autoRetrieve)).booleanValue();
                           m_CurrentCOD.setCascadeRetrieve(b);
   
                           // set auto-update attribute
                           String autoUpdate = atts.getValue(tags.getTagById(AUTO_UPDATE));
  -                        logger.debug("     " + tags.getTagById(AUTO_UPDATE) + ": " + autoUpdate);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(AUTO_UPDATE) + ": " + autoUpdate);
                           b = (new Boolean(autoUpdate)).booleanValue();
                           m_CurrentCOD.setCascadeStore(b);
   
                           //set auto-delete attribute
                           String autoDelete = atts.getValue(tags.getTagById(AUTO_DELETE));
  -                        logger.debug("     " + tags.getTagById(AUTO_DELETE) + ": " + autoDelete);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(AUTO_DELETE) + ": " + autoDelete);
                           b = (new Boolean(autoDelete)).booleanValue();
                           m_CurrentCOD.setCascadeDelete(b);
   
  @@ -618,20 +625,20 @@
                       }
                   case ORDERBY :
                       {    
  -                        logger.debug("    > " + tags.getTagById(ORDERBY));
  +                        if (isDebug) logger.debug("    > " + tags.getTagById(ORDERBY));
                           name = atts.getValue(tags.getTagById(FIELD_NAME));
  -                        logger.debug("     " + tags.getTagById(FIELD_NAME) + ": " + name);                     
  +                        if (isDebug) logger.debug("     " + tags.getTagById(FIELD_NAME) + ": " + name);
                           String sort = atts.getValue(tags.getTagById(SORT));
  -                        logger.debug("     " + tags.getTagById(SORT) + ": " + name + ", " + sort);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(SORT) + ": " + name + ", " + sort);
                           
                           m_CurrentCOD.addOrderBy(name, "ASC".equalsIgnoreCase(sort));
                           break;
                       }
                   case INVERSE_FK :
                       {
  -                        logger.debug("    > " + tags.getTagById(INVERSE_FK));
  +                        if (isDebug) logger.debug("    > " + tags.getTagById(INVERSE_FK));
                           String fieldIdRef = atts.getValue(tags.getTagById(FIELD_ID_REF));
  -                        logger.debug("      " + tags.getTagById(FIELD_ID_REF) + ": " + fieldIdRef);
  +                        if (isDebug) logger.debug("      " + tags.getTagById(FIELD_ID_REF) + ": " + fieldIdRef);
   
                           try
                           {
  @@ -650,68 +657,68 @@
   
                   case FK_POINTING_TO_THIS_CLASS :
                       {
  -                        logger.debug("    > " + tags.getTagById(FK_POINTING_TO_THIS_CLASS));
  +                        if (isDebug) logger.debug("    > " + tags.getTagById(FK_POINTING_TO_THIS_CLASS));
                           String column = atts.getValue("column");
  -                        logger.debug("      " + "column" + ": " + column);
  +                        if (isDebug) logger.debug("      " + "column" + ": " + column);
                           m_CurrentCOD.addFkToThisClass(column);
                           break;
                       }
   
                   case FK_POINTING_TO_ITEMS_CLASS :
                       {
  -                        logger.debug("    > " + tags.getTagById(FK_POINTING_TO_ITEMS_CLASS));
  +                        if (isDebug) logger.debug("    > " + tags.getTagById(FK_POINTING_TO_ITEMS_CLASS));
                           String column = atts.getValue("column");
  -                        logger.debug("      " + "column" + ": " + column);
  +                        if (isDebug) logger.debug("      " + "column" + ": " + column);
                           m_CurrentCOD.addFkToItemClass(column);
                           break;
                       }
                   case CONNECTION_POOL :
                       {
  -                        logger.debug("    > " + tags.getTagById(CONNECTION_POOL));
  +                        if (isDebug) logger.debug("    > " + tags.getTagById(CONNECTION_POOL));
                           ConnectionPoolDescriptor m_CurrentCPD = m_CurrentJCD.getConnectionPoolDescriptor();
   
                           String maxActive = atts.getValue(tags.getTagById(CON_MAX_ACTIVE));
  -                        logger.debug("     " + tags.getTagById(CON_MAX_ACTIVE) + ": " + maxActive);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CON_MAX_ACTIVE) + ": " + maxActive);
                           if(checkString(maxActive)) m_CurrentCPD.setMaxActive(new Integer(maxActive).intValue());
   
                           String maxIdle = atts.getValue(tags.getTagById(CON_MAX_IDLE));
  -                        logger.debug("     " + tags.getTagById(CON_MAX_IDLE) + ": " + maxIdle);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CON_MAX_IDLE) + ": " + maxIdle);
                           if(checkString(maxIdle)) m_CurrentCPD.setMaxIdle(new Integer(maxIdle).intValue());
   
                           String maxWait = atts.getValue(tags.getTagById(CON_MAX_WAIT));
  -                        logger.debug("     " + tags.getTagById(CON_MAX_WAIT) + ": " + maxWait);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CON_MAX_WAIT) + ": " + maxWait);
                           if(checkString(maxWait)) m_CurrentCPD.setMaxWait(new Integer(maxWait).intValue());
   
                           String minEvictableIdleTimeMillis = atts.getValue(tags.getTagById(CON_MIN_EVICTABLE_IDLE_TIME_MILLIS));
  -                        logger.debug("     " + tags.getTagById(CON_MIN_EVICTABLE_IDLE_TIME_MILLIS) + ": " + minEvictableIdleTimeMillis);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CON_MIN_EVICTABLE_IDLE_TIME_MILLIS) + ": " + minEvictableIdleTimeMillis);
                           if(checkString(minEvictableIdleTimeMillis)) m_CurrentCPD.setMinEvictableIdleTimeMillis(new Long(minEvictableIdleTimeMillis).longValue());
   
                           String numTestsPerEvictionRun = atts.getValue(tags.getTagById(CON_NUM_TESTS_PER_EVICTION_RUN));
  -                        logger.debug("     " + tags.getTagById(CON_NUM_TESTS_PER_EVICTION_RUN) + ": " + numTestsPerEvictionRun);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CON_NUM_TESTS_PER_EVICTION_RUN) + ": " + numTestsPerEvictionRun);
                           if(checkString(numTestsPerEvictionRun)) m_CurrentCPD.setNumTestsPerEvictionRun(new Integer(numTestsPerEvictionRun).intValue());
   
                           String testOnBorrow = atts.getValue(tags.getTagById(CON_TEST_ON_BORROW));
  -                        logger.debug("     " + tags.getTagById(CON_TEST_ON_BORROW) + ": " + testOnBorrow);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CON_TEST_ON_BORROW) + ": " + testOnBorrow);
                           if(checkString(testOnBorrow)) m_CurrentCPD.setTestOnBorrow(new Boolean(testOnBorrow).booleanValue());
   
                           String testOnReturn = atts.getValue(tags.getTagById(CON_TEST_ON_RETURN));
  -                        logger.debug("     " + tags.getTagById(CON_TEST_ON_RETURN) + ": " + testOnReturn);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CON_TEST_ON_RETURN) + ": " + testOnReturn);
                           if(checkString(testOnReturn)) m_CurrentCPD.setTestOnReturn(new Boolean(testOnReturn).booleanValue());
   
                           String testWhileIdle = atts.getValue(tags.getTagById(CON_TEST_WHILE_IDLE));
  -                        logger.debug("     " + tags.getTagById(CON_TEST_WHILE_IDLE) + ": " + testWhileIdle);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CON_TEST_WHILE_IDLE) + ": " + testWhileIdle);
                           if(checkString(testWhileIdle)) m_CurrentCPD.setTestWhileIdle(new Boolean(testWhileIdle).booleanValue());
   
                           String timeBetweenEvictionRunsMillis = atts.getValue(tags.getTagById(CON_TIME_BETWEEN_EVICTION_RUNS_MILLIS));
  -                        logger.debug("     " + tags.getTagById(CON_TIME_BETWEEN_EVICTION_RUNS_MILLIS) + ": " + timeBetweenEvictionRunsMillis);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CON_TIME_BETWEEN_EVICTION_RUNS_MILLIS) + ": " + timeBetweenEvictionRunsMillis);
                           if(checkString(timeBetweenEvictionRunsMillis)) m_CurrentCPD.setTimeBetweenEvictionRunsMillis(new Long(timeBetweenEvictionRunsMillis).longValue());
   
                           String whenExhaustedAction = atts.getValue(tags.getTagById(CON_WHEN_EXHAUSTED_ACTION));
  -                        logger.debug("     " + tags.getTagById(CON_WHEN_EXHAUSTED_ACTION) + ": " + whenExhaustedAction);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CON_WHEN_EXHAUSTED_ACTION) + ": " + whenExhaustedAction);
                           if(checkString(whenExhaustedAction)) m_CurrentCPD.setWhenExhaustedAction(new Byte(whenExhaustedAction).byteValue());
   
                           String connectionFactoryStr = atts.getValue(tags.getTagById(CONNECTION_FACTORY));
  -                        logger.debug("     " + tags.getTagById(CONNECTION_FACTORY) + ": " + connectionFactoryStr);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(CONNECTION_FACTORY) + ": " + connectionFactoryStr);
                           if(checkString(connectionFactoryStr)) m_CurrentCPD.setConnectionFactory(connectionFactoryStr);
                           break;
                       }
  @@ -721,9 +728,9 @@
                       	//handle custom attributes
                           String attributeName = atts.getValue(tags.getTagById(ATTRIBUTE_NAME));
                           String attributeValue = atts.getValue(tags.getTagById(ATTRIBUTE_VALUE));
  -                        logger.debug("    > " + tags.getTagById(ATTRIBUTE));
  -                        logger.debug("     " + tags.getTagById(ATTRIBUTE_NAME) + ": " + attributeName);
  -                        logger.debug("     " + tags.getTagById(ATTRIBUTE_VALUE) + ": " + attributeValue);
  +                        if (isDebug) logger.debug("    > " + tags.getTagById(ATTRIBUTE));
  +                        if (isDebug) logger.debug("     " + tags.getTagById(ATTRIBUTE_NAME) + ": " + attributeName);
  +                        if (isDebug) logger.debug("     " + tags.getTagById(ATTRIBUTE_VALUE) + ": " + attributeValue);
                           // If we have a container to store this attribute in, then do so.
                           if (this.m_CurrentAttrContainer!=null)
                           {
  @@ -756,28 +763,30 @@
        */
       public void endElement(String uri, String name, String qName)
       {
  +        boolean isDebug = logger.isDebugEnabled();
  +
           try
           {
               switch (getLiteralId(qName))
               {
                   case MAPPING_REPOSITORY :
                       {
  -                        logger.debug(" < " + tags.getTagById(MAPPING_REPOSITORY));
  +                        if (isDebug) logger.debug(" < " + tags.getTagById(MAPPING_REPOSITORY));
                           break;
                       }
                   case JDBC_CONNECTION_DESCRIPTOR :
                       {
  -                        logger.debug("   < " + tags.getTagById(JDBC_CONNECTION_DESCRIPTOR));
  +                        if (isDebug) logger.debug("   < " + tags.getTagById(JDBC_CONNECTION_DESCRIPTOR));
                           break;
                       }
                   case CONNECTION_POOL :
                       {
  -                        logger.debug("   < " + tags.getTagById(CONNECTION_POOL));
  +                        if (isDebug) logger.debug("   < " + tags.getTagById(CONNECTION_POOL));
                           break;
                       }
                   case CLASS_DESCRIPTOR :
                       {
  -                        logger.debug("  < " + tags.getTagById(CLASS_DESCRIPTOR));
  +                        if (isDebug) logger.debug("  < " + tags.getTagById(CLASS_DESCRIPTOR));
                           m_CurrentCLD = null;
                           m_CurrentAttrContainer = null;
                           break;
  @@ -789,27 +798,27 @@
   
                   case FIELD_DESCRIPTOR :
                       {
  -                        logger.debug("    < " + tags.getTagById(FIELD_DESCRIPTOR));
  +                        if (isDebug) logger.debug("    < " + tags.getTagById(FIELD_DESCRIPTOR));
                           m_CurrentFLD = null;
                           m_CurrentAttrContainer = m_CurrentCLD;
                           break;
                       }
                   case REFERENCE_DESCRIPTOR :
                       {
  -                        logger.debug("    < " + tags.getTagById(REFERENCE_DESCRIPTOR));
  +                        if (isDebug) logger.debug("    < " + tags.getTagById(REFERENCE_DESCRIPTOR));
                           m_CurrentORD = null;
                           m_CurrentAttrContainer = m_CurrentCLD;
                           break;
                       }
                   case FOREIGN_KEY :
                       {
  -                        logger.debug("    < " + tags.getTagById(FOREIGN_KEY));
  +                        if (isDebug) logger.debug("    < " + tags.getTagById(FOREIGN_KEY));
                           break;
                       }
   
                   case COLLECTION_DESCRIPTOR :
                       {
  -                        logger.debug("    < " + tags.getTagById(COLLECTION_DESCRIPTOR));
  +                        if (isDebug) logger.debug("    < " + tags.getTagById(COLLECTION_DESCRIPTOR));
                           m_CurrentCOD = null;
                           m_CurrentAttrContainer = m_CurrentCLD;
                           break;
  @@ -817,34 +826,34 @@
   
                   case INVERSE_FK :
                       {
  -                        logger.debug("    < " + tags.getTagById(INVERSE_FK));
  +                        if (isDebug) logger.debug("    < " + tags.getTagById(INVERSE_FK));
                           break;
                       }
   
                   case ORDERBY :
                       {
  -                        logger.debug("    < " + tags.getTagById(ORDERBY));
  +                        if (isDebug) logger.debug("    < " + tags.getTagById(ORDERBY));
                           break;
                       }
   
                   case FK_POINTING_TO_THIS_CLASS :
                       {
  -                        logger.debug("    < " + tags.getTagById(FK_POINTING_TO_THIS_CLASS));
  +                        if (isDebug) logger.debug("    < " + tags.getTagById(FK_POINTING_TO_THIS_CLASS));
                           break;
                       }
                   case FK_POINTING_TO_ITEMS_CLASS :
                       {
  -                        logger.debug("    < " + tags.getTagById(FK_POINTING_TO_ITEMS_CLASS));
  +                        if (isDebug) logger.debug("    < " + tags.getTagById(FK_POINTING_TO_ITEMS_CLASS));
                           break;
                       }
                   case ATTRIBUTE :
                       {
  -                        logger.debug("    < " + tags.getTagById(ATTRIBUTE));
  +                        if (isDebug) logger.debug("    < " + tags.getTagById(ATTRIBUTE));
                           break;
                       }
                   case DOCUMENTATION:
                       {
  -                        logger.debug("    < " + tags.getTagById(DOCUMENTATION));
  +                        if (isDebug) logger.debug("    < " + tags.getTagById(DOCUMENTATION));
                           break;
                       }
                       // handle failure:
  
  
  

Mime
View raw message