public interface PreparedValue
SSA
is not known until runtime. The
application can create a SSAList
initially and then set the
PreparedValue
with the appropriate value once it is known. This
also results in the ability to reuse an SSA
(and therefore an
SSAList
) several times throughout the course of an application
by simply changing the value in the PreparedValue
object.
The following code fragment, in which ssaList is a valid SSAList
object, illustrates how to create and use a PreparedValue
.
// create a placeholder for the HOSPCODE field PreparedValue pv = ssaList.createPreparedValue("HOSPCODE"); // insert the placeholder in the qualification ssaList.addInitialQualification("HOSPITAL", "HOSPCODE", SSAList.EQUALS, pv); ... // insert the value 123 for HOSPCODE in the SSA list pv.setValue("123"); Path path = ssaList.getPathForRetrieveReplace(); // issue the DLI call pcb.getUnique(path, ssaList, false);
Modifier and Type | Method and Description |
---|---|
String |
getName()
Retrieves the name of the prepared value.
|
Object |
getValue()
Gets the value of the prepared value parameter as an
java.lang.Object . |
void |
setValue(Object value)
Sets the value of the prepared value parameter using the given object.
|
String getName()
void setValue(Object value)
value
- the value of the designated prepared value parameterObject getValue()
java.lang.Object
.(c) Copyright IBM Corporation 2008, 2017.