org.apache.openejb.client
Class ClientDataSource
java.lang.Object
org.apache.openejb.client.ClientDataSource
- All Implemented Interfaces:
- Wrapper, CommonDataSource, DataSource
public class ClientDataSource
- extends Object
- implements DataSource
- Version:
- $Rev: 1167256 $ $Date: 2011-09-09 15:48:17 +0000 (Fri, 09 Sep 2011) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientDataSource
public ClientDataSource(DataSourceMetaData d)
ClientDataSource
public ClientDataSource(String jdbcDriver,
String jdbcUrl,
String defaultUserName,
String defaultPassword)
main
public static void main(String[] args)
throws URISyntaxException
- Throws:
URISyntaxException
getConnection
public Connection getConnection()
throws SQLException
- Specified by:
getConnection in interface DataSource
- Throws:
SQLException
getConnection
public Connection getConnection(String username,
String password)
throws SQLException
- Specified by:
getConnection in interface DataSource
- Throws:
SQLException
getLoginTimeout
public int getLoginTimeout()
throws SQLException
- Specified by:
getLoginTimeout in interface CommonDataSource
- Throws:
SQLException
getLogWriter
public PrintWriter getLogWriter()
throws SQLException
- Specified by:
getLogWriter in interface CommonDataSource
- Throws:
SQLException
setLoginTimeout
public void setLoginTimeout(int seconds)
throws SQLException
- Specified by:
setLoginTimeout in interface CommonDataSource
- Throws:
SQLException
setLogWriter
public void setLogWriter(PrintWriter out)
throws SQLException
- Specified by:
setLogWriter in interface CommonDataSource
- Throws:
SQLException
isWrapperFor
public boolean isWrapperFor(Class<?> iface)
- Specified by:
isWrapperFor in interface Wrapper
unwrap
public <T> T unwrap(Class<T> iface)
throws SQLException
- Specified by:
unwrap in interface Wrapper
- Throws:
SQLException
getParentLogger
public Logger getParentLogger()
throws SQLFeatureNotSupportedException
- Throws:
SQLFeatureNotSupportedException
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.