Interface IQueryResult
- All Known Implementing Classes:
SqlQueryResult
public interface IQueryResult
This interface defines the methods that can be used to iterate over the result of a query.
- Since:
- 6.3
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptiongetBooleanValue
(String columnName) This method returns the BooleanValue for the specified column.byte[]
Retrieves a byte array from the resultset for the specodoed column.getCurrency
(String columnName) This method returns the Currency value for the specified column.Retrieves a Date object from the resultset for the specified column.getDateTime
(String columnName) Retrieves a date time object from the resultset for the specified column.getIntegerValue
(String columnName) Retrieves an IntegerValue object from the resultset for the specified column.getNumberValue
(String columnName) Retrieves a NumberValue object from the resultset for the specified column.getPercentage
(String columnName) Retrieves a Percentage object from the resultset for the specified column.Retrieves a String object from the resultset for the specified column.boolean
next()
This method will move the result iterator to the next row in the result, and return a boolean indicating if a next row is available.
-
Method Details
-
next
boolean next()This method will move the result iterator to the next row in the result, and return a boolean indicating if a next row is available. The next method should always be invoked before results can be retrieved from this object.- Returns:
- Boolean indicating if (more) results are available.
-
getBooleanValue
This method returns the BooleanValue for the specified column. The value returned will never be null, but the value might be unknown.- Parameters:
columnName
- The name of the column for which the value is requested.- Returns:
- BooleanValue for the specified column.
-
getCurrency
This method returns the Currency value for the specified column. The value returned will never be null, but the value might be unknown.- Parameters:
columnName
- the name of the column for which the value is requested.- Returns:
- Currency for the specified column
-
getDate
Retrieves a Date object from the resultset for the specified column.- Parameters:
columnName
- The name of the column for which the value is requested.- Returns:
- The Date value from the resultset for the specified column name.
-
getDateTime
Retrieves a date time object from the resultset for the specified column.- Parameters:
columnName
- The name of the column for which the value is requested.- Returns:
- The Date value from the resultset for the specified column name.
-
getNumberValue
Retrieves a NumberValue object from the resultset for the specified column.- Parameters:
columnName
- The name of the column for which the value is requested.- Returns:
- The Double value from the resultset for the specified column name.
-
getPercentage
Retrieves a Percentage object from the resultset for the specified column.- Parameters:
columnName
- The name of the column for which the value is requested.- Returns:
- The Percentage value from the resultset for the specified column name.
-
getIntegerValue
Retrieves an IntegerValue object from the resultset for the specified column.- Parameters:
columnName
- The name of the column for which the value is requested.- Returns:
- The Integer value from the resultset for the specified column name.
-
getString
Retrieves a String object from the resultset for the specified column.- Parameters:
columnName
- The name of the column for which the value is requested.- Returns:
- The String value from the resultset for the specified column name.
-
getBytes
Retrieves a byte array from the resultset for the specodoed column.- Parameters:
columnName
- The name of the column for which the value is requested.- Returns:
- The byte array value from the resultset for the specified column name.
-