org.gjt.rec.jdbc
Interface QueryResult

All Known Implementing Classes:
QueryResults.QueryResultImpl

public interface QueryResult

Represents a single row of a query result set.

See Also:
QueryResults

Field Summary
static String COPYRIGHT
           
static String LICENSE
           
static String REVISION
           
 
Method Summary
 BigDecimal getBigDecimal(String columnName)
          Returns the value of a particular column from this query result as a BigDecimal.
 Boolean getBoolean(String columnName)
          Returns the value of a particular column from this query result as a Boolean.
 Date getDate(String columnName)
          Returns the value of a particular column from this query result as a Date.
 int getInt(String columnName)
          Returns the value of a particular column from this query result as an int.
 Integer getInteger(String columnName)
          Returns the value of a particular column from this query result as a Integer.
 Long getLong(String columnName)
          Returns the value of a particular column from this query result as a Long.
 Object getObject(String columnName)
          Returns the value of a particular column from this query result.
 String getString(String columnName)
          Returns the value of a particular column from this query result as a String.
 Timestamp getTimestamp(String columnName)
          Returns the value of a particular column from this query result as a Timestamp.
 

Field Detail

COPYRIGHT

public static final String COPYRIGHT
See Also:
Constant Field Values

LICENSE

public static final String LICENSE
See Also:
Constant Field Values

REVISION

public static final String REVISION
See Also:
Constant Field Values
Method Detail

getObject

public Object getObject(String columnName)
Returns the value of a particular column from this query result.

Parameters:
columnName - the name of the column from which to retrieve the value
Throws:
NullPointerException - if (columnName) is null

getString

public String getString(String columnName)
Returns the value of a particular column from this query result as a String.

Parameters:
columnName - the name of the column from which to retrieve the value
Throws:
NullPointerException - if (columnName) is null

getBoolean

public Boolean getBoolean(String columnName)
Returns the value of a particular column from this query result as a Boolean.

Parameters:
columnName - the name of the column from which to retrieve the value
Throws:
NullPointerException - if (columnName) is null

getInteger

public Integer getInteger(String columnName)
Returns the value of a particular column from this query result as a Integer.

Parameters:
columnName - the name of the column from which to retrieve the value
Throws:
NullPointerException - if (columnName) is null

getLong

public Long getLong(String columnName)
Returns the value of a particular column from this query result as a Long.

Parameters:
columnName - the name of the column from which to retrieve the value
Throws:
NullPointerException - if (columnName) is null

getInt

public int getInt(String columnName)
Returns the value of a particular column from this query result as an int.

Parameters:
columnName - the name of the column from which to retrieve the value
Throws:
NullPointerException - if (columnName) is null
IllegalStateException - if the value in the specified column is null

getBigDecimal

public BigDecimal getBigDecimal(String columnName)
Returns the value of a particular column from this query result as a BigDecimal.

Parameters:
columnName - the name of the column from which to retrieve the value
Throws:
NullPointerException - if (columnName) is null

getDate

public Date getDate(String columnName)
Returns the value of a particular column from this query result as a Date.

Parameters:
columnName - the name of the column from which to retrieve the value
Throws:
NullPointerException - if (columnName) is null

getTimestamp

public Timestamp getTimestamp(String columnName)
Returns the value of a particular column from this query result as a Timestamp.

Parameters:
columnName - the name of the column from which to retrieve the value
Throws:
NullPointerException - if (columnName) is null