List of usage examples for android.database Cursor getLong
long getLong(int columnIndex);
From source file:Main.java
public static long getLong(String columnName, Cursor cursor) { return cursor.getLong(cursor.getColumnIndexOrThrow(columnName)); }
From source file:Main.java
public static long getLong(Cursor cursor, String column) { return cursor.getLong(cursor.getColumnIndex(column)); }
From source file:Main.java
public static long getLongOnCursor(Cursor cursor, String columnName) { return cursor.getLong(cursor.getColumnIndex(columnName)); }
From source file:Main.java
public static long getLong(Cursor cursor, String columnName) { return cursor.getLong(cursor.getColumnIndexOrThrow(columnName)); }
From source file:Main.java
public static long getLong(@NonNull Cursor cursor, @NonNull String columnName) { return cursor.getLong(cursor.getColumnIndex(columnName)); }
From source file:Main.java
static Long getLongOrNull(int columnIndex, Cursor cursor) { return cursor.isNull(columnIndex) ? null : cursor.getLong(columnIndex); }
From source file:Main.java
public static Date LoadDate(Cursor cursor, int index) { if (cursor.isNull(index)) { return null; }//w w w. j a v a 2 s.c o m return new Date(cursor.getLong(index)); }
From source file:Main.java
public static Date loadDate(Cursor cursor, int index) { if (cursor.isNull(index)) { return null; }//from w w w . j a va 2s . c o m return new Date(cursor.getLong(index)); }
From source file:Main.java
public static long longFromCursor(Cursor c, String field) { if (c.isNull(c.getColumnIndex(field))) { return -1l; }/*from ww w .j av a 2 s .c o m*/ return c.getLong(c.getColumnIndex(field)); }
From source file:Main.java
public static long getLongFromCursor(final Cursor cur, final String column) { final int idx = cur.getColumnIndex(column); return (idx == -1) ? 0 : cur.getLong(idx); }