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/platforms PlatformDb2Impl.java
Date Thu, 31 Jul 2003 16:14:06 GMT
arminw      2003/07/31 09:14:06

  Modified:    src/java/org/apache/ojb/broker/platforms
                        PlatformDb2Impl.java
  Log:
  patch by Akhil Kumar:
  add methods for databased sequencing
  (using SequenceManagerNextValImpl)
  
  Revision  Changes    Path
  1.6       +16 -1     db-ojb/src/java/org/apache/ojb/broker/platforms/PlatformDb2Impl.java
  
  Index: PlatformDb2Impl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/platforms/PlatformDb2Impl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PlatformDb2Impl.java	16 Jul 2003 15:16:07 -0000	1.5
  +++ PlatformDb2Impl.java	31 Jul 2003 16:14:06 -0000	1.6
  @@ -83,4 +83,19 @@
               super.setObjectForStatement(ps, index, value, sqlType);
           }
       }
  +
  +    public String createSequenceQuery(String sequenceName)
  +    {
  +        return "create sequence " + sequenceName;
  +    }
  +
  +    public String nextSequenceQuery(String sequenceName)
  +    {
  +        return "values nextval for "+ sequenceName;
  +    }
  +
  +    public String dropSequenceQuery(String sequenceName)
  +    {
  +        return "drop sequence " + sequenceName;
  +    }
   }
  
  
  

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