com.j256.ormlite.jdbc
Class JdbcResults

java.lang.Object
  extended by com.j256.ormlite.jdbc.JdbcResults
All Implemented Interfaces:
Results

public class JdbcResults
extends Object
implements Results

Wrapper around a ResultSet object which we delegate to.

Author:
graywatson

Constructor Summary
JdbcResults(ResultSet resultSet)
           
 
Method Summary
 int findColumn(String columnName)
          Return the column index associated with the column name.
 Blob getBlob(int columnIndex)
          Returns the blob value from the results at the column index.
 boolean getBoolean(int columnIndex)
          Returns the boolean value from the results at the column index.
 byte getByte(int columnIndex)
          Returns the byte value from the results at the column index.
 byte[] getBytes(int columnIndex)
          Returns the byte array value from the results at the column index.
 double getDouble(int columnIndex)
          Returns the double value from the results at the column index.
 float getFloat(int columnIndex)
          Returns the float value from the results at the column index.
 int getInt(int columnIndex)
          Returns the integer value from the results at the column index.
 long getLong(int columnIndex)
          Returns the long value from the results at the column index.
 short getShort(int columnIndex)
          Returns the short value from the results at the column index.
 String getString(int columnIndex)
          Returns the string from the results at the column index.
 Timestamp getTimestamp(int columnIndex)
          Returns the SQL timestamp value from the results at the column index.
 boolean isNull(int columnIndex)
          Returns true if the object in column index is null.
 boolean next()
          Moves to the next result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcResults

public JdbcResults(ResultSet resultSet)
Method Detail

findColumn

public int findColumn(String columnName)
               throws SQLException
Description copied from interface: Results
Return the column index associated with the column name.

Specified by:
findColumn in interface Results
Throws:
SQLException

getBlob

public Blob getBlob(int columnIndex)
             throws SQLException
Description copied from interface: Results
Returns the blob value from the results at the column index.

Specified by:
getBlob in interface Results
Throws:
SQLException

getBoolean

public boolean getBoolean(int columnIndex)
                   throws SQLException
Description copied from interface: Results
Returns the boolean value from the results at the column index.

Specified by:
getBoolean in interface Results
Throws:
SQLException

getByte

public byte getByte(int columnIndex)
             throws SQLException
Description copied from interface: Results
Returns the byte value from the results at the column index.

Specified by:
getByte in interface Results
Throws:
SQLException

getBytes

public byte[] getBytes(int columnIndex)
                throws SQLException
Description copied from interface: Results
Returns the byte array value from the results at the column index.

Specified by:
getBytes in interface Results
Throws:
SQLException

getDouble

public double getDouble(int columnIndex)
                 throws SQLException
Description copied from interface: Results
Returns the double value from the results at the column index.

Specified by:
getDouble in interface Results
Throws:
SQLException

getFloat

public float getFloat(int columnIndex)
               throws SQLException
Description copied from interface: Results
Returns the float value from the results at the column index.

Specified by:
getFloat in interface Results
Throws:
SQLException

getInt

public int getInt(int columnIndex)
           throws SQLException
Description copied from interface: Results
Returns the integer value from the results at the column index.

Specified by:
getInt in interface Results
Throws:
SQLException

getLong

public long getLong(int columnIndex)
             throws SQLException
Description copied from interface: Results
Returns the long value from the results at the column index.

Specified by:
getLong in interface Results
Throws:
SQLException

getShort

public short getShort(int columnIndex)
               throws SQLException
Description copied from interface: Results
Returns the short value from the results at the column index.

Specified by:
getShort in interface Results
Throws:
SQLException

getString

public String getString(int columnIndex)
                 throws SQLException
Description copied from interface: Results
Returns the string from the results at the column index.

Specified by:
getString in interface Results
Throws:
SQLException

getTimestamp

public Timestamp getTimestamp(int columnIndex)
                       throws SQLException
Description copied from interface: Results
Returns the SQL timestamp value from the results at the column index.

Specified by:
getTimestamp in interface Results
Throws:
SQLException

next

public boolean next()
             throws SQLException
Description copied from interface: Results
Moves to the next result.

Specified by:
next in interface Results
Returns:
true if there are more results to be processed.
Throws:
SQLException

isNull

public boolean isNull(int columnIndex)
               throws SQLException
Description copied from interface: Results
Returns true if the object in column index is null.

Specified by:
isNull in interface Results
Throws:
SQLException


Copyright © 2010. All Rights Reserved.