public class DataSourceWithLetterCase extends Object implements DataSource, WithLetterCase
| Constructor and Description |
|---|
DataSourceWithLetterCase(DataSource dataSource,
LetterCase tableLetterCase,
LetterCase columnLetterCase,
LetterCase primaryKeyLetterCase)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
LetterCase |
getColumnLetterCase()
Returns the letter case of the columns.
|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
LetterCase |
getPrimaryKeyLetterCase()
Returns the letter case of the primary keys.
|
LetterCase |
getTableLetterCase()
Returns the letter case of the tables.
|
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
<T> T |
unwrap(Class<T> iface) |
public DataSourceWithLetterCase(DataSource dataSource, LetterCase tableLetterCase, LetterCase columnLetterCase, LetterCase primaryKeyLetterCase)
dataSource - The data source.tableLetterCase - Letter case of the tables.columnLetterCase - Letter case of the columns.primaryKeyLetterCase - Letter case of the primary keys.public LetterCase getColumnLetterCase()
getColumnLetterCase in interface WithColumnLetterCasepublic LetterCase getPrimaryKeyLetterCase()
getPrimaryKeyLetterCase in interface WithPrimaryKeyLetterCasepublic LetterCase getTableLetterCase()
getTableLetterCase in interface WithTableLetterCasepublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionCopyright © 2015–2017 AssertJ. All rights reserved.