public class AssemblerDatatypeFactory extends DatatypeFactory
DatatypeFactory with Assembler Field
related factory methods.
A running offset to the next field is maintained, along with a
stack which can be used to push and pop the current Field offset.
A DatatypeFactory is typically used to statically initialize static
Field variables in a Java class which maps a record described by a byte array.
For an example, see Format1DSCB.
Instances of this class or its subclasses will automatically construct
instances of com.ibm.jzos.fields.daa classes if the
com.ibm.jzos.fields.daa package is available at runtime.
See DatatypeFactory for more information.
DatatypeFactoryUSE_DAA_DEFAULT, USE_DAA_PROPERTY| Constructor and Description |
|---|
AssemblerDatatypeFactory() |
| Modifier and Type | Method and Description |
|---|---|
PackedDecimalAsBigDecimalField |
getPackedDecimalAsBigDecimalField(int length,
int scale,
boolean signed)
Construct and return a PackedDecimalAsBigDecimalField, advancing the current offset by its byte length.
|
PackedDecimalAsBigIntegerField |
getPackedDecimalAsBigIntegerField(int length,
int scale,
boolean signed)
Construct and return a PackedDecimalAsBigIntegerField, advancing the current offset by its byte length.
|
PackedDecimalAsIntField |
getPackedDecimalAsIntField(int length,
boolean signed)
Construct and return a PackedDecimalAsIntField, advancing the current offset by its byte length.
|
PackedDecimalAsLongField |
getPackedDecimalAsLongField(int length,
boolean signed)
Construct and return a PackedDecimalAsLongField, advancing the current offset by its byte length.
|
Field |
getPackedDecimalField(int length,
int scale,
boolean signed)
Construct and return a PackedDecimalAs<*>Field, advancing
the current offset by its byte length.
|
Field |
getZonedDecimalField(int length,
int scale,
boolean signed)
Construct and return a ExternalDecimalAs<*>Field,
depending on the length and scale requested.
|
getBinaryAsBigDecimalField, getBinaryAsBigIntegerField, getBinaryAsBigIntegerField, getBinaryAsIntField, getBinaryAsLongField, getBinaryField, getByteArrayField, getExternalDecimalAsBigDecimalField, getExternalDecimalAsBigDecimalField, getExternalDecimalAsBigIntegerField, getExternalDecimalAsBigIntegerField, getExternalDecimalAsIntField, getExternalDecimalAsIntField, getExternalDecimalAsLongField, getExternalDecimalAsLongField, getExternalDecimalField, getIbmDoubleField, getIbmFloatField, getMaximumOffset, getOffset, getStringEncoding, getStringField, getStringField, getStringField, getStringField, getStringField, getStringTrimDefault, incrementOffset, popOffset, pushOffset, setOffset, setStringEncoding, setStringTrimDefault, setUseDaa, useDaapublic PackedDecimalAsBigDecimalField getPackedDecimalAsBigDecimalField(int length, int scale, boolean signed)
getPackedDecimalAsBigDecimalField in class DatatypeFactorylength - the size of the field in bytesscale - the number of implied decimal digits to the right of the decimal pointsigned - boolean true if the value is signedPackedDecimalAsBigDecimalField.PackedDecimalAsBigDecimalField(int, int, int, boolean)public PackedDecimalAsBigIntegerField getPackedDecimalAsBigIntegerField(int length, int scale, boolean signed)
getPackedDecimalAsBigIntegerField in class DatatypeFactorylength - the size of the field in bytesscale - the number of implied decimal digits to the right of the decimal pointsigned - boolean true if the value is signedPackedDecimalAsBigIntegerField.PackedDecimalAsBigIntegerField(int, int, int, boolean)public PackedDecimalAsIntField getPackedDecimalAsIntField(int length, boolean signed)
getPackedDecimalAsIntField in class DatatypeFactorylength - the size of the field in bytessigned - boolean true if the value is signedPackedDecimalAsIntField.PackedDecimalAsIntField(int, int, boolean)public PackedDecimalAsLongField getPackedDecimalAsLongField(int length, boolean signed)
getPackedDecimalAsLongField in class DatatypeFactorylength - the size of the field in bytessigned - boolean true if the value is signedPackedDecimalAsLongField.PackedDecimalAsLongField(int, int, boolean)public Field getPackedDecimalField(int length, int scale, boolean signed)
getPackedDecimalField in class DatatypeFactorylength - the field length in bytesscale - the number of implied decimal digits to the right of the decimal pointsigned - true if the value is signedjava.lang.IllegalArgumentException - if length implies a precision
> 31 digits.PackedDecimalAsIntField,
PackedDecimalAsLongField,
PackedDecimalAsBigIntegerField,
PackedDecimalAsBigDecimalFieldpublic Field getZonedDecimalField(int length, int scale, boolean signed)
length - int the length of the field in bytesscale - int the number of digits to the right of the decimal pointsigned - boolean true if the field is signed, false if unsigned.ExternalDecimalAsIntField,
ExternalDecimalAsLongField,
ExternalDecimalAsBigIntegerField,
ExternalDecimalAsBigDecimalField