org.openmdx.kernel.application.container.spi.sql
Class LightweightXADataSource

java.lang.Object
  extended by org.openmdx.kernel.application.container.spi.sql.LightweightXADataSource
All Implemented Interfaces:
CommonDataSource, XADataSource

public class LightweightXADataSource
extends Object
implements XADataSource

Lightweight XADataSource


Constructor Summary
LightweightXADataSource(String url, Map info)
          Constructor
 
Method Summary
 int getLoginTimeout()
           
 PrintWriter getLogWriter()
           
 XAConnection getXAConnection()
           
 XAConnection getXAConnection(String user, String password)
           
 void setLoginTimeout(int seconds)
           
 void setLogWriter(PrintWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LightweightXADataSource

public LightweightXADataSource(String url,
                               Map info)
Constructor

Parameters:
url - a database url of the form jdbc:subprotocol:subname
Method Detail

getLogWriter

public PrintWriter getLogWriter()
                         throws SQLException
Specified by:
getLogWriter in interface CommonDataSource
Throws:
SQLException

getLoginTimeout

public int getLoginTimeout()
                    throws SQLException
Specified by:
getLoginTimeout in interface CommonDataSource
Throws:
SQLException

getXAConnection

public XAConnection getXAConnection()
                             throws SQLException
Specified by:
getXAConnection in interface XADataSource
Throws:
SQLException

getXAConnection

public XAConnection getXAConnection(String user,
                                    String password)
                             throws SQLException
Specified by:
getXAConnection in interface XADataSource
Throws:
SQLException

setLogWriter

public void setLogWriter(PrintWriter out)
                  throws SQLException
Specified by:
setLogWriter in interface CommonDataSource
Throws:
SQLException

setLoginTimeout

public void setLoginTimeout(int seconds)
                     throws SQLException
Specified by:
setLoginTimeout in interface CommonDataSource
Throws:
SQLException


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.