tests/data/src/db/Database.java
/***
	 * Performs a query in the Database with no parameters
	 * @param sql The SQL query to run in the database
	 * @return DBResult object containing an array of Row objects
	 */
Performs a query in the Database with no parameters
@param sql The SQL query to run in the database
@return DBResult object containing an array of Row objects
Performs a query in the Database with no parameters @param sql The SQL query to run in the database @return DBResult object containing an array of Row objects
public DBResult query(String sql) {
		ResultSet resultSet = null;
		DBResult result = null;
		try {
			Statement statement = this.connection.createStatement();
			resultSet = statement.executeQuery(sql);
			result = new DBResult(resultSet);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return result;
	}
public DBResult query ( String sql ) { ResultSet resultSet = null ; DBResult result = null ; try { Statement statement = this . connection . createStatement ( ) ; resultSet = statement . executeQuery ( sql ) ; result = new DBResult ( resultSet ) ; } catch ( SQLException e ) { e . printStackTrace ( ) ; } return result ; }
Performs a query in the Database with no parameters
 @param sql The SQL query to run in the database
 @return DBResult object containing an array of Row objects
Performs a query in the Database with no parameters @param sql The SQL query to run in the database @return DBResult object containing an array of Row objects