public class AndroidDatabaseResults extends Object implements com.j256.ormlite.support.DatabaseResults
| Constructor and Description |
|---|
AndroidDatabaseResults(android.database.Cursor cursor,
com.j256.ormlite.dao.ObjectCache objectCache,
boolean cacheStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeQuietly() |
int |
findColumn(String columnName) |
boolean |
first() |
BigDecimal |
getBigDecimal(int columnIndex) |
InputStream |
getBlobStream(int columnIndex) |
boolean |
getBoolean(int columnIndex) |
byte |
getByte(int columnIndex) |
byte[] |
getBytes(int columnIndex) |
char |
getChar(int columnIndex) |
int |
getColumnCount() |
String[] |
getColumnNames() |
int |
getCount()
Returns the count of results from the cursor.
|
double |
getDouble(int columnIndex) |
float |
getFloat(int columnIndex) |
int |
getInt(int columnIndex) |
long |
getLong(int columnIndex) |
Object |
getObject(int columnIndex) |
com.j256.ormlite.dao.ObjectCache |
getObjectCacheForRetrieve() |
com.j256.ormlite.dao.ObjectCache |
getObjectCacheForStore() |
int |
getPosition()
Returns the position of the cursor in the list of results.
|
android.database.Cursor |
getRawCursor()
Returns the underlying Android cursor object.
|
short |
getShort(int columnIndex) |
String |
getString(int columnIndex) |
Timestamp |
getTimestamp(int columnIndex) |
boolean |
last() |
boolean |
moveAbsolute(int position) |
boolean |
moveRelative(int offset) |
boolean |
next() |
boolean |
previous() |
String |
toString() |
boolean |
wasNull(int columnIndex) |
public AndroidDatabaseResults(android.database.Cursor cursor,
com.j256.ormlite.dao.ObjectCache objectCache,
boolean cacheStore)
public int getColumnCount()
getColumnCount in interface com.j256.ormlite.support.DatabaseResultspublic String[] getColumnNames()
getColumnNames in interface com.j256.ormlite.support.DatabaseResultspublic boolean first()
first in interface com.j256.ormlite.support.DatabaseResultspublic boolean next()
next in interface com.j256.ormlite.support.DatabaseResultspublic boolean last()
last in interface com.j256.ormlite.support.DatabaseResultspublic boolean previous()
previous in interface com.j256.ormlite.support.DatabaseResultspublic boolean moveRelative(int offset)
moveRelative in interface com.j256.ormlite.support.DatabaseResultspublic boolean moveAbsolute(int position)
moveAbsolute in interface com.j256.ormlite.support.DatabaseResultspublic int getCount()
public int getPosition()
public int findColumn(String columnName) throws SQLException
findColumn in interface com.j256.ormlite.support.DatabaseResultsSQLExceptionpublic String getString(int columnIndex)
getString in interface com.j256.ormlite.support.DatabaseResultspublic boolean getBoolean(int columnIndex)
getBoolean in interface com.j256.ormlite.support.DatabaseResultspublic char getChar(int columnIndex)
throws SQLException
getChar in interface com.j256.ormlite.support.DatabaseResultsSQLExceptionpublic byte getByte(int columnIndex)
getByte in interface com.j256.ormlite.support.DatabaseResultspublic byte[] getBytes(int columnIndex)
getBytes in interface com.j256.ormlite.support.DatabaseResultspublic short getShort(int columnIndex)
getShort in interface com.j256.ormlite.support.DatabaseResultspublic int getInt(int columnIndex)
getInt in interface com.j256.ormlite.support.DatabaseResultspublic long getLong(int columnIndex)
getLong in interface com.j256.ormlite.support.DatabaseResultspublic float getFloat(int columnIndex)
getFloat in interface com.j256.ormlite.support.DatabaseResultspublic double getDouble(int columnIndex)
getDouble in interface com.j256.ormlite.support.DatabaseResultspublic Timestamp getTimestamp(int columnIndex) throws SQLException
getTimestamp in interface com.j256.ormlite.support.DatabaseResultsSQLExceptionpublic InputStream getBlobStream(int columnIndex)
getBlobStream in interface com.j256.ormlite.support.DatabaseResultspublic BigDecimal getBigDecimal(int columnIndex) throws SQLException
getBigDecimal in interface com.j256.ormlite.support.DatabaseResultsSQLExceptionpublic Object getObject(int columnIndex) throws SQLException
getObject in interface com.j256.ormlite.support.DatabaseResultsSQLExceptionpublic boolean wasNull(int columnIndex)
wasNull in interface com.j256.ormlite.support.DatabaseResultspublic com.j256.ormlite.dao.ObjectCache getObjectCacheForRetrieve()
getObjectCacheForRetrieve in interface com.j256.ormlite.support.DatabaseResultspublic com.j256.ormlite.dao.ObjectCache getObjectCacheForStore()
getObjectCacheForStore in interface com.j256.ormlite.support.DatabaseResultspublic void close()
close in interface AutoCloseablepublic void closeQuietly()
closeQuietly in interface com.j256.ormlite.support.DatabaseResultspublic android.database.Cursor getRawCursor()
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.