public class JdbcConnectionAdapter extends Object implements ConnectionAdapter
| Constructor and Description |
|---|
JdbcConnectionAdapter(String contextName,
Connection conn,
HandleableException handlerException) |
| Modifier and Type | Method and Description |
|---|---|
<T,R> Command |
asAddCommand(Queryable queryable) |
<T,R> Command |
asRemoveCommand(Queryable queryable) |
<T,R> Command |
asSelectCommand(Queryable queryable,
ResultRow<T,R> overloadResultRow) |
<T,R> Command |
asUpdateCommand(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, HandleableException handlerException)
public String getContextName()
getContextName in interface CommandAdaptergetContextName in interface ConnectionAdapterpublic void commit() throws SQLException
commit in interface ConnectionAdapterSQLExceptionpublic void rollback() throws SQLException
rollback in interface ConnectionAdapterSQLExceptionpublic void close()
close in interface CommandAdapterclose in interface ConnectionAdapterpublic boolean isClosed() throws SQLException
isClosed in interface ConnectionAdapterSQLExceptionpublic boolean isAutoCommit() throws SQLException
isAutoCommit in interface ConnectionAdapterSQLExceptionpublic void autoCommitOn() throws SQLException
autoCommitOn in interface ConnectionAdapterSQLExceptionpublic void autoCommitOff() throws SQLException
autoCommitOff in interface ConnectionAdapterSQLExceptionpublic Object getMetaData()
getMetaData in interface ConnectionAdapterpublic Object unwrap()
unwrap in interface ConnectionAdapterpublic <T,R> Command asUpdateCommand(Queryable queryable)
asUpdateCommand in interface CommandAdapterpublic <T,R> Command asRemoveCommand(Queryable queryable)
asRemoveCommand in interface CommandAdapterpublic <T,R> Command asAddCommand(Queryable queryable)
asAddCommand in interface CommandAdapterpublic <T,R> Command asSelectCommand(Queryable queryable, ResultRow<T,R> overloadResultRow)
asSelectCommand in interface CommandAdapterCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.