public final class TypeUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
bind(android.database.sqlite.SQLiteStatement statement,
Boolean value,
int index)
Bind statement index value.
|
static void |
bind(android.database.sqlite.SQLiteStatement statement,
byte[] value,
int index)
Bind statement index value.
|
static void |
bind(android.database.sqlite.SQLiteStatement statement,
Byte value,
int index)
Bind statement index value.
|
static void |
bind(android.database.sqlite.SQLiteStatement statement,
Character value,
int index)
Bind statement index value.
|
static void |
bind(android.database.sqlite.SQLiteStatement statement,
Date value,
int index)
Bind statement index value.
|
static void |
bind(android.database.sqlite.SQLiteStatement statement,
Date value,
String pattern,
int index)
Bind statement index value.
|
static void |
bind(android.database.sqlite.SQLiteStatement statement,
Double value,
int index)
Bind statement index value.
|
static void |
bind(android.database.sqlite.SQLiteStatement statement,
Float value,
int index)
Bind statement index value.
|
static void |
bind(android.database.sqlite.SQLiteStatement statement,
Integer value,
int index)
Bind statement index value.
|
static void |
bind(android.database.sqlite.SQLiteStatement statement,
Long value,
int index)
Bind statement index value.
|
static void |
bind(android.database.sqlite.SQLiteStatement statement,
Short value,
int index)
Bind statement index value.
|
static void |
bind(android.database.sqlite.SQLiteStatement statement,
String value,
int index)
Bind statement index value.
|
static Boolean |
getBoolean(android.database.Cursor cursor,
int column)
Gets Boolean value form cursor for column index.
|
static Byte |
getByte(android.database.Cursor cursor,
int column)
Gets Byte value form cursor for column index.
|
static byte[] |
getByteArray(android.database.Cursor cursor,
int column)
Gets byte array value form cursor for column index.
|
static Character |
getChar(android.database.Cursor cursor,
int column)
Gets Char value form cursor for column index.
|
static Date |
getDate(android.database.Cursor cursor,
int column)
Gets Date value form cursor for column index.
|
static Date |
getDate(android.database.Cursor cursor,
int column,
String pattern)
Gets Date value form cursor for column index.
|
static Double |
getDouble(android.database.Cursor cursor,
int column)
Gets Double value form cursor for column index.
|
static Float |
getFloat(android.database.Cursor cursor,
int column)
Gets Float value form cursor for column index.
|
static Integer |
getInt(android.database.Cursor cursor,
int column)
Gets Integer value form cursor for column index.
|
static Long |
getLong(android.database.Cursor cursor,
int column)
Gets Long value form cursor for column index.
|
static Short |
getShort(android.database.Cursor cursor,
int column)
Gets Short value form cursor for column index.
|
static String |
getString(android.database.Cursor cursor,
int column)
Gets String value form cursor for column index.
|
public static void bind(android.database.sqlite.SQLiteStatement statement, Long value, int index)
statement
- statementvalue
- value to be binnedindex
- value's indexpublic static void bind(android.database.sqlite.SQLiteStatement statement, Boolean value, int index)
statement
- statementvalue
- value to be binnedindex
- value's indexpublic static void bind(android.database.sqlite.SQLiteStatement statement, Character value, int index)
statement
- statementvalue
- value to be binnedindex
- value's indexpublic static void bind(android.database.sqlite.SQLiteStatement statement, Byte value, int index)
statement
- statementvalue
- value to be binnedindex
- value's indexpublic static void bind(android.database.sqlite.SQLiteStatement statement, Short value, int index)
statement
- statementvalue
- value to be binnedindex
- value's indexpublic static void bind(android.database.sqlite.SQLiteStatement statement, Integer value, int index)
statement
- statementvalue
- value to be binnedindex
- value's indexpublic static void bind(android.database.sqlite.SQLiteStatement statement, Float value, int index)
statement
- statementvalue
- value to be binnedindex
- value's indexpublic static void bind(android.database.sqlite.SQLiteStatement statement, Double value, int index)
statement
- statementvalue
- value to be binnedindex
- value's indexpublic static void bind(android.database.sqlite.SQLiteStatement statement, String value, int index)
statement
- statementvalue
- value to be binnedindex
- value's indexpublic static void bind(android.database.sqlite.SQLiteStatement statement, byte[] value, int index)
statement
- statementvalue
- value to be binnedindex
- value's indexpublic static void bind(android.database.sqlite.SQLiteStatement statement, Date value, int index)
statement
- statementvalue
- value to be binnedindex
- value's indexpublic static void bind(android.database.sqlite.SQLiteStatement statement, Date value, String pattern, int index)
statement
- statementvalue
- value to be binnedindex
- value's indexpublic static Long getLong(android.database.Cursor cursor, int column)
cursor
- cursorcolumn
- column's index.public static Boolean getBoolean(android.database.Cursor cursor, int column)
cursor
- cursorcolumn
- column's index.public static Character getChar(android.database.Cursor cursor, int column)
cursor
- cursorcolumn
- column's index.public static Byte getByte(android.database.Cursor cursor, int column)
cursor
- cursorcolumn
- column's index.public static Short getShort(android.database.Cursor cursor, int column)
cursor
- cursorcolumn
- column's index.public static Integer getInt(android.database.Cursor cursor, int column)
cursor
- cursorcolumn
- column's index.public static Float getFloat(android.database.Cursor cursor, int column)
cursor
- cursorcolumn
- column's index.public static Double getDouble(android.database.Cursor cursor, int column)
cursor
- cursorcolumn
- column's index.public static String getString(android.database.Cursor cursor, int column)
cursor
- cursorcolumn
- column's index.public static byte[] getByteArray(android.database.Cursor cursor, int column)
cursor
- cursorcolumn
- column's index.public static Date getDate(android.database.Cursor cursor, int column)
cursor
- cursorcolumn
- column's index.Copyright © 2015. All Rights Reserved.