public class DistributedDataSource extends DecoratingDataSource implements java.lang.Iterable<javax.sql.DataSource>
| Constructor and Description |
|---|
DistributedDataSource(java.util.List<javax.sql.DataSource> dataSources) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataSource(javax.sql.DataSource ds) |
java.sql.Connection |
getConnection() |
(package private) java.sql.Connection |
getConnection(javax.sql.DataSource ds) |
(package private) java.sql.Connection |
getConnection(javax.sql.DataSource ds,
java.lang.String user,
java.lang.String pwd) |
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password) |
int |
getLoginTimeout() |
java.io.PrintWriter |
getLogWriter() |
java.util.logging.Logger |
getParentLogger() |
java.util.Iterator<javax.sql.DataSource> |
iterator() |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(java.io.PrintWriter out) |
addDecorator, addDecorators, clearDecorators, getDecorators, removeDecoratorappendInfo, close, equals, getDelegate, getInnermostDelegate, hashCode, isWrapperFor, toString, unwrappublic DistributedDataSource(java.util.List<javax.sql.DataSource> dataSources)
public void addDataSource(javax.sql.DataSource ds)
java.sql.Connection getConnection(javax.sql.DataSource ds)
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.Connection getConnection(javax.sql.DataSource ds,
java.lang.String user,
java.lang.String pwd)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Iterator<javax.sql.DataSource> iterator()
iterator in interface java.lang.Iterable<javax.sql.DataSource>public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcegetConnection in class DecoratingDataSourcejava.sql.SQLExceptionpublic java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcegetConnection in class DecoratingDataSourcejava.sql.SQLExceptionpublic java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.CommonDataSourcegetLogWriter in class DelegatingDataSourcejava.sql.SQLExceptionpublic int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.CommonDataSourcegetLoginTimeout in class DelegatingDataSourcejava.sql.SQLExceptionpublic void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
setLogWriter in interface javax.sql.CommonDataSourcesetLogWriter in class DelegatingDataSourcejava.sql.SQLExceptionpublic void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcesetLoginTimeout in class DelegatingDataSourcejava.sql.SQLExceptionpublic java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
getParentLogger in interface javax.sql.CommonDataSourcegetParentLogger in class DelegatingDataSourcejava.sql.SQLFeatureNotSupportedExceptionCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.