|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.jzos.fields.DatatypeFactory
com.ibm.jzos.fields.CobolDatatypeFactory
public class CobolDatatypeFactory
Concrete implementation of DatatypeFactory with COBOL Field
related factory methods.
| Field Summary |
|---|
| Fields inherited from class com.ibm.jzos.fields.DatatypeFactory |
|---|
maximumOffset, offset, stringEncoding, stringTrimDefault |
| Constructor Summary | |
|---|---|
CobolDatatypeFactory()
|
|
| Method Summary | |
|---|---|
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. |
Field |
getExternalDecimalField(int precision,
int scale,
boolean signed,
boolean signTailing,
boolean signExternal,
boolean blankWhenZero)
Construct and return a ExternalDecimalField, 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. |
IbmDoubleField |
getIbmDoubleField()
Construct and return an IbmDoubleField (hex floating point COMP-2), advancing the current offset by its byte length. |
IbmFloatField |
getIbmFloatField()
Construct and return an IbmFloatField (hex floating point COMP-1), advancing the current offset by its byte length. |
PackedDecimalAsBigDecimalField |
getPackedDecimalAsBigDecimalField(int precision,
int scale,
boolean signed)
Construct and return a PackedDecimalAsBigDecimalField, advancing the current offset by its byte length. |
PackedDecimalAsBigIntegerField |
getPackedDecimalAsBigIntegerField(int precision,
int scale,
boolean signed)
Construct and return a PackedDecimalAsBigIntegerField, advancing the current offset by its byte length. |
PackedDecimalAsIntField |
getPackedDecimalAsIntField(int precision,
boolean signed)
Construct and return a PackedDecimalAsIntField, advancing the current offset by its byte length. |
PackedDecimalAsLongField |
getPackedDecimalAsLongField(int precision,
boolean signed)
Construct and return a PackedDecimalAsLongField, advancing the current offset by its byte length. |
Field |
getPackedDecimalField(int precision,
int scale,
boolean signed)
Construct and return a PackedDecimalField, advancing the current offset by its byte length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CobolDatatypeFactory()
| Method Detail |
|---|
public BinaryAsLongField getBinaryAsLongField(int precision,
boolean signed)
precision - the number of decimal digits of precisionsigned - true if the value is signed
public BinaryAsIntField getBinaryAsIntField(int precision,
boolean signed)
precision - the number of decimal digits of precisionsigned - true if the value is signed
public BinaryAsBigDecimalField getBinaryAsBigDecimalField(int precision,
int scale,
boolean signed)
precision - 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 signed
public BinaryAsBigIntegerField getBinaryAsBigIntegerField(int precision,
int scale,
boolean signed)
precision - the number of decimal digits of precisionscale - a negative integer specifying the power of the numbersigned - true if the value is signed
public Field getBinaryField(int precision,
int scale,
boolean signed,
boolean comp5)
precision - the number of decimal digits of precisionscale - the number of implied decimal digits to the right of the decimal pointcomp5 - true if the entire bit range is to be allowed
public Field getExternalDecimalField(int precision,
int scale,
boolean signed,
boolean signTailing,
boolean signExternal,
boolean blankWhenZero)
precision - the number of decimal digits of precisionscale - the number of implied decimal digits to the right of the decimal pointsigned - boolean true if the value is signedsignTailing - true if the sign is stored at the end of the fieldsignExternal - true if the sign is stored in a separate byteblankWhenZero - true if the field is all spaces when zero
public 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 to the right of the decimal pointshowMantissaPlusSign - 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)
precision - 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 signed
java.lang.IllegalArgumentException - if length implies a precision > 31 digits.
public PackedDecimalAsBigDecimalField getPackedDecimalAsBigDecimalField(int precision,
int scale,
boolean signed)
precision - the number of decimal digits of precisionscale - the number of implied decimal digits to the right of the decimal pointsigned - boolean true if the value is signed
PackedDecimalAsBigDecimalField.PackedDecimalAsBigDecimalField(int, int, int, boolean)
public PackedDecimalAsBigIntegerField getPackedDecimalAsBigIntegerField(int precision,
int scale,
boolean signed)
precision - the number of decimal digits of precisionscale - the number of implied decimal digits to the right of the decimal pointsigned - boolean true if the value is signed
PackedDecimalAsBigIntegerField.PackedDecimalAsBigIntegerField(int, int, int, boolean)
public PackedDecimalAsIntField getPackedDecimalAsIntField(int precision,
boolean signed)
precision - the number of decimal digits of precisionsigned - boolean true if the value is signed
PackedDecimalAsIntField.PackedDecimalAsIntField(int, int, boolean)
public PackedDecimalAsLongField getPackedDecimalAsLongField(int precision,
boolean signed)
precision - the number of decimal digits of precisionsigned - boolean true if the value is signed
PackedDecimalAsLongField.PackedDecimalAsLongField(int, int, boolean)public IbmFloatField getIbmFloatField()
public IbmDoubleField getIbmDoubleField()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||