protected class ERPInterfaceAS400.Pcml
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
__keyprfx
The key prefix for getting and setting PCML values.
|
private com.ibm.as400.data.ProgramCallDocument |
__pcml
A reference to the PCML document.
|
private java.lang.String |
__pgmname
The name of the PCML program to call.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
Pcml(java.lang.String pgmname)
Constructs a new PCML processing facilitator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
callProgram()
Calls the ERP program for execution.
|
java.math.BigDecimal |
getBigDec(java.lang.String key)
Returns a big decimal value from the PCML document.
|
byte[] |
getBytes(java.lang.String key)
Returns a byte array value from the PCML document.
|
java.lang.String |
getString(java.lang.String key)
Returns a string value from the PCML document.
|
java.lang.Object |
getValue(java.lang.String key)
Returns an object value from the PCML document.
|
void |
setValue(java.lang.String key,
java.lang.Object value)
Sets a value in the PCML document.
|
private static final long serialVersionUID
private java.lang.String __pgmname
private java.lang.String __keyprfx
private com.ibm.as400.data.ProgramCallDocument __pcml
public Pcml(java.lang.String pgmname) throws java.lang.Exception
pgmname
- (String) The name of the PCML program to call.java.lang.Exception
- - if an error occurs during processing.public boolean callProgram() throws java.lang.Exception
true
if the program is successfully called,
otherwise false
.java.lang.Exception
- - if an error occurs during processing.public java.math.BigDecimal getBigDec(java.lang.String key) throws java.lang.Exception
key
- (String) The key for the value to get. The program
name and a dot are prepended to this value (pgmname.key).java.lang.Exception
- - if an error occurs during processing.public byte[] getBytes(java.lang.String key) throws java.lang.Exception
key
- (String) The key for the value to get. The program
name and a dot are prepended to this value (pgmname.key).java.lang.Exception
- - if an error occurs during processing.public java.lang.String getString(java.lang.String key) throws java.lang.Exception
key
- (String) The key for the value to get. The program
name and a dot are prepended to this value (pgmname.key).java.lang.Exception
- - if an error occurs during processing.public java.lang.Object getValue(java.lang.String key) throws java.lang.Exception
key
- (String) The key for the value to get. The program
name and a dot are prepended to this value (pgmname.key).java.lang.Exception
- - if an error occurs during processing.public void setValue(java.lang.String key, java.lang.Object value) throws java.lang.Exception
key
- (String) The key for the value to set. The program
name and a dot are prepended to this value (pgmname.key).value
- (Object) The value to set.java.lang.Exception
- - if an error occurs during processing.