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 CommandAdapter
getContextName
in interface ConnectionAdapter
public void commit() throws SQLException
commit
in interface ConnectionAdapter
SQLException
public void rollback() throws SQLException
rollback
in interface ConnectionAdapter
SQLException
public void close()
close
in interface CommandAdapter
close
in interface ConnectionAdapter
public boolean isClosed() throws SQLException
isClosed
in interface ConnectionAdapter
SQLException
public boolean isAutoCommit() throws SQLException
isAutoCommit
in interface ConnectionAdapter
SQLException
public void autoCommitOn() throws SQLException
autoCommitOn
in interface ConnectionAdapter
SQLException
public void autoCommitOff() throws SQLException
autoCommitOff
in interface ConnectionAdapter
SQLException
public Object getMetaData()
getMetaData
in interface ConnectionAdapter
public Object unwrap()
unwrap
in interface ConnectionAdapter
public <T,R> Command asUpdateCommand(Queryable queryable)
asUpdateCommand
in interface CommandAdapter
public <T,R> Command asRemoveCommand(Queryable queryable)
asRemoveCommand
in interface CommandAdapter
public <T,R> Command asAddCommand(Queryable queryable)
asAddCommand
in interface CommandAdapter
public <T,R> Command asSelectCommand(Queryable queryable, ResultRow<T,R> overloadResultRow)
asSelectCommand
in interface CommandAdapter
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.