public abstract class CommonConnectionContext extends Object implements ConnectionContext
| Constructor and Description |
|---|
CommonConnectionContext() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyParameters(PreparedStatement stmt,
Object... parameters) |
void |
commit() |
void |
query(ResultSetProcessor resultSetProcessor,
String sql,
Map<String,Object> parameters) |
void |
query(ResultSetProcessor resultSetProcessor,
String sql,
Object... parameters) |
void |
query(RowCallback callback,
String sql,
Map<String,Object> parameters) |
void |
query(RowCallback callback,
String sql,
Object... parameters) |
<T> List<T> |
query(RowMapper<T> rowMapper,
String sql,
Map<String,Object> parameters) |
<T> List<T> |
query(RowMapper<T> rowMapper,
String sql,
Object... parameters) |
<T> List<T> |
queryForList(Class<T> clazz,
String sql,
Map<String,Object> parameters) |
<T> List<T> |
queryForList(Class<T> clazz,
String sql,
Object... parameters) |
<T> T |
queryForObject(RowMapper<T> rowMapper,
String sql,
Map<String,Object> parameters) |
<T> T |
queryForObject(RowMapper<T> rowMapper,
String sql,
Object... parameters) |
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
int |
update(String sql,
Map<String,Object> parameters) |
int |
update(String sql,
Object... parameters) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionpublic void setAutoCommit(boolean autoCommit)
throws SQLException
setAutoCommit in interface ConnectionContextSQLExceptionpublic void commit()
throws SQLException
commit in interface ConnectionContextSQLExceptionpublic void rollback()
throws SQLException
rollback in interface ConnectionContextSQLExceptionpublic <T> List<T> queryForList(Class<T> clazz, String sql, Object... parameters) throws SQLException
queryForList in interface ConnectionContextSQLExceptionpublic <T> List<T> queryForList(Class<T> clazz, String sql, Map<String,Object> parameters) throws SQLException
queryForList in interface ConnectionContextSQLExceptionpublic <T> List<T> query(RowMapper<T> rowMapper, String sql, Object... parameters) throws SQLException
query in interface ConnectionContextSQLExceptionpublic <T> List<T> query(RowMapper<T> rowMapper, String sql, Map<String,Object> parameters) throws SQLException
query in interface ConnectionContextSQLExceptionpublic void query(RowCallback callback, String sql, Object... parameters) throws SQLException
query in interface ConnectionContextSQLExceptionpublic void query(RowCallback callback, String sql, Map<String,Object> parameters) throws SQLException
query in interface ConnectionContextSQLExceptionpublic void query(ResultSetProcessor resultSetProcessor, String sql, Map<String,Object> parameters) throws SQLException
query in interface ConnectionContextSQLExceptionpublic void query(ResultSetProcessor resultSetProcessor, String sql, Object... parameters) throws SQLException
query in interface ConnectionContextSQLExceptionpublic <T> T queryForObject(RowMapper<T> rowMapper, String sql, Map<String,Object> parameters) throws SQLException
queryForObject in interface ConnectionContextSQLExceptionpublic <T> T queryForObject(RowMapper<T> rowMapper, String sql, Object... parameters) throws SQLException
queryForObject in interface ConnectionContextSQLExceptionprotected void applyParameters(PreparedStatement stmt, Object... parameters) throws SQLException
SQLExceptionpublic int update(String sql, Object... parameters) throws SQLException
update in interface ConnectionContextSQLExceptionpublic int update(String sql, Map<String,Object> parameters) throws SQLException
update in interface ConnectionContextSQLExceptionCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.