public class DirectDataSource extends AbstractDataSource
Constructor and Description |
---|
DirectDataSource() |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection() |
String |
getName() |
boolean |
isAutoCommit() |
void |
registerDriver() |
DirectDataSource |
setAutoCommit(boolean autoCommit) |
DirectDataSource |
setDriver(Class driver) |
DirectDataSource |
setName(String name) |
DirectDataSource |
setPassword(String password) |
DirectDataSource |
setUrl(String url) |
DirectDataSource |
setUsername(String username) |
bind, createTransactionManager, executeExecutionLifecycleCleanup, executeVisitLifecycleCleanup, getConnection, getProducts, unbind, visitBefore, visitBefore
public String getName()
getName
in class AbstractDataSource
public DirectDataSource setName(String name)
public DirectDataSource setAutoCommit(boolean autoCommit)
public DirectDataSource setDriver(Class driver)
public DirectDataSource setUrl(String url)
public DirectDataSource setUsername(String username)
public DirectDataSource setPassword(String password)
@Initialize public void registerDriver() throws SQLException
SQLException
public Connection getConnection() throws SQLException
getConnection
in class AbstractDataSource
SQLException
public boolean isAutoCommit()
isAutoCommit
in class AbstractDataSource
Copyright © 2020. All rights reserved.