public class JndiDataSource extends AbstractDataSource
Constructor and Description |
---|
JndiDataSource() |
JndiDataSource(String name,
boolean autoCommit) |
Modifier and Type | Method and Description |
---|---|
TransactionManager |
createTransactionManager(Connection connection) |
Connection |
getConnection() |
String |
getName() |
void |
intitialize() |
boolean |
isAutoCommit() |
bind, executeExecutionLifecycleCleanup, executeVisitLifecycleCleanup, getConnection, getProducts, unbind, visitBefore, visitBefore
public JndiDataSource()
public JndiDataSource(String name, boolean autoCommit)
public String getName()
getName
in class AbstractDataSource
@Initialize public void intitialize()
public Connection getConnection() throws SQLException
getConnection
in class AbstractDataSource
SQLException
public boolean isAutoCommit()
isAutoCommit
in class AbstractDataSource
public TransactionManager createTransactionManager(Connection connection)
createTransactionManager
in class AbstractDataSource
Copyright © 2020. All rights reserved.