db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r398738 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java
Date Mon, 01 May 2006 23:40:32 GMT
Author: arminw
Date: Mon May  1 16:40:30 2006
New Revision: 398738

URL: http://svn.apache.org/viewcvs?rev=398738&view=rev
Log:
code cleanup

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

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java?rev=398738&r1=398737&r2=398738&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerStoredProcedureImpl.java
Mon May  1 16:40:30 2006
@@ -19,7 +19,6 @@
 import org.apache.ojb.broker.PersistenceBroker;
 import org.apache.ojb.broker.platforms.PlatformException;
 import org.apache.ojb.broker.accesslayer.LookupException;
-import org.apache.ojb.broker.metadata.ClassDescriptor;
 import org.apache.ojb.broker.metadata.FieldDescriptor;
 import org.apache.ojb.broker.query.Query;
 import org.apache.ojb.broker.util.logging.Logger;
@@ -180,7 +179,7 @@
             String sequenceName = calculateSequenceName(field);
             try
             {
-                result = buildNextSequence(targetBroker, field.getClassDescriptor(), sequenceName);
+                result = buildNextSequence(targetBroker, sequenceName);
                 /*
                 if 0 was returned we assume that the stored procedure
                 did not work properly.
@@ -210,7 +209,7 @@
                 }
                 try
                 {
-                    result = buildNextSequence(targetBroker, field.getClassDescriptor(),
sequenceName);
+                    result = buildNextSequence(targetBroker, sequenceName);
                 }
                 catch (Exception e1)
                 {
@@ -232,13 +231,12 @@
      * Calls the stored procedure stored procedure throws an
      * error if it doesn't exist.
      * @param broker
-     * @param cld
      * @param sequenceName
      * @return
      * @throws LookupException
      * @throws SQLException
      */
-    protected long buildNextSequence(PersistenceBroker broker, ClassDescriptor cld, String
sequenceName)
+    protected long buildNextSequence(PersistenceBroker broker, String sequenceName)
             throws LookupException, SQLException, PlatformException
     {
         CallableStatement cs = null;



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