public class ParameterValue
extends java.lang.Object
The constructors and setter methods set the input binding parameter to the specified value type.
The following example demonstrates the usage of this object.
IQueryService queryService = ...
String query = "SELECT [Resource ID], [Name] FROM [SOXIssue] WHERE [Status] = ?";
IQuery query = queryService.buildQuery(query);
ParameterValue param1 = new ParameterValue("Open");
query.bindParameter(1, param1);
ITabularResultSet resultset = query.fetchRows(0);
| Constructor and Description |
|---|
ParameterValue(java.lang.Boolean value)
Constructor for a
Boolean input parameter |
ParameterValue(java.util.Date value)
Constructor for a
Date input parameter |
ParameterValue(java.lang.Double value)
Constructor for an
Double input parameter |
ParameterValue(java.lang.Double value,
boolean isCurrency)
Constructor for an currency input parameter
|
ParameterValue(java.lang.Integer value)
Constructor for an
Integer input parameter |
ParameterValue(java.lang.String value)
Constructor for an
String input parameter |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getBooleanValue()
Returns the value of this input parameter as a
Boolean |
java.lang.Double |
getCurrencyValue()
Returns the value of this input parameter as a
Double |
DataType |
getDataType()
Returns the
DataType for this input parameter |
java.util.Date |
getDateValue()
Returns the value of this input parameter as a
Date |
java.lang.Double |
getFloatValue()
Returns the value of this input parameter as a
Double |
java.lang.Integer |
getIntegerValue()
Returns the value of this input parameter as an
Integer |
java.lang.String |
getStringValue()
Returns the value of this input parameter as a
String |
void |
setBooleanValue(java.lang.Boolean value)
Sets the value of this input parameter as a
Boolean |
void |
setCurrencyValue(java.lang.Double value)
Sets the value of this input parameter as a
Double |
void |
setDateValue(java.util.Date value)
Sets the value of this input parameter as a
Date |
void |
setFloatValue(java.lang.Double value)
Sets the value of this input parameter as a
Double |
void |
setIntegerValue(java.lang.Integer value)
Sets the value of this input parameter as a
Integer |
void |
setStringValue(java.lang.String value)
Sets the value of this input parameter as a
String |
java.lang.String |
toString() |
public ParameterValue(java.lang.Boolean value)
Boolean input parametervalue - specified value of this input parameter as a Booleanpublic ParameterValue(java.util.Date value)
Date input parametervalue - specified value of this input parameter as a Datepublic ParameterValue(java.lang.Integer value)
Integer input parametervalue - specified value of this input parameter as an Integerpublic ParameterValue(java.lang.String value)
String input parametervalue - specified value of this input parameter as a Stringpublic ParameterValue(java.lang.Double value)
Double input parametervalue - specified value of this input parameter as a Doublepublic ParameterValue(java.lang.Double value,
boolean isCurrency)
value - specified value of this input parameter as a DoubleisCurrency - if currency parameter, set to true; otherwise set to falsepublic DataType getDataType()
DataType for this input parameterDataType for this input parameterpublic java.lang.Boolean getBooleanValue()
BooleanBooleanpublic void setBooleanValue(java.lang.Boolean value)
Booleanpublic java.util.Date getDateValue()
DateDatepublic void setDateValue(java.util.Date value)
Datepublic java.lang.Double getFloatValue()
DoubleDoublepublic void setFloatValue(java.lang.Double value)
Doublepublic java.lang.Integer getIntegerValue()
IntegerIntegerpublic void setIntegerValue(java.lang.Integer value)
Integerpublic java.lang.String getStringValue()
StringStringpublic void setStringValue(java.lang.String value)
Stringpublic java.lang.Double getCurrencyValue()
DoubleDoublepublic void setCurrencyValue(java.lang.Double value)
Doublepublic java.lang.String toString()
toString in class java.lang.Object
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2021. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.