cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Wellmann ...@piponline.net>
Subject Re: How to disable Transactions in Cayenne
Date Tue, 06 Dec 2011 15:10:39 GMT
Hello Juergen,

sometimes it's so simple! Thank you for your hint and the Source!

Many Regards

Dirk

Am 06.12.2011 11:44, schrieb Juergen Saar:
> /*
>   * Created on 05.08.2004
>   */
> package com.dingens.ifx.persistence.jdbc;
>
> import java.sql.Connection;
> import java.sql.Driver;
> import java.sql.DriverManager;
> import java.sql.SQLException;
> import java.util.Properties;
>
> import org.apache.log4j.Logger;
>
> import com.informix.jdbc.IfxDriver;
>
> public class IfxNonTransDriver extends IfxDriver {
>    static {
>      try {
>        Driver obj = new IfxDriver();
>        DriverManager.registerDriver(new IfxNonTransDriver());
>        DriverManager.deregisterDriver(obj);
>      } catch (Exception e) {
>        Logger.getLogger(IfxNonTransDriver.class).error("", e);
>      }
>    }
>
>    public IfxNonTransDriver() {
>    }
>
>    /* (non-Javadoc)
>     * @see java.sql.Driver#connect(java.lang.String, java.util.Properties)
>     */
>    public Connection connect(String arg0, Properties arg1) throws
> SQLException {
>      return new IfxNonTransConnection(super.connect(arg0, arg1));
>    }
> }
>
>
>


Mime
View raw message