/** * Prepare and return SQLite3 statement for SQL. Only available * in SQLite 3.0 and above, otherwise a no-op. * * @param sql SQL statement to be prepared * @return a Stmt object */ public Stmt prepare(String sql) throws SQLite.Exception { synchronized(this) { Stmt stmt = new Stmt(); stmt_prepare(sql, stmt); return stmt; } }
/** * Retrieve column data as object from exec'ed SQLite3 statement. * @param col column number, 0-based * @return Object or null */ public Object column(int col) throws SQLite.Exception { switch (column_type(col)) { case Constants.SQLITE_INTEGER: return Long.valueOf(column_long(col)); // android-changed: performance case Constants.SQLITE_FLOAT: return new Double(column_double(col)); case Constants.SQLITE_BLOB: return column_bytes(col); case Constants.SQLITE3_TEXT: return column_string(col); } return null; }
/** * Retrieve column data as object from exec'ed SQLite3 statement. * @param col column number, 0-based * @return Object or null */ public Object column(int col) throws SQLite.Exception { switch (column_type(col)) { case Constants.SQLITE_INTEGER: return Long.valueOf(column_long(col)); // android-changed: performance case Constants.SQLITE_FLOAT: return new Double(column_double(col)); case Constants.SQLITE_BLOB: return column_bytes(col); case Constants.SQLITE3_TEXT: return column_string(col); } return null; }
/** * Prepare and return SQLite3 statement for SQL. Only available * in SQLite 3.0 and above, otherwise a no-op. * * @param sql SQL statement to be prepared * @return a Stmt object */ public Stmt prepare(String sql) throws SQLite.Exception { synchronized(this) { Stmt stmt = new Stmt(); stmt_prepare(sql, stmt); return stmt; } }
/** * Retrieve column data as object from exec'ed SQLite3 statement. * @param col column number, 0-based * @return Object or null */ public Object column(int col) throws SQLite.Exception { switch (column_type(col)) { case Constants.SQLITE_INTEGER: return Long.valueOf(column_long(col)); // android-changed: performance case Constants.SQLITE_FLOAT: return new Double(column_double(col)); case Constants.SQLITE_BLOB: return column_bytes(col); case Constants.SQLITE3_TEXT: return column_string(col); } return null; }
/** * Prepare and return SQLite3 statement for SQL. Only available * in SQLite 3.0 and above, otherwise a no-op. * * @param sql SQL statement to be prepared * @return a Stmt object */ public Stmt prepare(String sql) throws SQLite.Exception { synchronized(this) { Stmt stmt = new Stmt(); stmt_prepare(sql, stmt); return stmt; } }
/** * Retrieve column data as object from exec'ed SQLite3 statement. * @param col column number, 0-based * @return Object or null */ public Object column(int col) throws SQLite.Exception { switch (column_type(col)) { case Constants.SQLITE_INTEGER: return Long.valueOf(column_long(col)); // android-changed: performance case Constants.SQLITE_FLOAT: return new Double(column_double(col)); case Constants.SQLITE_BLOB: return column_bytes(col); case Constants.SQLITE3_TEXT: return column_string(col); } return null; }
/** * Prepare and return SQLite3 statement for SQL. Only available * in SQLite 3.0 and above, otherwise a no-op. * * @param sql SQL statement to be prepared * @return a Stmt object */ public Stmt prepare(String sql) throws SQLite.Exception { synchronized(this) { Stmt stmt = new Stmt(); stmt_prepare(sql, stmt); return stmt; } }
/** * Retrieve column data as object from exec'ed SQLite3 statement. * @param col column number, 0-based * @return Object or null */ public Object column(int col) throws SQLite.Exception { switch (column_type(col)) { case Constants.SQLITE_INTEGER: return Long.valueOf(column_long(col)); // android-changed: performance case Constants.SQLITE_FLOAT: return new Double(column_double(col)); case Constants.SQLITE_BLOB: return column_bytes(col); case Constants.SQLITE3_TEXT: return column_string(col); } return null; }
/** * Prepare and return SQLite3 statement for SQL. Only available * in SQLite 3.0 and above, otherwise a no-op. * * @param sql SQL statement to be prepared * @return a Stmt object */ public Stmt prepare(String sql) throws SQLite.Exception { synchronized(this) { Stmt stmt = new Stmt(); stmt_prepare(sql, stmt); return stmt; } }
/** * Retrieve column data as object from exec'ed SQLite3 statement. * @param col column number, 0-based * @return Object or null */ public Object column(int col) throws SQLite.Exception { switch (column_type(col)) { case Constants.SQLITE_INTEGER: return Long.valueOf(column_long(col)); // android-changed: performance case Constants.SQLITE_FLOAT: return new Double(column_double(col)); case Constants.SQLITE_BLOB: return column_bytes(col); case Constants.SQLITE3_TEXT: return column_string(col); } return null; }
/** * Prepare and return SQLite3 statement for SQL. Only available * in SQLite 3.0 and above, otherwise a no-op. * * @param sql SQL statement to be prepared * @return a Stmt object */ public Stmt prepare(String sql) throws SQLite.Exception { synchronized(this) { Stmt stmt = new Stmt(); stmt_prepare(sql, stmt); return stmt; } }
/** * Retrieve column data as object from exec'ed SQLite3 statement. * @param col column number, 0-based * @return Object or null */ public Object column(int col) throws SQLite.Exception { switch (column_type(col)) { case Constants.SQLITE_INTEGER: return Long.valueOf(column_long(col)); // android-changed: performance case Constants.SQLITE_FLOAT: return new Double(column_double(col)); case Constants.SQLITE_BLOB: return column_bytes(col); case Constants.SQLITE3_TEXT: return column_string(col); } return null; }
/** * Prepare and return SQLite3 statement for SQL. Only available * in SQLite 3.0 and above, otherwise a no-op. * * @param sql SQL statement to be prepared * @return a Stmt object */ public Stmt prepare(String sql) throws SQLite.Exception { synchronized(this) { Stmt stmt = new Stmt(); stmt_prepare(sql, stmt); return stmt; } }