public void closeConnection(DBConnection connection) throws DBException {
connectionManager.closeConnection(connection);
}
public void executeUpdate(DBConnection dbConnection, String sql, List params, Map<String, Object> options) throws DBException {
Session session = (Session) dbConnection.getNativeConnection();
SQLQuery query = null;
try {
query = session.createSQLQuery(sql);
QueryPos qpos = QueryPos.getInstance(query);
for (Object item: params) {
qpos.add(item);
}
log.debug(sql + "\n" + params);