public class JdbcDatabaseResults extends Object implements com.j256.ormlite.support.DatabaseResults
ResultSet
object which we delegate to.Constructor and Description |
---|
JdbcDatabaseResults(PreparedStatement preparedStmt,
ResultSet resultSet,
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() |
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() |
ResultSet |
getResultSet()
Returns the underlying JDBC ResultSet 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() |
boolean |
wasNull(int columnIndex) |
public JdbcDatabaseResults(PreparedStatement preparedStmt, ResultSet resultSet, com.j256.ormlite.dao.ObjectCache objectCache, boolean cacheStore) throws SQLException
SQLException
public int getColumnCount() throws SQLException
getColumnCount
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public String[] getColumnNames() throws SQLException
getColumnNames
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public boolean first() throws SQLException
first
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public boolean next() throws SQLException
next
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public boolean last() throws SQLException
last
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public boolean previous() throws SQLException
previous
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public boolean moveRelative(int offset) throws SQLException
moveRelative
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public boolean moveAbsolute(int position) throws SQLException
moveAbsolute
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public int findColumn(String columnName) throws SQLException
findColumn
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public InputStream getBlobStream(int columnIndex) throws SQLException
getBlobStream
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public boolean getBoolean(int columnIndex) throws SQLException
getBoolean
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public char getChar(int columnIndex) throws SQLException
getChar
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public byte getByte(int columnIndex) throws SQLException
getByte
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public byte[] getBytes(int columnIndex) throws SQLException
getBytes
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public double getDouble(int columnIndex) throws SQLException
getDouble
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public float getFloat(int columnIndex) throws SQLException
getFloat
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public int getInt(int columnIndex) throws SQLException
getInt
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public long getLong(int columnIndex) throws SQLException
getLong
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public short getShort(int columnIndex) throws SQLException
getShort
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public String getString(int columnIndex) throws SQLException
getString
in interface com.j256.ormlite.support.DatabaseResults
SQLException
public Timestamp getTimestamp(int columnIndex) throws SQLException
getTimestamp
in interface com.j256.ormlite.support.DatabaseResults
SQLException
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) throws SQLException
wasNull
in interface com.j256.ormlite.support.DatabaseResults
SQLException
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() throws Exception
close
in interface AutoCloseable
Exception
public void closeQuietly()
closeQuietly
in interface com.j256.ormlite.support.DatabaseResults
public ResultSet getResultSet()
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.