arminw | 2 Mar 01:49 2007
Picon

svn commit: r513563 - in /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb: broker/AbstractArticle.java broker/cache/ObjectCacheTest.java odmg/DListTest.java odmg/ObjectImageTest.java

Author: arminw
Date: Thu Mar  1 16:49:40 2007
New Revision: 513563

URL: http://svn.apache.org/viewvc?view=rev&rev=513563
Log:
update tests

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/AbstractArticle.java
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/cache/ObjectCacheTest.java
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/DListTest.java
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/ObjectImageTest.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/AbstractArticle.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/AbstractArticle.java?view=diff&rev=513563&r1=513562&r2=513563
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/AbstractArticle.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/AbstractArticle.java Thu
Mar  1 16:49:40 2007
 <at>  <at>  -1,5 +1,7  <at>  <at> 
 package org.apache.ojb.broker;

+import org.apache.commons.lang.ClassUtils;
+
 /**
  *  <at> ojb.class generate-table-info="false"
  */
 <at>  <at>  -12,7 +14,7  <at>  <at> 
         String groupId = "" + productGroupId;
(Continue reading)

arminw | 2 Mar 01:52 2007
Picon

svn commit: r513565 - in /db/ojb/branches/OJB_1_0_RELEASE/src: schema/ test/org/apache/ojb/ test/org/apache/ojb/broker/ test/org/apache/ojb/broker/sequence/

Author: arminw
Date: Thu Mar  1 16:52:47 2007
New Revision: 513565

URL: http://svn.apache.org/viewvc?view=rev&rev=513565
Log:
add tests, update to check 
- new database dependent LIMIT/OFFSET support
- support of Statement.getGeneratedKeys() in database identity column based SequenceManager

Added:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PaginationTest.java
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit_pagination.xml
Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-schema.xml
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/AllTests.java
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/PersistenceBrokerTest.java
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/sequence/DatabaseIdentityHsqlTest.java
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/sequence/DatabaseIdentityMaxDBTest.java
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/sequence/DatabaseIdentityMySqlTest.java
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/sequence/DatabaseIdentityTest.java
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository.xml
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_database.xml
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit_meta_seq.xml

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-schema.xml
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-schema.xml?view=diff&rev=513565&r1=513564&r2=513565
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-schema.xml (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-schema.xml Thu Mar  1 16:52:47 2007
(Continue reading)

arminw | 2 Mar 01:55 2007
Picon

svn commit: r513566 - in /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence: AbstractSequenceManager.java PerFieldManager.java SequenceManager.java SequenceManagerHighLowImpl.java SequenceManagerIdentityImpl.java

Author: arminw
Date: Thu Mar  1 16:55:32 2007
New Revision: 513566

URL: http://svn.apache.org/viewvc?view=rev&rev=513566
Log:
SequenceManager changes to support of Statement.getGeneratedKeys() in database identity column based
sequence manager

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/AbstractSequenceManager.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/PerFieldManager.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/SequenceManager.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHighLowImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerIdentityImpl.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/AbstractSequenceManager.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/AbstractSequenceManager.java?view=diff&rev=513566&r1=513565&r2=513566
==============================================================================
---
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/AbstractSequenceManager.java (original)
+++
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/AbstractSequenceManager.java
Thu Mar  1 16:55:32 2007
 <at>  <at>  -16,6 +16,7  <at>  <at> 
  */

 import java.util.Properties;
+import java.sql.Statement;

(Continue reading)

arminw | 2 Mar 01:56 2007
Picon

svn commit: r513567 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java

Author: arminw
Date: Thu Mar  1 16:56:18 2007
New Revision: 513567

URL: http://svn.apache.org/viewvc?view=rev&rev=513567
Log:
cleanup

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java?view=diff&rev=513567&r1=513566&r2=513567
==============================================================================
---
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java (original)
+++
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java
Thu Mar  1 16:56:18 2007
 <at>  <at>  -61,7 +61,6  <at>  <at> 
     public static final String PARAM_NAME_UNWRAP_ALLOWED = "accessToUnderlyingConnectionAllowed";
     public static final String PARAM_NAME_POOL_STATEMENTS = "poolPreparedStatements";
     public static final String PARAM_NAME_STATEMENT_POOL_MAX_TOTAL = "maxOpenPreparedStatements";
-    public static final String PARAM_INITIAL_SIZE = "initialSize";

     private Logger log = LoggerFactory.getLogger(ConnectionFactoryDBCPImpl.class);
arminw | 2 Mar 01:56 2007
Picon

svn commit: r513568 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/ExceptionHelper.java

Author: arminw
Date: Thu Mar  1 16:56:52 2007
New Revision: 513568

URL: http://svn.apache.org/viewvc?view=rev&rev=513568
Log:
fix

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/ExceptionHelper.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/ExceptionHelper.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/ExceptionHelper.java?view=diff&rev=513568&r1=513567&r2=513568
==============================================================================
---
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/ExceptionHelper.java (original)
+++
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/ExceptionHelper.java
Thu Mar  1 16:56:52 2007
 <at>  <at>  -281,6 +281,10  <at>  <at> 
                         msg.append("=");
                         msg.append(fields[i].getPersistentField().get(obj));
                     }
