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.DatabaseResults
public String[] getColumnNames()
getColumnNames
in interface com.j256.ormlite.support.DatabaseResults
public boolean first()
first
in interface com.j256.ormlite.support.DatabaseResults
public boolean next()
next
in interface com.j256.ormlite.support.DatabaseResults
public boolean last()
last
in interface com.j256.ormlite.support.DatabaseResults
public boolean previous()
previous
in interface com.j256.ormlite.support.DatabaseResults
public boolean moveRelative(int offset)
moveRelative
in interface com.j256.ormlite.support.DatabaseResults
public boolean moveAbsolute(int position)
moveAbsolute
in interface com.j256.ormlite.support.DatabaseResults
public int getCount()
public int getPosition()
public int findColumn(String columnName) throws SQLException
findColumn
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public String getString(int columnIndex)
getString
in interface com.j256.ormlite.support.DatabaseResults
public boolean getBoolean(int columnIndex)
getBoolean
in interface com.j256.ormlite.support.DatabaseResults
public char getChar(int columnIndex) throws SQLException
getChar
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public byte getByte(int columnIndex)
getByte
in interface com.j256.ormlite.support.DatabaseResults
public byte[] getBytes(int columnIndex)
getBytes
in interface com.j256.ormlite.support.DatabaseResults
public short getShort(int columnIndex)
getShort
in interface com.j256.ormlite.support.DatabaseResults
public int getInt(int columnIndex)
getInt
in interface com.j256.ormlite.support.DatabaseResults
public long getLong(int columnIndex)
getLong
in interface com.j256.ormlite.support.DatabaseResults
public float getFloat(int columnIndex)
getFloat
in interface com.j256.ormlite.support.DatabaseResults
public double getDouble(int columnIndex)
getDouble
in interface com.j256.ormlite.support.DatabaseResults
public Timestamp getTimestamp(int columnIndex) throws SQLException
getTimestamp
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public InputStream getBlobStream(int columnIndex)
getBlobStream
in interface com.j256.ormlite.support.DatabaseResults
public BigDecimal getBigDecimal(int columnIndex) throws SQLException
getBigDecimal
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public Object getObject(int columnIndex) throws SQLException
getObject
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public boolean wasNull(int columnIndex)
wasNull
in interface com.j256.ormlite.support.DatabaseResults
public com.j256.ormlite.dao.ObjectCache getObjectCacheForRetrieve()
getObjectCacheForRetrieve
in interface com.j256.ormlite.support.DatabaseResults
public com.j256.ormlite.dao.ObjectCache getObjectCacheForStore()
getObjectCacheForStore
in interface com.j256.ormlite.support.DatabaseResults
public void close()
close
in interface AutoCloseable
public void closeQuietly()
closeQuietly
in interface com.j256.ormlite.support.DatabaseResults
public android.database.Cursor getRawCursor()
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.