Lines Matching refs:index

193      * @param index the 1-based index to bind at
196 public static void bindObjectToProgram(SQLiteProgram prog, int index,
199 prog.bindNull(index);
201 prog.bindDouble(index, ((Number)value).doubleValue());
203 prog.bindLong(index, ((Number)value).longValue());
207 prog.bindLong(index, 1);
209 prog.bindLong(index, 0);
212 prog.bindBlob(index, (byte[]) value);
214 prog.bindString(index, value.toString());
614 * @param index the index of the bind entry in the InsertHelper
617 InsertHelper inserter, int index) {
618 inserter.bind(index, cursor.getString(cursor.getColumnIndexOrThrow(field)));
756 * @param cursorPosition The row index of the row we want to get.
905 final int index = cursor.getColumnIndex(column);
906 if (index != -1 && !cursor.isNull(index)) {
907 values.put(column, cursor.getString(index));
921 final int index = cursor.getColumnIndex(column);
922 if (index != -1 && !cursor.isNull(index)) {
923 values.put(column, cursor.getLong(index));
937 final int index = cursor.getColumnIndex(column);
938 if (index != -1 && !cursor.isNull(index)) {
939 values.put(column, cursor.getShort(index));
953 final int index = cursor.getColumnIndex(column);
954 if (index != -1 && !cursor.isNull(index)) {
955 values.put(column, cursor.getInt(index));
969 final int index = cursor.getColumnIndex(column);
970 if (index != -1 && !cursor.isNull(index)) {
971 values.put(column, cursor.getFloat(index));
985 final int index = cursor.getColumnIndex(column);
986 if (index != -1 && !cursor.isNull(index)) {
987 values.put(column, cursor.getDouble(index));
1143 * Returns the index of the specified column. This is index is suitagble for use
1146 * @return the index of the column
1150 final Integer index = mColumns.get(key);
1151 if (index == null) {
1154 return index;
1158 * Bind the value to an index. A prepareForInsert() or prepareForReplace()
1160 * @param index the index of the slot to which to bind
1163 public void bind(int index, double value) {
1164 mPreparedStatement.bindDouble(index, value);
1168 * Bind the value to an index. A prepareForInsert() or prepareForReplace()
1170 * @param index the index of the slot to which to bind
1173 public void bind(int index, float value) {
1174 mPreparedStatement.bindDouble(index, value);
1178 * Bind the value to an index. A prepareForInsert() or prepareForReplace()
1180 * @param index the index of the slot to which to bind
1183 public void bind(int index, long value) {
1184 mPreparedStatement.bindLong(index, value);
1188 * Bind the value to an index. A prepareForInsert() or prepareForReplace()
1190 * @param index the index of the slot to which to bind
1193 public void bind(int index, int value) {
1194 mPreparedStatement.bindLong(index, value);
1198 * Bind the value to an index. A prepareForInsert() or prepareForReplace()
1200 * @param index the index of the slot to which to bind
1203 public void bind(int index, boolean value) {
1204 mPreparedStatement.bindLong(index, value ? 1 : 0);
1208 * Bind null to an index. A prepareForInsert() or prepareForReplace()
1210 * @param index the index of the slot to which to bind
1212 public void bindNull(int index) {
1213 mPreparedStatement.bindNull(index);
1217 * Bind the value to an index. A prepareForInsert() or prepareForReplace()
1219 * @param index the index of the slot to which to bind
1222 public void bind(int index, byte[] value) {
1224 mPreparedStatement.bindNull(index);
1226 mPreparedStatement.bindBlob(index, value);
1231 * Bind the value to an index. A prepareForInsert() or prepareForReplace()
1233 * @param index the index of the slot to which to bind
1236 public void bind(int index, String value) {
1238 mPreparedStatement.bindNull(index);
1240 mPreparedStatement.bindString(index, value);
1290 * <li>bind(index, value);
1291 * <li>bind(index, value);
1293 * <li>bind(index, value);
1306 * <li>bind(index, value);
1307 * <li>bind(index, value);
1309 * <li>bind(index, value);
1446 * Returns column index of "_id" column, or -1 if not found.