db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r395815 - in /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms: PlatformDb2Impl.java PlatformOracleImpl.java PlatformSapdbImpl.java
Date Fri, 21 Apr 2006 08:51:08 GMT
Author: arminw
Date: Fri Apr 21 01:51:05 2006
New Revision: 395815

URL: http://svn.apache.org/viewcvs?rev=395815&view=rev
Log:
fix problem with database sequence NOCACHE flag

Modified:
    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/PlatformOracleImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformSapdbImpl.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformDb2Impl.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformDb2Impl.java?rev=395815&r1=395814&r2=395815&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformDb2Impl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformDb2Impl.java
Fri Apr 21 01:51:05 2006
@@ -224,7 +224,9 @@
             value = SequenceManagerHelper.getSeqCacheValue(prop);
             if(value != null)
             {
-                query.append(" CACHE ").append(value.longValue());
+                long cache = value.longValue();
+                if(cache > 0) query.append(" CACHE ").append(value.longValue());
+                else query.append(" NOCACHE");
             }
 
             b = SequenceManagerHelper.getSeqOrderValue(prop);

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformOracleImpl.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformOracleImpl.java?rev=395815&r1=395814&r2=395815&view=diff
==============================================================================
--- 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
Fri Apr 21 01:51:05 2006
@@ -371,7 +371,9 @@
             value = SequenceManagerHelper.getSeqCacheValue(prop);
             if(value != null)
             {
-                query.append(" CACHE ").append(value.longValue());
+                long cache = value.longValue();
+                if(cache > 0) query.append(" CACHE ").append(value.longValue());
+                else query.append(" NOCACHE");
             }
 
             b = SequenceManagerHelper.getSeqOrderValue(prop);

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformSapdbImpl.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformSapdbImpl.java?rev=395815&r1=395814&r2=395815&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformSapdbImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformSapdbImpl.java
Fri Apr 21 01:51:05 2006
@@ -213,7 +213,9 @@
             value = SequenceManagerHelper.getSeqCacheValue(prop);
             if(value != null)
             {
-                query.append(" CACHE ").append(value.longValue());
+                long cache = value.longValue();
+                if(cache > 0) query.append(" CACHE ").append(value.longValue());
+                else query.append(" NOCACHE");
             }
 
             b = SequenceManagerHelper.getSeqOrderValue(prop);



---------------------------------------------------------------------
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