|
||||||||||
| 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.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.DatabaseResults
public 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.DatabaseResults
public 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.DatabaseResults
public BigDecimal getBigDecimal(int columnIndex)
throws SQLException
getBigDecimal in interface com.j256.ormlite.support.DatabaseResultsSQLExceptionpublic boolean wasNull(int columnIndex)
wasNull in interface com.j256.ormlite.support.DatabaseResultspublic com.j256.ormlite.dao.ObjectCache getObjectCache()
getObjectCache in interface com.j256.ormlite.support.DatabaseResultspublic void close()
close in interface com.j256.ormlite.support.DatabaseResultspublic void closeQuietly()
closeQuietly in interface com.j256.ormlite.support.DatabaseResultspublic 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 | |||||||||