public class DriverManagerAdapter 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 |
---|
DriverManagerAdapter(Properties props,
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 DriverManagerAdapter(Properties props, 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.ConnectionFactory
public String getContextName()
getContextName
in interface net.sf.jkniv.whinstone.ConnectionFactory
public net.sf.jkniv.whinstone.transaction.Transactional getTransactionManager()
getTransactionManager
in interface net.sf.jkniv.whinstone.ConnectionFactory
public void close(net.sf.jkniv.whinstone.ConnectionAdapter conn)
close
in interface net.sf.jkniv.whinstone.ConnectionFactory
public void close(PreparedStatement stmt)
close
in interface net.sf.jkniv.whinstone.ConnectionFactory
public void close(Statement stmt)
close
in interface net.sf.jkniv.whinstone.ConnectionFactory
public void close(ResultSet rs)
close
in interface net.sf.jkniv.whinstone.ConnectionFactory
public void close(CallableStatement call)
close
in interface net.sf.jkniv.whinstone.ConnectionFactory
protected 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.