com.j256.ormlite.android
Class AndroidDatabaseResults

java.lang.Object
  extended by com.j256.ormlite.android.AndroidDatabaseResults
All Implemented Interfaces:
com.j256.ormlite.support.DatabaseResults

public class AndroidDatabaseResults
extends Object
implements com.j256.ormlite.support.DatabaseResults

Android implementation of our results object.

Author:
kevingalligan, graywatson

Constructor Summary
AndroidDatabaseResults(android.database.Cursor cursor, boolean firstCall, com.j256.ormlite.dao.ObjectCache objectCache)
          Constructor that allows you to inject a cursor that has already been configured with first-call set to false.
AndroidDatabaseResults(android.database.Cursor cursor, com.j256.ormlite.dao.ObjectCache objectCache)
           
 
Method Summary
 int findColumn(String columnName)
           
 InputStream getBlobStream(int columnIndex)
           
 boolean getBoolean(int columnIndex)
           
 byte getByte(int columnIndex)
           
 byte[] getBytes(int columnIndex)
           
 char getChar(int columnIndex)
           
 int getColumnCount()
           
 double getDouble(int columnIndex)
           
 float getFloat(int columnIndex)
           
 int getInt(int columnIndex)
           
 long getLong(int columnIndex)
           
 com.j256.ormlite.dao.ObjectCache getObjectCache()
           
 android.database.Cursor getRawCursor()
          Returns the underlying Android cursor object.
 short getShort(int columnIndex)
           
 String getString(int columnIndex)
           
 Timestamp getTimestamp(int columnIndex)
           
 boolean next()
           
 boolean wasNull(int columnIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidDatabaseResults

public AndroidDatabaseResults(android.database.Cursor cursor,
                              com.j256.ormlite.dao.ObjectCache objectCache)

AndroidDatabaseResults

public AndroidDatabaseResults(android.database.Cursor cursor,
                              boolean firstCall,
                              com.j256.ormlite.dao.ObjectCache objectCache)
Constructor that allows you to inject a cursor that has already been configured with first-call set to false.

Method Detail

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface com.j256.ormlite.support.DatabaseResults

next

public boolean next()
Specified by:
next in interface com.j256.ormlite.support.DatabaseResults

findColumn

public int findColumn(String columnName)
               throws SQLException
Specified by:
findColumn in interface com.j256.ormlite.support.DatabaseResults
Throws:
SQLException

getString

public String getString(int columnIndex)
Specified by:
getString in interface com.j256.ormlite.support.DatabaseResults

getBoolean

public boolean getBoolean(int columnIndex)
Specified by:
getBoolean in interface com.j256.ormlite.support.DatabaseResults

getChar

public char getChar(int columnIndex)
             throws SQLException
Specified by:
getChar in interface com.j256.ormlite.support.DatabaseResults
Throws:
SQLException

getByte

public byte getByte(int columnIndex)
Specified by:
getByte in interface com.j256.ormlite.support.DatabaseResults

getBytes

public byte[] getBytes(int columnIndex)
Specified by:
getBytes in interface com.j256.ormlite.support.DatabaseResults

getShort

public short getShort(int columnIndex)
Specified by:
getShort in interface com.j256.ormlite.support.DatabaseResults

getInt

public int getInt(int columnIndex)
Specified by:
getInt in interface com.j256.ormlite.support.DatabaseResults

getLong

public long getLong(int columnIndex)
Specified by:
getLong in interface com.j256.ormlite.support.DatabaseResults

getFloat

public float getFloat(int columnIndex)
Specified by:
getFloat in interface com.j256.ormlite.support.DatabaseResults

getDouble

public double getDouble(int columnIndex)
Specified by:
getDouble in interface com.j256.ormlite.support.DatabaseResults

getTimestamp

public Timestamp getTimestamp(int columnIndex)
                       throws SQLException
Specified by:
getTimestamp in interface com.j256.ormlite.support.DatabaseResults
Throws:
SQLException

getBlobStream

public InputStream getBlobStream(int columnIndex)
Specified by:
getBlobStream in interface com.j256.ormlite.support.DatabaseResults

wasNull

public boolean wasNull(int columnIndex)
Specified by:
wasNull in interface com.j256.ormlite.support.DatabaseResults

getObjectCache

public com.j256.ormlite.dao.ObjectCache getObjectCache()
Specified by:
getObjectCache in interface com.j256.ormlite.support.DatabaseResults

getRawCursor

public android.database.Cursor getRawCursor()
Returns the underlying Android cursor object. This should not be used unless you know what you are doing.



This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.