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.CommandAdaptergetContextName in interface net.sf.jkniv.whinstone.ConnectionAdapterpublic void commit() throws SQLException
commit in interface net.sf.jkniv.whinstone.ConnectionAdapterSQLExceptionpublic void rollback() throws SQLException
rollback in interface net.sf.jkniv.whinstone.ConnectionAdapterSQLExceptionpublic void close()
close in interface net.sf.jkniv.whinstone.commands.CommandAdapterclose in interface net.sf.jkniv.whinstone.ConnectionAdapterpublic boolean isClosed() throws SQLException
isClosed in interface net.sf.jkniv.whinstone.ConnectionAdapterSQLExceptionpublic boolean isAutoCommit() throws SQLException
isAutoCommit in interface net.sf.jkniv.whinstone.ConnectionAdapterSQLExceptionpublic void autoCommitOn() throws SQLException
autoCommitOn in interface net.sf.jkniv.whinstone.ConnectionAdapterSQLExceptionpublic void autoCommitOff() throws SQLException
autoCommitOff in interface net.sf.jkniv.whinstone.ConnectionAdapterSQLExceptionpublic Object getMetaData()
getMetaData in interface net.sf.jkniv.whinstone.ConnectionAdapterpublic Object unwrap()
unwrap in interface net.sf.jkniv.whinstone.ConnectionAdapterpublic <T,R> net.sf.jkniv.whinstone.commands.Command asUpdateCommand(net.sf.jkniv.whinstone.Queryable queryable)
asUpdateCommand in interface net.sf.jkniv.whinstone.commands.CommandAdapterpublic <T,R> net.sf.jkniv.whinstone.commands.Command asRemoveCommand(net.sf.jkniv.whinstone.Queryable queryable)
asRemoveCommand in interface net.sf.jkniv.whinstone.commands.CommandAdapterpublic <T,R> net.sf.jkniv.whinstone.commands.Command asAddCommand(net.sf.jkniv.whinstone.Queryable queryable)
asAddCommand in interface net.sf.jkniv.whinstone.commands.CommandAdapterpublic <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.CommandAdapterCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.