Search in sources :

Example 1 with CursorResultSet

use of io.requery.android.sqlite.CursorResultSet in project requery by requery.

the class SqlitexPreparedStatement method executeQuery.

@Override
public ResultSet executeQuery() throws SQLException {
    try {
        String[] args = bindingsToArray();
        cursor = connection.getDatabase().rawQuery(getSql(), args);
        return queryResult = new CursorResultSet(this, cursor, false);
    } catch (SQLiteException e) {
        SqlitexConnection.throwSQLException(e);
    }
    return null;
}
Also used : CursorResultSet(io.requery.android.sqlite.CursorResultSet) SQLiteException(android.database.sqlite.SQLiteException)

Example 2 with CursorResultSet

use of io.requery.android.sqlite.CursorResultSet in project requery by requery.

the class SqlCipherPreparedStatement method executeQuery.

@Override
public ResultSet executeQuery() throws SQLException {
    try {
        String[] args = bindingsToArray();
        cursor = connection.getDatabase().rawQuery(getSql(), args);
        return queryResult = new CursorResultSet(this, cursor, false);
    } catch (SQLiteException e) {
        SqlCipherConnection.throwSQLException(e);
    }
    return null;
}
Also used : CursorResultSet(io.requery.android.sqlite.CursorResultSet) SQLiteException(net.sqlcipher.database.SQLiteException)

Aggregations

CursorResultSet (io.requery.android.sqlite.CursorResultSet)2 SQLiteException (android.database.sqlite.SQLiteException)1 SQLiteException (net.sqlcipher.database.SQLiteException)1