Serializablepublic class ProgramAttributeSetter extends Object implements Serializable
This class uses a ProgramMap
object to define how attribute values are
specified in the PCML definition. This class is intended as a helper
class for implementing subclasses of Resource.
| Constructor | Description |
|---|---|
ProgramAttributeSetter(AS400 system,
ProgramCallDocument document,
ProgramMap attributeMap) |
Deprecated.
Constructs a ProgramAttributeSetter object.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
initializeAttributeValues(ProgramAttributeGetter attributeGetter) |
Deprecated.
Initializes the attribute values for the setter.
|
void |
initializeAttributeValues(ProgramAttributeGetter attributeGetter,
Object[] attrsToInitializeFirst) |
Deprecated.
Initializes the attribute values for the setter.
|
void |
setValues(Object[] attributeIDs,
Object[] values) |
Deprecated.
Sets the attribute values.
|
public ProgramAttributeSetter(AS400 system, ProgramCallDocument document, ProgramMap attributeMap)
system - The system.document - The PCML document.attributeMap - The attribute map.public void initializeAttributeValues(ProgramAttributeGetter attributeGetter) throws ResourceException
attributeGetter - The attribute getter with which to retrieve the current values from the system.ResourceException - If an error occurs.public void initializeAttributeValues(ProgramAttributeGetter attributeGetter, Object[] attrsToInitializeFirst) throws ResourceException
attributeGetter - The attribute getter with which to retrieve the current values from the system.attrsToInitializeFirst - The IDs of the attributes to initialize first, in desired order of initialization. These will typically be "length of another field" attributes.ResourceException - If an error occurs.public void setValues(Object[] attributeIDs, Object[] values) throws ResourceException
attributeIDs - The attribute IDs.values - The values. This array must contain the same number of
elements as attributeIDs.ResourceException - If an error occurs.Copyright © 2024. All rights reserved.