db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mahler <t...@apache.org>
Subject [Fwd: OJB - PlatformOracleImpl - Sequences]
Date Sun, 12 Jan 2003 09:57:01 GMT


-------- Original Message --------
Subject: OJB - PlatformOracleImpl - Sequences
Date: Sat, 11 Jan 2003 15:07:34 +0100
From: Martin Harm <martin.harm@web.de>
Organization: http://freemail.web.de/
To: "ThomasMahler" <thma@apache.org>

Hi Thomas,

would be nice if you could add these missing implementations
in org.apache.ojb.broker.platforms.PlatformOracleImpl


public String createSequenceQuery(String sequenceName)
     {
         return "create sequence " + sequenceName;
     }

   public String nextSequenceQuery(String sequenceName)
     {
         return "select " + sequenceName + ".nextval from dual";
     }

   public String dropSequenceQuery(String sequenceName)
     {
         return "drop sequence " + sequenceName;
     }

Tested with Oracle 9.2.0
thanks in advance


______________________________________________________________________________
Keine Chance fur Viren! Mit WEB.DE FreeMail sind Sie auf der
sicheren Seite - Virenschutz inklusive! 
http://freemail.web.de/features/?mc=021129


Mime
View raw message