Class CobolRedefinedFieldValue

java.lang.Object
org.eclipse.persistence.internal.eis.cobol.CobolRedefinedFieldValue

public class CobolRedefinedFieldValue extends Object
Purpose: to allow on demand conversions of fields which are redefined. This is necessary because different data formats may be used by different fields that redefine the same area of a byte array.
  • Constructor Details

    • CobolRedefinedFieldValue

      public CobolRedefinedFieldValue()
    • CobolRedefinedFieldValue

      public CobolRedefinedFieldValue(FieldMetaData metaData, byte[] recordData)
  • Method Details

    • initialize

      protected void initialize(FieldMetaData metaData, byte[] recordData)
    • getFieldMetaData

      public FieldMetaData getFieldMetaData()
      getter for field meta data
    • setFieldMetaData

      public void setFieldMetaData(FieldMetaData newFieldMetaData)
      setter for field meta data
    • getRecordData

      public byte[] getRecordData()
      getter for record data
    • setRecordData

      public void setRecordData(byte[] newRecordData)
      setter for record data
    • initialize

      protected void initialize()
    • getValue

      public Object getValue()
      calculates and extracts the value from the byte array myRecordData