You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Thomas Mahler <th...@apache.org> on 2003/01/12 10:57:01 UTC

[Fwd: OJB - PlatformOracleImpl - Sequences]


-------- Original Message --------
Subject: OJB - PlatformOracleImpl - Sequences
Date: Sat, 11 Jan 2003 15:07:34 +0100
From: Martin Harm <ma...@web.de>
Organization: http://freemail.web.de/
To: "ThomasMahler" <th...@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


Re: OJB - PlatformOracleImpl - Sequences]

Posted by Armin Waibel <ar...@code-au-lait.de>.
add changes to CVS, thanks Martin.

regards,
Armin

----- Original Message -----
From: "Thomas Mahler" <th...@apache.org>
To: "OJB Developers List" <oj...@jakarta.apache.org>
Sent: Sunday, January 12, 2003 10:57 AM
Subject: [Fwd: OJB - PlatformOracleImpl - Sequences]


>
>
> -------- Original Message --------
> Subject: OJB - PlatformOracleImpl - Sequences
> Date: Sat, 11 Jan 2003 15:07:34 +0100
> From: Martin Harm <ma...@web.de>
> Organization: http://freemail.web.de/
> To: "ThomasMahler" <th...@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
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
>