Class AbstractCBLPrimitive

java.lang.Object
com.softwaremining.wrappers.AbstractCBLField
com.softwaremining.wrappers.AbstractCBLPrimitive
All Implemented Interfaces:
AbstractDataObject, IFormatTypes, ICBLContainer, ICBLDataType, IFieldContainer, ISMDataType, ISMObject
Direct Known Subclasses:
AbstractCBLNumeric, CBLString

public abstract class AbstractCBLPrimitive extends AbstractCBLField implements IFieldContainer
For internal use only
  • Constructor Details

    • AbstractCBLPrimitive

      protected AbstractCBLPrimitive()
      for internal use only
    • AbstractCBLPrimitive

      public AbstractCBLPrimitive(String name, int[] theDim, String picture, CBLBean wrapper, int compMode)
      default constructor
      Parameters:
      name - - name of field
      theDim - - dimension, e.g. {0} or {14}
      picture - - original COBOL picture eg X(23).
      wrapper - - owning CBLBean
      compMode - - refers to COBOL comp fields
    • AbstractCBLPrimitive

      protected AbstractCBLPrimitive(AbstractCBLPrimitive parentArray, int[] indexes)
  • Method Details

    • getPicture

      public final char[] getPicture()
      method used internally by framework
      Returns:
    • initialize

      public void initialize()
      method used internally by framework to initialize the field to its defaultValue
      Specified by:
      initialize in interface ISMObject
      Specified by:
      initialize in class AbstractCBLField
    • initialize

      public void initialize(int startPos, int endPos)
    • bytesSize

      public int bytesSize()
      method used internally by framework
      Specified by:
      bytesSize in interface ISMObject
      Specified by:
      bytesSize in class AbstractCBLField
    • isGroup

      public final boolean isGroup()
      method used internally by framework Determines if the is a GROUP
      Specified by:
      isGroup in class AbstractCBLField
    • resetDimensionByIndx

      protected void resetDimensionByIndx(int dimensionValue, int dimensionIndx, AbstractCBLField owner)
      Used INternally by OCCURS DEPENDING mechanism to set a new dimension on a fild
      Specified by:
      resetDimensionByIndx in class AbstractCBLField
      Parameters:
      dimensionValue -
      dimensionIndx -
      owner -
    • pad

      public final String pad()
      method used internally by framework
    • pad

      public final String pad(int[] indexes)
      method used internally by framework
    • setObjectAsString

      public void setObjectAsString(int[] indexes, String strValue)
      method used internally by framework
    • retrieveSQLObject

      public Object retrieveSQLObject(int[] indexes)
      method used internally by framework Get values from an SQL table and then caches it.
      Specified by:
      retrieveSQLObject in interface ISMObject
      Specified by:
      retrieveSQLObject in class AbstractCBLField
    • retrieveField

      public AbstractCBLField retrieveField(String fieldName)
      This is an implementation for purpose of IFieldContainer (with respect to some of the work on ILE Cobol). The method will only be able to return "this" field-class, and only if the "fieldName" parameter matches that of the current field (this.getName())
      Specified by:
      retrieveField in interface IFieldContainer