db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject cvs commit: db-torque/src/rttest/org/apache/torque DataTest.java
Date Sun, 08 May 2005 17:27:25 GMT
tfischer    2005/05/08 10:27:25

  Modified:    src/rttest/org/apache/torque DataTest.java
  Log:
  shifted a helper method to the end of the class
  
  Revision  Changes    Path
  1.18      +19 -19    db-torque/src/rttest/org/apache/torque/DataTest.java
  
  Index: DataTest.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/rttest/org/apache/torque/DataTest.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- DataTest.java	5 May 2005 09:07:23 -0000	1.17
  +++ DataTest.java	8 May 2005 17:27:25 -0000	1.18
  @@ -774,24 +774,6 @@
       }
       
       /**
  -     * Deletes all authors and books in the bookstore tables
  -     * @throws Exception if the bookstore could not be cleaned
  -     */
  -    protected void cleanBookstore() throws Exception
  -    {
  -        Criteria criteria = new Criteria();
  -        criteria.add(BookPeer.BOOK_ID, (Long) null, Criteria.NOT_EQUAL);
  -        BookPeer.doDelete(criteria);
  -
  -        criteria.clear();
  -        criteria.add(
  -                AuthorPeer.AUTHOR_ID, 
  -                (Long) null, Criteria.NOT_EQUAL);
  -        AuthorPeer.doDelete(criteria);
  -    }
  -
  -    
  -    /**
        * Tests the CountHelper class
        * @throws Exception if the test fails
        */
  @@ -871,6 +853,24 @@
           
           
       /**
  +     * Deletes all authors and books in the bookstore tables
  +     * @throws Exception if the bookstore could not be cleaned
  +     */
  +    protected void cleanBookstore() throws Exception
  +    {
  +        Criteria criteria = new Criteria();
  +        criteria.add(BookPeer.BOOK_ID, (Long) null, Criteria.NOT_EQUAL);
  +        BookPeer.doDelete(criteria);
  +
  +        criteria.clear();
  +        criteria.add(
  +                AuthorPeer.AUTHOR_ID, 
  +                (Long) null, Criteria.NOT_EQUAL);
  +        AuthorPeer.doDelete(criteria);
  +    }
  +
  +    
  +    /**
        * Strips the schema and table name from a fully qualified colum name
        * This is useful for creating Query with aliases, as the constants
        * for the colum names in the data objects are fully qualified.
  
  
  

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


Mime
View raw message