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 WithColumnLetterCase
public LetterCase getPrimaryKeyLetterCase()
getPrimaryKeyLetterCase
in interface WithPrimaryKeyLetterCase
public LetterCase getTableLetterCase()
getTableLetterCase
in interface WithTableLetterCase
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
public Connection getConnection(String username, String password) throws SQLException
getConnection
in interface DataSource
SQLException
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface CommonDataSource
SQLException
public void setLogWriter(PrintWriter out) throws SQLException
setLogWriter
in interface CommonDataSource
SQLException
public void setLoginTimeout(int seconds) throws SQLException
setLoginTimeout
in interface CommonDataSource
SQLException
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface CommonDataSource
SQLException
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
Copyright © 2015–2016 AssertJ. All rights reserved.