getZonedDecimalField and getPackedDecimalField documentation

General discussion on the JZOS batch launcher and toolkit
Post Reply
JohnMcKown
Posts: 39
Joined: Sat Nov 21, 2009 2:59 pm

getZonedDecimalField and getPackedDecimalField documentation

Post by JohnMcKown »

I'm looking at http://www.ibm.com/developerworks/java/ ... index.html. The documentation for both getZonedDecimalField and getPackedDecimalField both seem truncated.
getPackedDecimalField(int length, int scale, boolean signed)
Construct and return either a packed decimal Field, depending on the length and scale requested.
getZonedDecimalField(int length, int scale, boolean signed)
Construct and return either a zoned decimal Field, depending on the length and scale requested.
What else is returned? More curious than anything else.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Thanks for pointing this out - the Javadoc for these is bad and we'll fix it.

This methods return the most appropriate field type ( for Packed: PackedDecimalAsIntField, PackedDecimalAsLongField, PackedDecimalAsBigIntegerField, PackedDecimalAsBigDecimalField),

depending on the scale and length that you give it.

The javadoc @see link lists the possible return types.
Post Reply