public class JdbcConnectionAdapter extends Object implements net.sf.jkniv.whinstone.ConnectionAdapter
Constructor and Description |
---|
JdbcConnectionAdapter(String contextName,
Connection conn,
net.sf.jkniv.exception.HandleableException handlerException) |
Modifier and Type | Method and Description |
---|---|
<T,R> net.sf.jkniv.whinstone.commands.Command |
asAddCommand(net.sf.jkniv.whinstone.Queryable queryable) |
<T,R> net.sf.jkniv.whinstone.commands.Command |
asRemoveCommand(net.sf.jkniv.whinstone.Queryable queryable) |
<T,R> net.sf.jkniv.whinstone.commands.Command |
asSelectCommand(net.sf.jkniv.whinstone.Queryable queryable,
net.sf.jkniv.whinstone.ResultRow<T,R> overloadResultRow) |
<T,R> net.sf.jkniv.whinstone.commands.Command |
asUpdateCommand(net.sf.jkniv.whinstone.Queryable queryable) |
void |
autoCommitOff() |
void |
autoCommitOn() |
void |
close() |
void |
commit() |
String |
getContextName() |
Object |
getMetaData() |
boolean |
isAutoCommit() |
boolean |
isClosed() |
void |
rollback() |
Object |
unwrap() |
public JdbcConnectionAdapter(String contextName, Connection conn, net.sf.jkniv.exception.HandleableException handlerException)
public String getContextName()
getContextName
in interface net.sf.jkniv.whinstone.commands.CommandAdapter
getContextName
in interface net.sf.jkniv.whinstone.ConnectionAdapter
public void commit() throws SQLException
commit
in interface net.sf.jkniv.whinstone.ConnectionAdapter
SQLException
public void rollback() throws SQLException
rollback
in interface net.sf.jkniv.whinstone.ConnectionAdapter
SQLException
public void close()
close
in interface net.sf.jkniv.whinstone.commands.CommandAdapter
close
in interface net.sf.jkniv.whinstone.ConnectionAdapter
public boolean isClosed() throws SQLException
isClosed
in interface net.sf.jkniv.whinstone.ConnectionAdapter
SQLException
public boolean isAutoCommit() throws SQLException
isAutoCommit
in interface net.sf.jkniv.whinstone.ConnectionAdapter
SQLException
public void autoCommitOn() throws SQLException
autoCommitOn
in interface net.sf.jkniv.whinstone.ConnectionAdapter
SQLException
public void autoCommitOff() throws SQLException
autoCommitOff
in interface net.sf.jkniv.whinstone.ConnectionAdapter
SQLException
public Object getMetaData()
getMetaData
in interface net.sf.jkniv.whinstone.ConnectionAdapter
public Object unwrap()
unwrap
in interface net.sf.jkniv.whinstone.ConnectionAdapter
public <T,R> net.sf.jkniv.whinstone.commands.Command asUpdateCommand(net.sf.jkniv.whinstone.Queryable queryable)
asUpdateCommand
in interface net.sf.jkniv.whinstone.commands.CommandAdapter
public <T,R> net.sf.jkniv.whinstone.commands.Command asRemoveCommand(net.sf.jkniv.whinstone.Queryable queryable)
asRemoveCommand
in interface net.sf.jkniv.whinstone.commands.CommandAdapter
public <T,R> net.sf.jkniv.whinstone.commands.Command asAddCommand(net.sf.jkniv.whinstone.Queryable queryable)
asAddCommand
in interface net.sf.jkniv.whinstone.commands.CommandAdapter
public <T,R> net.sf.jkniv.whinstone.commands.Command asSelectCommand(net.sf.jkniv.whinstone.Queryable queryable, net.sf.jkniv.whinstone.ResultRow<T,R> overloadResultRow)
asSelectCommand
in interface net.sf.jkniv.whinstone.commands.CommandAdapter
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.