net.aditsu.jdbsimple
public class Conn extends Object
Connection that keeps a cache of prepared statements| Constructor and Description |
|---|
Conn(Connection c) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit() |
RSet |
getColumns(String catalog,
String schemaPattern,
String tableNamePattern,
String columnNamePattern) |
RSet |
getExportedKeys(String catalog,
String schema,
String table) |
RSet |
getImportedKeys(String catalog,
String schema,
String table) |
DatabaseMetaData |
getMetaData() |
RSet |
getPrimaryKeys(String catalog,
String schema,
String table) |
RSet |
getTables(String catalog,
String schemaPattern,
String tableNamePattern,
String[] types) |
RSet |
getTableTypes() |
Stmt |
prepareStmt(String sql)
Creates a prepared statement with the default result set features; reuses cached statement if available
|
Stmt |
prepareStmt(String sql,
boolean custom)
Creates a prepared statement; reuses cached statement if available
|
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
void |
setTransactionIsolation(IsolationLevel level) |
int |
update(String sql) |
public Conn(Connection c)
public void close()
public void setAutoCommit(boolean autoCommit)
public void commit()
public void rollback()
public Stmt prepareStmt(String sql)
public Stmt prepareStmt(String sql, boolean custom)
sql - SQL string to preparecustom - flag indicating whether to use additional parameters in prepareStatement
(result set type, concurrency and holdability - needed for some drivers, unsupported by others)public RSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types)
public RSet getTableTypes()
public RSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
public DatabaseMetaData getMetaData()
public void setTransactionIsolation(IsolationLevel level)
public int update(String sql)