Class SqlQueryResult
java.lang.Object
com.aquima.interactions.foundation.connectivity.impl.SqlQueryResult
- All Implemented Interfaces:
IQueryResult
Java implementation of the IQueryResult interface.
- Since:
- 6.3
- Author:
- O. Kerpershoek
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
SqlQueryResult
-
-
Method Details
-
next
public boolean next()Description copied from interface:IQueryResult
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.- Specified by:
next
in interfaceIQueryResult
- Returns:
- Boolean indicating if (more) results are available.
-
getBooleanValue
Description copied from interface:IQueryResult
This method returns the BooleanValue for the specified column. The value returned will never be null, but the value might be unknown.- Specified by:
getBooleanValue
in interfaceIQueryResult
- Parameters:
columnName
- The name of the column for which the value is requested.- Returns:
- BooleanValue for the specified column.
-
getCurrency
Description copied from interface:IQueryResult
This method returns the Currency value for the specified column. The value returned will never be null, but the value might be unknown.- Specified by:
getCurrency
in interfaceIQueryResult
- Parameters:
columnName
- the name of the column for which the value is requested.- Returns:
- Currency for the specified column
-
getDate
Description copied from interface:IQueryResult
Retrieves a Date object from the resultset for the specified column.- Specified by:
getDate
in interfaceIQueryResult
- 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
Description copied from interface:IQueryResult
Retrieves a date time object from the resultset for the specified column.- Specified by:
getDateTime
in interfaceIQueryResult
- 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.
-
getIntegerValue
Description copied from interface:IQueryResult
Retrieves an IntegerValue object from the resultset for the specified column.- Specified by:
getIntegerValue
in interfaceIQueryResult
- 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.
-
getNumberValue
Description copied from interface:IQueryResult
Retrieves a NumberValue object from the resultset for the specified column.- Specified by:
getNumberValue
in interfaceIQueryResult
- 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
Description copied from interface:IQueryResult
Retrieves a Percentage object from the resultset for the specified column.- Specified by:
getPercentage
in interfaceIQueryResult
- 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.
-
getString
Description copied from interface:IQueryResult
Retrieves a String object from the resultset for the specified column.- Specified by:
getString
in interfaceIQueryResult
- 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.
-
getValue
-
getBytes
Description copied from interface:IQueryResult
Retrieves a byte array from the resultset for the specodoed column.- Specified by:
getBytes
in interfaceIQueryResult
- 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.
-