current.putString((String) val, rowIndex, columnIndex); } else if (val instanceof Long) { current.putLong((Long) val, rowIndex, columnIndex); } else if (val instanceof Integer) { current.putLong((Integer) val, rowIndex, columnIndex); } else if (val instanceof Boolean) { if ((Boolean) val) current.putLong(1, rowIndex, columnIndex); } else if (val instanceof byte[]) { current.putBlob((byte[]) val, rowIndex, columnIndex);
break; case FIELD_TYPE_INTEGER: current.putLong(cursor.getLong(i), rowIndex, i); break; case FIELD_TYPE_STRING:
/** * Put the value in given window. If the value type is other than Long, * String, byte[] or Double, the NULL will be filled. * * @return true if succeeded. */ private boolean putValue(CursorWindow window, Object value, int pos, int column) { if (value == null) { return window.putNull(pos, column); } else if (value instanceof Long) { return window.putLong((Long) value, pos, column); } else if (value instanceof String) { return window.putString((String) value, pos, column); } else if (value instanceof byte[] && ((byte[]) value).length > 0) { return window.putBlob((byte[]) value, pos, column); } else if (value instanceof Double) { return window.putDouble((Double) value, pos, column); } else { return window.putNull(pos, column); } }
success = window.putLong(cursor.getLong(i), position, i); break;
if (field7 != null) { try { if (!window.putLong(new Long(field7), this.getPosition(), i)) { if (!window.putDouble(new Double(field7), this.getPosition(), i)) { if (!window.putString(field7, this.getPosition(), i)) {
destination.putLong(cur, i, j);
destination.putLong(cur, i, j);