org.ow2.jonas.ee.jdbc
Class DataSourceImpl
java.lang.Object
org.ow2.jonas.ee.jdbc.DataSourceImpl
- All Implemented Interfaces:
- Serializable, Referenceable, DataSource
public class DataSourceImpl
- extends Object
- implements DataSource, Serializable, Referenceable
Description of the DataSourceImpl. This is the dataSource for the JDBC RA.
- Author:
- Eric Hardesty
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceImpl
public DataSourceImpl(ManagedConnectionFactoryImpl _mcf,
ConnectionManager _cm)
getConnection
public Connection getConnection()
throws SQLException
- Specified by:
getConnection
in interface DataSource
- Throws:
SQLException
getConnection
public Connection getConnection(String user,
String pwd)
throws SQLException
- Specified by:
getConnection
in interface DataSource
- Throws:
SQLException
getLoginTimeout
public int getLoginTimeout()
throws SQLException
- Specified by:
getLoginTimeout
in interface DataSource
- Throws:
SQLException
getLogWriter
public PrintWriter getLogWriter()
throws SQLException
- Specified by:
getLogWriter
in interface DataSource
- Throws:
SQLException
getReference
public Reference getReference()
- Specified by:
getReference
in interface Referenceable
setLoginTimeout
public void setLoginTimeout(int _loginTimeout)
throws SQLException
- Specified by:
setLoginTimeout
in interface DataSource
- Throws:
SQLException
setLogWriter
public void setLogWriter(PrintWriter _pw)
throws SQLException
- Specified by:
setLogWriter
in interface DataSource
- Throws:
SQLException
setReference
public void setReference(Reference _ref)
getMapperName
public String getMapperName()
Copyright © 2010 OW2 Consortium. All Rights Reserved.