You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2004/12/18 14:33:49 UTC

cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer StatementManager.java

arminw      2004/12/18 05:33:49

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        StatementManager.java
  Log:
  improve logging
  
  Revision  Changes    Path
  1.54      +7 -5      db-ojb/src/java/org/apache/ojb/broker/accesslayer/StatementManager.java
  
  Index: StatementManager.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/StatementManager.java,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- StatementManager.java	2 Dec 2004 21:37:46 -0000	1.53
  +++ StatementManager.java	18 Dec 2004 13:33:49 -0000	1.54
  @@ -39,7 +39,6 @@
   import org.apache.ojb.broker.query.Criteria;
   import org.apache.ojb.broker.query.ExistsCriteria;
   import org.apache.ojb.broker.query.FieldCriteria;
  -import org.apache.ojb.broker.query.IdentityCriteria;
   import org.apache.ojb.broker.query.InCriterion;
   import org.apache.ojb.broker.query.NullCriteria;
   import org.apache.ojb.broker.query.Query;
  @@ -735,7 +734,8 @@
           }
           catch (SQLException e)
           {
  -            throw new PersistenceBrokerSQLException("Could not build statement ask for", e);
  +            throw new PersistenceBrokerSQLException("Could not build select statement ask for class "
  +                    + (cds != null ? cds.getClassNameOfObject() : "null"), e);
           }
           catch (LookupException e)
           {
  @@ -754,7 +754,8 @@
           }
           catch (SQLException e)
           {
  -            throw new PersistenceBrokerSQLException("Could not build statement ask for", e);
  +            throw new PersistenceBrokerSQLException("Could not build update statement ask for class "
  +                    + (cds != null ? cds.getClassNameOfObject() : "null"), e);
           }
           catch (LookupException e)
           {
  @@ -773,7 +774,8 @@
           }
           catch (SQLException e)
           {
  -            throw new PersistenceBrokerSQLException("Could not build statement ask for", e);
  +            throw new PersistenceBrokerSQLException("Could not build update statement ask for class "
  +                    + (cds != null ? cds.getClassNameOfObject() : "null"), e);
           }
           catch (LookupException e)
           {
  
  
  

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