com.ibm.jzos.fields
Interface BigDecimalAccessor

All Superinterfaces:
Field
All Known Implementing Classes:
BinaryAsBigDecimalField, ExternalDecimalAsBigDecimalField, PackedDecimalAsBigDecimalField

public interface BigDecimalAccessor
extends Field

Defines an interface for Field objects that have BigDecimal accessors.


Method Summary
 java.math.BigDecimal getBigDecimal(byte[] buffer)
          Answer a BigDecimal from the given byte array buffer, at the offset of this field.
 java.math.BigDecimal getBigDecimal(byte[] buffer, int bufOffset)
          Answer a BigDecimal from the given byte array buffer, at the bufOffset + offset of this field.
 void putBigDecimal(java.math.BigDecimal value, byte[] buffer)
          Put a BigDecimal into the given byte array buffer, at the offset of this field.
 void putBigDecimal(java.math.BigDecimal value, byte[] buffer, int bufOffset)
          Put a BigDecimal into the given byte array buffer, at the bufOffset + offset of this field.
 
Methods inherited from interface com.ibm.jzos.fields.Field
getByteLength, getOffset, setOffset
 

Method Detail

getBigDecimal

java.math.BigDecimal getBigDecimal(byte[] buffer)
Answer a BigDecimal from the given byte array buffer, at the offset of this field.

Parameters:
buffer - the byte array
Returns:
BigDecimal

getBigDecimal

java.math.BigDecimal getBigDecimal(byte[] buffer,
                                   int bufOffset)
Answer a BigDecimal from the given byte array buffer, at the bufOffset + offset of this field.

Parameters:
buffer - the byte array
bufOffset - the additional offset into the byte array
Returns:
BigDecimal

putBigDecimal

void putBigDecimal(java.math.BigDecimal value,
                   byte[] buffer)
                   throws java.lang.IllegalArgumentException
Put a BigDecimal into the given byte array buffer, at the offset of this field.

Parameters:
value - the BigDecimal value
buffer - the byte array
Throws:
java.lang.IllegalArgumentException - if the value is out of range

putBigDecimal

void putBigDecimal(java.math.BigDecimal value,
                   byte[] buffer,
                   int bufOffset)
                   throws java.lang.IllegalArgumentException
Put a BigDecimal into the given byte array buffer, at the bufOffset + offset of this field.

Parameters:
value - the BigDecimal value
buffer - the byte array
bufOffset - the additional offset into the byte array
Throws:
java.lang.IllegalArgumentException - if the value is out of range