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