|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.j256.ormlite.android.AndroidDatabaseResults
public class AndroidDatabaseResults
Android implementation of our results object.
Constructor Summary | |
---|---|
AndroidDatabaseResults(android.database.Cursor cursor,
boolean firstCall,
com.j256.ormlite.dao.ObjectCache objectCache)
Deprecated. The firstCall is no longer needed since the library now calls first() and next on its own. |
|
AndroidDatabaseResults(android.database.Cursor cursor,
com.j256.ormlite.dao.ObjectCache objectCache)
|
Method Summary | |
---|---|
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)
|
com.j256.ormlite.dao.ObjectCache |
getObjectCache()
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AndroidDatabaseResults(android.database.Cursor cursor, com.j256.ormlite.dao.ObjectCache objectCache)
@Deprecated public AndroidDatabaseResults(android.database.Cursor cursor, boolean firstCall, com.j256.ormlite.dao.ObjectCache objectCache)
Method Detail |
---|
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 boolean wasNull(int columnIndex)
wasNull
in interface com.j256.ormlite.support.DatabaseResults
public com.j256.ormlite.dao.ObjectCache getObjectCache()
getObjectCache
in interface com.j256.ormlite.support.DatabaseResults
public void close()
close
in interface com.j256.ormlite.support.DatabaseResults
public void closeQuietly()
closeQuietly
in interface com.j256.ormlite.support.DatabaseResults
public android.database.Cursor getRawCursor()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |