Class DataSourceWrapper
java.lang.Object
org.apache.jackrabbit.core.util.db.DataSourceWrapper
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource
This class delegates all calls to the corresponding method on the wrapped
DataSource except for the getConnection() method,
which delegates to DataSource#getConnection(String, String) with the username and password
which are given on construction.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String username, String password) intUnsupported Java 7 method.booleanisWrapperFor(Class<?> arg0) Java 6 method.voidsetLoginTimeout(int seconds) voidsetLogWriter(PrintWriter out) <T> TJava 6 method.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
DataSourceWrapper
- Parameters:
dataSource- theDataSourceto wrapusername- the username to usepassword- the password to use
-
-
Method Details
-
isWrapperFor
Java 6 method.- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
unwrap
Java 6 method.- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
getParentLogger
Unsupported Java 7 method.- Specified by:
getParentLoggerin interfaceCommonDataSource- See Also:
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getLogWriter
- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceDataSource- Throws:
SQLException
-
getLoginTimeout
- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceDataSource- Throws:
SQLException
-
setLogWriter
- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceDataSource- Throws:
SQLException
-
setLoginTimeout
- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceDataSource- Throws:
SQLException
-