Home | History | Annotate | Download | only in shadows

Lines Matching defs:connection

14 import java.sql.Connection;
32 * Implemented as a wrapper around an embedded SQL database, accessed via JDBC. The JDBC connection is
38 private static Connection connection;
67 connection = DatabaseConfig.getMemoryConnection();
94 PreparedStatement insert = connection.prepareStatement(sqlInsertString.sql, Statement.RETURN_GENERATED_KEYS);
128 Statement statement = connection.createStatement(DatabaseConfig.getResultSetType(), ResultSet.CONCUR_READ_ONLY);
158 PreparedStatement statement = connection.prepareStatement(sqlUpdateString.sql);
176 return connection.prepareStatement(sql).executeUpdate();
190 connection.createStatement().execute(scrubbedSql);
268 return (connection != null);
277 connection.close();
278 connection = null;
287 connection.setAutoCommit(false);
298 throw new IllegalStateException("connection is not opened");
310 connection.commit();
312 connection.rollback();
314 connection.setAutoCommit(true);
336 * Allows test cases access to the underlying JDBC connection, for use in
339 * @return the connection
341 public Connection getConnection() {
342 return connection;