+                    else
+                    {
+                        msg.append("=null");
+                    }
                 }
                 catch(Exception ignore)
                 {
(Continue reading)

arminw | 2 Mar 01:58 2007
Picon

svn commit: r513569 [2/2] - in /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker: ./ accesslayer/ accesslayer/sql/ core/ metadata/ platforms/ query/

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformOracleImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformOracleImpl.java?view=diff&rev=513569&r1=513568&r2=513569
==============================================================================
---
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformOracleImpl.java (original)
+++
db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformOracleImpl.java
Thu Mar  1 16:58:55 2007
 <at>  <at>  -34,6 +34,7  <at>  <at> 

 import org.apache.commons.lang.SerializationUtils;
 import org.apache.ojb.broker.PersistenceBrokerSQLException;
+import org.apache.ojb.broker.query.Query;
 import org.apache.ojb.broker.metadata.FieldDescriptor;
 import org.apache.ojb.broker.metadata.JdbcConnectionDescriptor;
 import org.apache.ojb.broker.util.ClassHelper;
 <at>  <at>  -58,78 +59,78  <at>  <at> 
  *
  * <table cellspacing="2" cellpadding="2" border="3" frame="box">
  * <tr>
- *     <td><strong>Property Key</strong></td>
- *     <td><strong>Property Values</strong></td>
+ * <td><strong>Property Key</strong></td>
+ * <td><strong>Property Values</strong></td>
  * </tr>
  * <tr>
- *     <td>sequenceStart</td>
- *     <td>
- *          DEPRECATED. Database sequence specific property.<br/>
- *          Specifies the first sequence number to be
(Continue reading)

arminw | 2 Mar 01:58 2007
Picon

svn commit: r513569 [1/2] - in /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker: ./ accesslayer/ accesslayer/sql/ core/ metadata/ platforms/ query/

Author: arminw
Date: Thu Mar  1 16:58:55 2007
New Revision: 513569

URL: http://svn.apache.org/viewvc?view=rev&rev=513569
Log:
add support for database dependent LIMIT/OFFSET queries

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/PersistenceBroker.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ChainingIterator.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/JdbcAccessImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/OJBIterator.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/PagingIterator.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/RsIterator.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/StatementManager.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlSelectStatement.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/DelegatingPersistenceBroker.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/PersistenceBrokerBean.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/metadata/JdbcConnectionDescriptor.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/Platform.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformDb2Impl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformDefaultImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformHsqldbImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformMsSQLServerImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformMySQLImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformOracleImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformPostgreSQLImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformSapdbImpl.java
(Continue reading)

arminw | 2 Mar 02:00 2007
Picon

svn commit: r513570 - /db/ojb/branches/OJB_1_0_RELEASE/build.xml

Author: arminw
Date: Thu Mar  1 17:00:47 2007
New Revision: 513570

URL: http://svn.apache.org/viewvc?view=rev&rev=513570
Log:
add comments

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/build.xml

Modified: db/ojb/branches/OJB_1_0_RELEASE/build.xml
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/build.xml?view=diff&rev=513570&r1=513569&r2=513570
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/build.xml (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/build.xml Thu Mar  1 17:00:47 2007
 <at>  <at>  -611,21 +611,21  <at>  <at> 
              basedir="${tutorial1.src.dir}"
              includes="${tutorial1.src.includes}"/>

-    	<!-- Tutorial 1 src -->
+    	<!-- Tutorial 2 src -->
     	<delete file="${dist}/${tutorial2.src-jar.name}"
         		failonerror="false"/>
         <jar jarfile="${dist}/${tutorial2.src-jar.name}"
              basedir="${tutorial2.src.dir}"
              includes="${tutorial2.src.includes}"/>

-    	<!-- Tutorial 1 src -->
+    	<!-- Tutorial 5 src -->
(Continue reading)

arminw | 2 Mar 02:02 2007
Picon

svn commit: r513571 - /db/ojb/branches/OJB_1_0_RELEASE/profile/oracle9i.profile

Author: arminw
Date: Thu Mar  1 17:02:05 2007
New Revision: 513571

URL: http://svn.apache.org/viewvc?view=rev&rev=513571
Log:
remove 'ok' entry

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/profile/oracle9i.profile

Modified: db/ojb/branches/OJB_1_0_RELEASE/profile/oracle9i.profile
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/profile/oracle9i.profile?view=diff&rev=513571&r1=513570&r2=513571
==============================================================================
Binary files - no diff available.
arminw | 2 Mar 02:02 2007
Picon

svn commit: r513572 - /db/ojb/branches/OJB_1_0_RELEASE/samples/misc/src/java/org/apache/ojb/tutorials/PBExample.java

Author: arminw
Date: Thu Mar  1 17:02:39 2007
New Revision: 513572

URL: http://svn.apache.org/viewvc?view=rev&rev=513572
Log:
minor changes

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/samples/misc/src/java/org/apache/ojb/tutorials/PBExample.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/samples/misc/src/java/org/apache/ojb/tutorials/PBExample.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/samples/misc/src/java/org/apache/ojb/tutorials/PBExample.java?view=diff&rev=513572&r1=513571&r2=513572
==============================================================================
---
db/ojb/branches/OJB_1_0_RELEASE/samples/misc/src/java/org/apache/ojb/tutorials/PBExample.java (original)
+++
db/ojb/branches/OJB_1_0_RELEASE/samples/misc/src/java/org/apache/ojb/tutorials/PBExample.java
Thu Mar  1 17:02:39 2007
 <at>  <at>  -21,7 +21,9  <at>  <at> 
 import org.apache.ojb.broker.PersistenceBrokerException;
 import org.apache.ojb.broker.PersistenceBrokerFactory;
 import org.apache.ojb.broker.query.Criteria;
+import org.apache.ojb.broker.query.Query;
 import org.apache.ojb.broker.query.QueryByCriteria;
+import org.apache.ojb.broker.query.QueryFactory;

 /**
  * PB-api usage examples.
 <at>  <at>  -44,6 +46,11  <at>  <at> 
(Continue reading)


Gmane