public class MigratingDataSource extends DataSourceDelegate
| Constructor and Description |
|---|
MigratingDataSource(DataSource delegate) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
void |
setMigrator(DatabaseMigrator migrator) |
void |
setPassword(String password) |
void |
setUsername(String username) |
getLoginTimeout, getLogWriter, getParentLogger, isWrapperFor, setLoginTimeout, setLogWriter, unwrappublic MigratingDataSource(DataSource delegate)
public Connection getConnection() throws SQLException
getConnection in interface DataSourcegetConnection in class DataSourceDelegateSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourcegetConnection in class DataSourceDelegateSQLExceptionpublic void setMigrator(DatabaseMigrator migrator)
public void setUsername(String username)
public void setPassword(String password)
Copyright © 2011-2014. All Rights Reserved.