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 2005/10/03 19:37:35 UTC

cvs commit: db-ojb/src/test/org/apache/ojb/compare PerformanceJdbcFailoverTest.java PerformanceJdbcTest.java

arminw      2005/10/03 10:37:35

  Modified:    src/test/org/apache/ojb/compare
                        PerformanceJdbcFailoverTest.java
                        PerformanceJdbcTest.java
  Log:
  use SqlStatement as return value in all SqlGenerator methods, remove SelectStatementWrapper class
  
  Revision  Changes    Path
  1.5       +3 -3      db-ojb/src/test/org/apache/ojb/compare/PerformanceJdbcFailoverTest.java
  
  Index: PerformanceJdbcFailoverTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/compare/PerformanceJdbcFailoverTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PerformanceJdbcFailoverTest.java	1 Oct 2005 13:50:34 -0000	1.4
  +++ PerformanceJdbcFailoverTest.java	3 Oct 2005 17:37:35 -0000	1.5
  @@ -189,7 +189,7 @@
           // Use the OJB SqlGenerator to generate SQL Statements. All details about
           // Table and column names are read from the repository.xml file.
           ClassDescriptor cld = broker.getClassDescriptor(PerformanceArticle.class);
  -        String sql = broker.serviceSqlGenerator().getPreparedDeleteStatement(cld);
  +        String sql = broker.serviceSqlGenerator().getPreparedDeleteStatement(cld).getStatement();
   
           logger.debug("delete stmt: " + sql);
   
  @@ -252,7 +252,7 @@
           // Use the OJB SqlGenerator to generate SQL Statements. All details about
           // Table and column names are read from the repository.xml file.
           ClassDescriptor cld = broker.getClassDescriptor(PerformanceArticle.class);
  -        String sql = broker.serviceSqlGenerator().getPreparedInsertStatement(cld);
  +        String sql = broker.serviceSqlGenerator().getPreparedInsertStatement(cld).getStatement();
   
           logger.debug("insert stmt: " + sql);
   
  @@ -553,7 +553,7 @@
           // Use the OJB SqlGenerator to generate SQL Statements. All details about
           // Table and column names are read from the repository.xml file.
           ClassDescriptor cld = broker.getClassDescriptor(PerformanceArticle.class);
  -        String sql = broker.serviceSqlGenerator().getPreparedUpdateStatement(cld);
  +        String sql = broker.serviceSqlGenerator().getPreparedUpdateStatement(cld).getStatement();
           logger.debug("update stmt: " + sql);
   
           // update all objects
  
  
  
  1.4       +3 -3      db-ojb/src/test/org/apache/ojb/compare/PerformanceJdbcTest.java
  
  Index: PerformanceJdbcTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/compare/PerformanceJdbcTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PerformanceJdbcTest.java	29 Sep 2005 20:36:41 -0000	1.3
  +++ PerformanceJdbcTest.java	3 Oct 2005 17:37:35 -0000	1.4
  @@ -64,7 +64,7 @@
           // Use the OJB SqlGenerator to generate SQL Statements. All details about
           // Table and column names are read from the repository.xml file.
           ClassDescriptor cld = broker.getClassDescriptor(PerformanceArticle.class);
  -        String sql = broker.serviceSqlGenerator().getPreparedDeleteStatement(cld);
  +        String sql = broker.serviceSqlGenerator().getPreparedDeleteStatement(cld).getStatement();
   
           logger.debug("delete stmt: " + sql);
   
  @@ -105,7 +105,7 @@
           // Use the OJB SqlGenerator to generate SQL Statements. All details about
           // Table and column names are read from the repository.xml file.
           ClassDescriptor cld = broker.getClassDescriptor(PerformanceArticle.class);
  -        String sql = broker.serviceSqlGenerator().getPreparedInsertStatement(cld);
  +        String sql = broker.serviceSqlGenerator().getPreparedInsertStatement(cld).getStatement();
   
           logger.debug("insert stmt: " + sql);
   
  @@ -309,7 +309,7 @@
           // Use the OJB SqlGenerator to generate SQL Statements. All details about
           // Table and column names are read from the repository.xml file.
           ClassDescriptor cld = broker.getClassDescriptor(PerformanceArticle.class);
  -        String sql = broker.serviceSqlGenerator().getPreparedUpdateStatement(cld);
  +        String sql = broker.serviceSqlGenerator().getPreparedUpdateStatement(cld).getStatement();
           logger.debug("update stmt: " + sql);
   
           // update all objects
  
  
  

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