com.j256.ormlite.jdbc
Class JdbcDatabaseResults

java.lang.Object
  extended by com.j256.ormlite.jdbc.JdbcDatabaseResults
All Implemented Interfaces:
com.j256.ormlite.support.DatabaseResults

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

Wrapper around a ResultSet object which we delegate to.

Author:
graywatson

Constructor Summary
JdbcDatabaseResults(PreparedStatement preparedStmt, ResultSet resultSet, 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()
           
 double getDouble(int columnIndex)
           
 float getFloat(int columnIndex)
           
 int getInt(int columnIndex)
           
 long getLong(int columnIndex)
           
 com.j256.ormlite.dao.ObjectCache getObjectCache()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcDatabaseResults

public JdbcDatabaseResults(PreparedStatement preparedStmt,
                           ResultSet resultSet,
                           com.j256.ormlite.dao.ObjectCache objectCache)
                    throws SQLException
Throws:
SQLException
Method Detail

getColumnCount

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

getColumnNames

public String[] getColumnNames()
                        throws SQLException
Specified by:
getColumnNames in interface com.j256.ormlite.support.DatabaseResults
Throws:
SQLException

first

public boolean first()
              throws SQLException
Specified by:
first in interface com.j256.ormlite.support.DatabaseResults
Throws:
SQLException

next

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

last

public boolean last()
             throws SQLException
Specified by:
last in interface com.j256.ormlite.support.DatabaseResults
Throws:
SQLException

previous

public boolean previous()
                 throws SQLException
Specified by:
previous in interface com.j256.ormlite.support.DatabaseResults
Throws:
SQLException

moveRelative

public boolean moveRelative(int offset)
                     throws SQLException
Specified by:
moveRelative in interface com.j256.ormlite.support.DatabaseResults
Throws:
SQLException

moveAbsolute

public boolean moveAbsolute(int position)
                     throws SQLException
Specified by:
moveAbsolute in interface com.j256.ormlite.support.DatabaseResults
Throws:
SQLException

findColumn

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

getBlobStream

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

getBoolean

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

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)
             throws SQLException
Specified by:
getByte in interface com.j256.ormlite.support.DatabaseResults
Throws:
SQLException

getBytes

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

getDouble

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

getFloat

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

getInt

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

getLong

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

getShort

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

getString

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

getTimestamp

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

getBigDecimal

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

wasNull

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

getObjectCache

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

close

public void close()
           throws SQLException
Specified by:
close in interface com.j256.ormlite.support.DatabaseResults
Throws:
SQLException

closeQuietly

public void closeQuietly()
Specified by:
closeQuietly in interface com.j256.ormlite.support.DatabaseResults


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