@Override public String call(final SQLiteStatement statement) throws Exception { return statement.getColumnName(index); } });
@Override public String call() throws SQLiteException { SQLiteStatement stmt = stmt(connectionPtr, statementPtr); return stmt.getColumnName(index); } });
@Override public String call(final SQLiteStatement statement) throws Exception { return statement.getColumnName(index); } });
@Override public String call() throws SQLiteException { SQLiteStatement stmt = stmt(connectionPtr, statementPtr); return stmt.getColumnName(index); } });
@Override public String call(final SQLiteStatement statement) throws Exception { return statement.getColumnName(index); } });
static List<String> getColumnNames(SQLiteStatement stmt) throws SQLiteException { // Log.v(LOG_TAG, "getColumnNames()"); List<String> columnNames = new ArrayList<String>(); int columnCount = stmt.columnCount(); for (int i = 0; i < columnCount; i++) { columnNames.add(i, stmt.getColumnName(i)); } // Log.v(LOG_TAG, "columnNames:" + columnNames); return columnNames; }
public SQLiteQuery(SQLiteConnection connection, String sqlQuery, boolean cacheStmt) throws SQLiteException { super(); this.queryString = sqlQuery; this.stmt = connection.prepare(sqlQuery, cacheStmt); HashMap<String, Integer> colIdxByColName = new HashMap<String, Integer>(); int nbCols = stmt.columnCount(); for (int colIdx = 0; colIdx < nbCols; colIdx++) { String colName = stmt.getColumnName(colIdx); colIdxByColName.put(colName, colIdx); } this.resultDesc = new SQLiteResultDescriptor(colIdxByColName); }
public SQLiteQuery(SQLiteConnection connection, String sqlQuery, boolean cacheStmt) throws SQLiteException { super(); this.queryString = sqlQuery; this.stmt = connection.prepare(sqlQuery, cacheStmt); HashMap<String, Integer> colIdxByColName = new HashMap<String, Integer>(); int nbCols = stmt.columnCount(); for (int colIdx = 0; colIdx < nbCols; colIdx++) { String colName = stmt.getColumnName(colIdx); colIdxByColName.put(colName, colIdx); } this.resultDesc = new SQLiteResultDescriptor(colIdxByColName); }
objectToRead.put(st.getColumnName(i), st.columnValue(i));
String[] columnNames = new String[columns]; for (int i = 0; i < columns; i++) { columnNames[i] = String.valueOf(st.getColumnName(i)); widths[i] = columnNames[i].length();
@Override public void endWindow() { try { commitStatement.step(); commitStatement.reset(); if (bindings != null) { for (int i = 0; i < bindings.size(); i++) { execStatement.bind(i, bindings.get(i).toString()); } } int columnCount = execStatement.columnCount(); while (execStatement.step()) { HashMap<String, Object> resultRow = new HashMap<String, Object>(); for (int i = 0; i < columnCount; i++) { resultRow.put(execStatement.getColumnName(i), execStatement.columnValue(i)); } this.result.emit(resultRow); } execStatement.reset(); for (SQLiteStatement st : deleteStatements) { st.step(); st.reset(); } } catch (SQLiteException ex) { throw new RuntimeException(ex); } bindings = null; }
@Override public void endWindow() { try { commitStatement.step(); commitStatement.reset(); if (bindings != null) { for (int i = 0; i < bindings.size(); i++) { execStatement.bind(i, bindings.get(i).toString()); } } int columnCount = execStatement.columnCount(); while (execStatement.step()) { HashMap<String, Object> resultRow = new HashMap<String, Object>(); for (int i = 0; i < columnCount; i++) { resultRow.put(execStatement.getColumnName(i), execStatement.columnValue(i)); } this.result.emit(resultRow); } execStatement.reset(); for (SQLiteStatement st : deleteStatements) { st.step(); st.reset(); } } catch (SQLiteException ex) { throw new RuntimeException(ex); } bindings = null; }
columnNames = new String[st.columnCount()]; for (int i = 0; i < st.columnCount(); i++) { columnNames[i] = st.getColumnName(i);
columnNames = new String[st.columnCount()]; for (int i = 0; i < st.columnCount(); i++) { columnNames[i] = st.getColumnName(i);