public class CobolDatatypeFactory extends DatatypeFactory
DatatypeFactory with COBOL Field
related factory methods.
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 |
|---|
CobolDatatypeFactory() |
| Modifier and Type | Method and Description |
|---|---|
BinaryAsBigDecimalField |
getBinaryAsBigDecimalField(int precision,
int scale,
boolean signed)
Construct and return a BinaryAsBigDecimalField, advancing the current offset by its byte length.
|
BinaryAsBigIntegerField |
getBinaryAsBigIntegerField(int precision,
int scale,
boolean signed)
Construct and return a BinaryAsBigIntegerField, advancing the current offset by its byte length.
|
BinaryAsIntField |
getBinaryAsIntField(int precision,
boolean signed)
Construct and return a BinaryAsIntField, advancing the current offset by its byte length.
|
BinaryAsLongField |
getBinaryAsLongField(int precision,
boolean signed)
Construct and return a BinaryAsLongField, advancing the current offset by its byte length.
|
Field |
getBinaryField(int precision,
int scale,
boolean signed,
boolean comp5)
Construct and return a BinaryField, advancing the current offset by its byte length.
|
ExternalFloatField |
getExternalFloatField(int precision,
int scale,
boolean showMantissaPlusSign,
boolean showExponentPlusSign,
boolean impliedDecimalPoint)
Construct and return a FloatDisplayField, advancing the current offset by its byte length.
|
Field |
getPackedDecimalField(int precision,
int scale,
boolean signed)
Construct and return a PackedDecimalAs<*>Field, advancing the current offset by its byte length.
|
getBinaryAsBigIntegerField, getBinaryField, getByteArrayField, getExternalDecimalAsBigDecimalField, getExternalDecimalAsBigDecimalField, getExternalDecimalAsBigIntegerField, getExternalDecimalAsBigIntegerField, getExternalDecimalAsIntField, getExternalDecimalAsIntField, getExternalDecimalAsLongField, getExternalDecimalAsLongField, getExternalDecimalField, getIbmDoubleField, getIbmFloatField, getMaximumOffset, getOffset, getPackedDecimalAsBigDecimalField, getPackedDecimalAsBigIntegerField, getPackedDecimalAsIntField, getPackedDecimalAsLongField, getStringEncoding, getStringField, getStringField, getStringField, getStringField, getStringField, getStringTrimDefault, incrementOffset, popOffset, pushOffset, setOffset, setStringEncoding, setStringTrimDefault, setUseDaa, useDaapublic BinaryAsLongField getBinaryAsLongField(int precision, boolean signed)
Note that the field behaves as if TRUNC(BIN) was set in COBOL.
getBinaryAsLongField in class DatatypeFactoryprecision - the number of decimal digits of precisionsigned - true if the value is signedBinaryAsLongFieldpublic BinaryAsIntField getBinaryAsIntField(int precision, boolean signed)
Note that the field behaves as if TRUNC(BIN) was set in COBOL.
getBinaryAsIntField in class DatatypeFactoryprecision - the number of decimal digits of precisionsigned - true if the value is signedBinaryAsIntFieldpublic BinaryAsBigDecimalField getBinaryAsBigDecimalField(int precision, int scale, boolean signed)
Note that the field behaves as if TRUNC(BIN) was set in COBOL.
getBinaryAsBigDecimalField in class DatatypeFactoryprecision - the number of decimal digits of precisionscale - the number of implied decimal digits in the
fractional part of the fieldsigned - true if the value is signedpublic BinaryAsBigIntegerField getBinaryAsBigIntegerField(int precision, int scale, boolean signed)
Note that the field behaves as if TRUNC(BIN) was set in COBOL.
getBinaryAsBigIntegerField in class DatatypeFactoryprecision - the number of decimal digits of precisionscale - a negative integer specifying the power of the numbersigned - true if the value is signedpublic Field getBinaryField(int precision, int scale, boolean signed, boolean comp5)
Note that the field behaves as if TRUNC(BIN) was set in COBOL.
precision - the number of decimal digits of precisionscale - the number of implied decimal digits in the
fractional part of the fieldsigned - true if the value is signedcomp5 - true if the entire bit range is to be allowedpublic ExternalFloatField getExternalFloatField(int precision, int scale, boolean showMantissaPlusSign, boolean showExponentPlusSign, boolean impliedDecimalPoint)
precision - the number of decimal digits of precisionscale - the number of implied decimal digits in the
fractional part of the fieldshowMantissaPlusSign - true if a plus sign is to be displayed for positive mantissa valuesshowExponentPlusSign - true if a plus sign is to be displayed for positive exponent valuesimpliedDecimalPoint - true if the decimal point is implied.public Field getPackedDecimalField(int precision, int scale, boolean signed)
getPackedDecimalField in class DatatypeFactoryprecision - the number of decimal digits of precisionscale - 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,
PackedDecimalAsBigDecimalField