public class DataSourceAdapter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
contextName |
protected net.sf.jkniv.exception.HandleableException |
handlerException |
protected org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
DataSourceAdapter(DataSource ds,
String contextName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(CallableStatement call) |
void |
close(net.sf.jkniv.whinstone.ConnectionAdapter conn) |
void |
close(PreparedStatement stmt) |
void |
close(ResultSet rs) |
void |
close(Statement stmt) |
String |
getContextName() |
net.sf.jkniv.whinstone.transaction.Transactional |
getTransactionManager() |
net.sf.jkniv.whinstone.ConnectionAdapter |
open()
Attempts to establish a connection to the database
|
net.sf.jkniv.whinstone.ConnectionAdapter |
open(net.sf.jkniv.sqlegance.transaction.Isolation isolation)
Attempts to establish a connection to the database with specific isolation
|
protected void |
setIsolation(Connection conn,
net.sf.jkniv.sqlegance.transaction.Isolation isolation) |
protected boolean |
supportsTransactionIsolationLevel(Connection conn,
net.sf.jkniv.sqlegance.transaction.Isolation isolation) |
net.sf.jkniv.whinstone.ConnectionFactory |
with(net.sf.jkniv.exception.HandleableException handlerException) |
protected transient org.slf4j.Logger LOG
protected final String contextName
protected net.sf.jkniv.exception.HandleableException handlerException
public DataSourceAdapter(DataSource ds, String contextName)
public net.sf.jkniv.whinstone.ConnectionAdapter open()
net.sf.jkniv.sqlegance.RepositoryException - if cannot establish a connectionpublic net.sf.jkniv.whinstone.ConnectionAdapter open(net.sf.jkniv.sqlegance.transaction.Isolation isolation)
isolation - transaction level for connectionnet.sf.jkniv.sqlegance.RepositoryException - if cannot establish a connectionpublic net.sf.jkniv.whinstone.ConnectionFactory with(net.sf.jkniv.exception.HandleableException handlerException)
with in interface net.sf.jkniv.whinstone.ConnectionFactorypublic String getContextName()
getContextName in interface net.sf.jkniv.whinstone.ConnectionFactorypublic net.sf.jkniv.whinstone.transaction.Transactional getTransactionManager()
getTransactionManager in interface net.sf.jkniv.whinstone.ConnectionFactorypublic void close(net.sf.jkniv.whinstone.ConnectionAdapter conn)
close in interface net.sf.jkniv.whinstone.ConnectionFactorypublic void close(PreparedStatement stmt)
close in interface net.sf.jkniv.whinstone.ConnectionFactorypublic void close(Statement stmt)
close in interface net.sf.jkniv.whinstone.ConnectionFactorypublic void close(ResultSet rs)
close in interface net.sf.jkniv.whinstone.ConnectionFactorypublic void close(CallableStatement call)
close in interface net.sf.jkniv.whinstone.ConnectionFactoryprotected void setIsolation(Connection conn, net.sf.jkniv.sqlegance.transaction.Isolation isolation)
protected boolean supportsTransactionIsolationLevel(Connection conn, net.sf.jkniv.sqlegance.transaction.Isolation isolation)
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.