db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/batch BatchConnection.java BatchPreparedStatement.java PreparedStatementInvocationHandler.java
Date Tue, 14 Sep 2004 16:18:38 GMT
arminw      2004/09/14 09:18:38

  Modified:    src/java/org/apache/ojb/broker/util/sequence
                        AbstractSequenceManager.java
                        SequenceManagerHelper.java
                        SequenceManagerMSSQLGuidImpl.java
                        SequenceManagerNextValImpl.java
                        SequenceManagerStoredProcedureImpl.java
  Removed:     src/java/org/apache/ojb/broker/util/sequence
                        SequenceManagerMySQLImpl.java
               src/java/org/apache/ojb/broker/util/batch
                        BatchConnection.java BatchPreparedStatement.java
                        PreparedStatementInvocationHandler.java
  Log:
  - add new batch handling
  - update/refactoring Statement classes
  - add new PB.update(Object obj, String[] fields)
  - change insert order of m:n relations
  - change repository.dtd, add element 'batch', rename element
  'connection-pool' to 'connection-factory', remove implementation
  dependent attributes and add custom-attributes instead
  - remove unused classes
  
  Revision  Changes    Path
  1.19      +2 -2      db-ojb/src/java/org/apache/ojb/broker/util/sequence/AbstractSequenceManager.java
  
  Index: AbstractSequenceManager.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/AbstractSequenceManager.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- AbstractSequenceManager.java	5 Jul 2004 08:37:41 -0000	1.18
  +++ AbstractSequenceManager.java	14 Sep 2004 16:18:38 -0000	1.19
  @@ -59,7 +59,7 @@
                   getConnectionDescriptor().getSequenceDescriptor();
           if (sd != null)
           {
  -            this.configurationProperties.putAll(sd.getConfigurationProperties());
  +            this.configurationProperties.putAll(sd.getAttributes());
           }
       }
   
  
  
  
  1.19      +2 -2      db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHelper.java
  
  Index: SequenceManagerHelper.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHelper.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- SequenceManagerHelper.java	5 Jul 2004 08:37:41 -0000	1.18
  +++ SequenceManagerHelper.java	14 Sep 2004 16:18:38 -0000	1.19
  @@ -312,7 +312,7 @@
           try
           {
               //lookup max id for the current class
  -            stmt = brokerForClass.serviceStatementManager().getGenericStatement(cldForOriginalOrExtent,
Query.NOT_SCROLLABLE);
  +            stmt = brokerForClass.serviceStatementManager().getGenericStatement(Query.NOT_SCROLLABLE);
               rs = stmt.executeQuery(sql);
               rs.next();
               result = rs.getLong(1);
  
  
  
  1.5       +2 -2      db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerMSSQLGuidImpl.java
  
  Index: SequenceManagerMSSQLGuidImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerMSSQLGuidImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SequenceManagerMSSQLGuidImpl.java	4 Apr 2004 23:53:38 -0000	1.4
  +++ SequenceManagerMSSQLGuidImpl.java	14 Sep 2004 16:18:38 -0000	1.5
  @@ -81,7 +81,7 @@
           try
           {
               rsStmt = getBrokerForClass().serviceJdbcAccess().executeSQL(
  -                    "select newid()", field.getClassDescriptor(), Query.NOT_SCROLLABLE);
  +                    "select newid()", Query.NOT_SCROLLABLE);
               if (rsStmt.m_rs.next())
               {
                   returnValue = rsStmt.m_rs.getString(1);
  
  
  
  1.18      +3 -3      db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerNextValImpl.java
  
  Index: SequenceManagerNextValImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerNextValImpl.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- SequenceManagerNextValImpl.java	9 Jun 2004 09:27:37 -0000	1.17
  +++ SequenceManagerNextValImpl.java	14 Sep 2004 16:18:38 -0000	1.18
  @@ -160,7 +160,7 @@
           StatementManagerIF stmtMan = getBrokerForClass().serviceStatementManager();
           try
           {
  -            stmt = stmtMan.getGenericStatement(cld, Query.NOT_SCROLLABLE);
  +            stmt = stmtMan.getGenericStatement(Query.NOT_SCROLLABLE);
               rs = stmt.executeQuery(getPlatform().nextSequenceQuery(sequenceName));
               rs.next();
               result = rs.getLong(1);
  @@ -201,7 +201,7 @@
   
           try
           {
  -            stmt = stmtMan.getGenericStatement(cld, Query.NOT_SCROLLABLE);
  +            stmt = stmtMan.getGenericStatement(Query.NOT_SCROLLABLE);
               stmt.execute(getPlatform().createSequenceQuery(sequenceName));
           }
           finally
  
  
  
  1.12      +2 -2      db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java
  
  Index: SequenceManagerStoredProcedureImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- SequenceManagerStoredProcedureImpl.java	25 May 2004 11:21:02 -0000	1.11
  +++ SequenceManagerStoredProcedureImpl.java	14 Sep 2004 16:18:38 -0000	1.12
  @@ -280,7 +280,7 @@
           Statement stmt = null;
           try
           {
  -            stmt = broker.serviceStatementManager().getGenericStatement(field.getClassDescriptor(),
Query.NOT_SCROLLABLE);
  +            stmt = broker.serviceStatementManager().getGenericStatement(Query.NOT_SCROLLABLE);
               stmt.execute(sp_createSequenceQuery(sequenceName, maxKey));
           }
           catch (Exception e)
  
  
  

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


Mime
View raw message