org.openmdx.kernel.application.container.spi.sql
Class LightweightXADataSource
java.lang.Object
org.openmdx.kernel.application.container.spi.sql.LightweightXADataSource
- All Implemented Interfaces:
- CommonDataSource, XADataSource
public class LightweightXADataSource
- extends Object
- implements XADataSource
Lightweight XADataSource
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LightweightXADataSource
public LightweightXADataSource(String url,
Map info)
- Constructor
- Parameters:
url - a database url of the form
jdbc:subprotocol:subname
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.