Package net.sf.jkniv.whinstone
Interface ConnectionAdapter
-
- All Superinterfaces:
CommandAdapter
public interface ConnectionAdapter extends CommandAdapter
Adapter to abstract the Jdbc ConnectionConnectionrepresenting a connection/session to a specific database (RDBMS or NoSQL).- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidautoCommitOff()voidautoCommitOn()voidclose()voidcommit()StringgetContextName()ObjectgetMetaData()booleanisAutoCommit()booleanisClosed()voidrollback()Objectunwrap()-
Methods inherited from interface net.sf.jkniv.whinstone.commands.CommandAdapter
asAddCommand, asRemoveCommand, asSelectCommand, asUpdateCommand
-
-
-
-
Method Detail
-
getContextName
String getContextName()
- Specified by:
getContextNamein interfaceCommandAdapter
-
commit
void commit() throws SQLException- Throws:
SQLException
-
rollback
void rollback() throws SQLException- Throws:
SQLException
-
close
void close()
- Specified by:
closein interfaceCommandAdapter
-
isClosed
boolean isClosed() throws SQLException- Throws:
SQLException
-
isAutoCommit
boolean isAutoCommit() throws SQLException- Throws:
SQLException
-
autoCommitOn
void autoCommitOn() throws SQLException- Throws:
SQLException
-
autoCommitOff
void autoCommitOff() throws SQLException- Throws:
SQLException
-
getMetaData
Object getMetaData()
-
unwrap
Object unwrap()
-
-