Package com.softwaremining.wrappers
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
For internal use only
-
Field Summary
Fields inherited from class com.softwaremining.wrappers.AbstractCBLField
format, log, NEEDS_FORMATING, readjustIndex_counter, resetWrapperOffsetCount, STRINGIFY_BEFORE_FORMATTING, totalRuntime_ACMFieldConstructor, totalRuntime_arrayUtilityReadjustIndex, totalRuntime_cachingTime, totalRuntime_getSubField, totalRuntime_getSubField_createSubField, totalRuntime_getSubField_createSubField_count, totalRuntime_getSubField_setSubFieldHelper, totalRuntime_getSubFieldHelper, totalruntime_getSubFields_b, totalRuntime_getWrapperOffset, totalRuntime_resetWrapperOffset, totalRuntime_setInternalValue, wrapperOffsetCount
Fields inherited from interface com.softwaremining.wrappers.format.IFormatTypes
COMP_MODE_COMP, COMP_MODE_COMP_1, COMP_MODE_COMP_2, COMP_MODE_COMP_3, COMP_MODE_COMP_4, COMP_MODE_COMP_5, COMP_MODE_COMP_6, COMP_MODE_COMP_7, COMP_MODE_COMP_8, COMP_MODE_COMP_MCP, COMP_MODE_COMP_X, COMP_MODE_DISPLAY, COMP_MODE_DISPLAY_SIGN_IS_LEADING, COMP_MODE_DISPLAY_SIGN_IS_SEPARATE_LEADING, COMP_MODE_DISPLAY_SIGN_IS_SEPARATE_TRAILING, COMP_MODE_DISPLAY_SIGN_IS_TRAILING, COMP_MODE_IDS_DB_KEY, COMP_MODE_NATIVE_2, COMP_MODE_NATIVE_4, COMP_MODE_NATIVE_8, COMP_MODE_REAL, COMP_MODE_UNSUPPORTED, JUSTIFIED_RIGHT_FALSE, JUSTIFIED_RIGHT_TRUE
-
Constructor Summary
ModifierConstructorDescriptionprotected
for internal use onlyprotected
AbstractCBLPrimitive
(AbstractCBLPrimitive parentArray, int[] indexes) AbstractCBLPrimitive
(String name, int[] theDim, String picture, CBLBean wrapper, int compMode) default constructor -
Method Summary
Modifier and TypeMethodDescriptionint
method used internally by frameworkfinal char[]
method used internally by frameworkvoid
method used internally by framework to initialize the field to its defaultValuevoid
initialize
(int startPos, int endPos) final boolean
isGroup()
method used internally by framework Determines if the is a GROUPfinal String
pad()
method used internally by frameworkfinal String
pad
(int[] indexes) method used internally by frameworkprotected void
resetDimensionByIndx
(int dimensionValue, int dimensionIndx, AbstractCBLField owner) Used INternally by OCCURS DEPENDING mechanism to set a new dimension on a fildretrieveField
(String fieldName) This is an implementation for purpose of IFieldContainer (with respect to some of the work on ILE Cobol).retrieveSQLObject
(int[] indexes) method used internally by framework Get values from an SQL table and then caches it.void
setObjectAsString
(int[] indexes, String strValue) method used internally by frameworkMethods inherited from class com.softwaremining.wrappers.AbstractCBLField
addDependedField, assignAddressTo, assignBean, assignBigDecimal, assignDefaultValue, assignDefaultValue, assignDependingField, assignDouble, assignExcludeFromSQLTable, assignExternal, assignGroup, assignHighValues, assignHighValues, assignInt, assignLong, assignLowValues, assignLowValues, assignMasterSQLColumnsForArrays, assignObject, assignOverrideSQLTableName, assignPointerOffset, assignRedefines, assignRedefines, assignSeparateColumn, assignSeparateTable, assignString, assignString, assignStringFormatted, assignStringFormatted, assignSubstring, assignSubstring, assignSubstring, assignSubstring, assignSubstring, assignSubstringDeprecated, assignToAddressOf, assignToAddressOf, assignToAddressOf, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValueUnFormatted, createBlank, createSubField, enableSizeErrDetectionOnNextOp, equals, equals, equals, equals, equals, equals, equals, equalsRightTrimmed, fetchParentArray, fill, fill, fill, fill, fill, getAllSubFields, getArrayLength, getAsString, getCachedValue, getDefaultValue, getDependedFieldsList, getDimensions, getFormat, getMemoryPosition, getNumberOfSQLColumns, getNumOccurs, getObject, getOffsets, getParentGroup, getRedefines, getReverseRedefines, getSubFields, incrementPointerOffset, invokeSizeError, isArrayOfArrays, isBMSString, isCachable, isCachedArrayLengthActual, isCacheStateOK, isEmpty, isEqualToAll, isExcludedFromSQLTable, isFilled, isFilled, isFilled, isFilled, isFiller, isGreaterOrEqualTo, isGreaterOrEqualTo, isGreaterOrEqualTo, isGreaterOrEqualTo, isGreaterOrEqualTo, isGreaterOrEqualTo, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isHighValues, isLessOrEqualTo, isLessOrEqualTo, isLessOrEqualTo, isLessOrEqualTo, isLessOrEqualTo, isLessOrEqualTo, isLessThan, isLessThan, isLessThan, isLessThan, isLessThan, isLessThan, isLowValues, isSeparateColumns, isSeparateTable, isSpaces, isSubField, isUsedInRedefines, isZeros, lengthOf, onSizeError, printDetailAndValue, printDetails, redefinesAnotherField, resetCachedValue, retrieveAsString, retrieveAsString, retrieveAsStringFormatted, retrieveAsStringFormatted, retrieveMasterSQLColumnsForArrays, retrieveName, retrieveObject, retrieveSQLObject, retrieveSQLTableNameOverride, retrieveStorageCellSize, retrieveStorageChars, retrieveStorageChars, retrieveSubField, retrieveSubstring, retrieveSubstring, retrieveWrapper, setBlankWhenZero, setCachedValue, setHighValues, setHighValues, setLowValues, setLowValues, setNumberOfSQLColumns, setNumOccurs, setOmitted, setParentGroup, setSeparateColumn, setSeparateTable, setSubstring, setSubstring, setSubstring, setSubstring, setWrapper, stringValue, toEbcdic, toString
-
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 fieldtheDim
- - dimension, e.g. {0} or {14}picture
- - original COBOL picture eg X(23).wrapper
- - owning CBLBeancompMode
- - refers to COBOL comp fields
-
AbstractCBLPrimitive
-
-
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 interfaceISMObject
- Specified by:
initialize
in classAbstractCBLField
-
initialize
public void initialize(int startPos, int endPos) -
bytesSize
public int bytesSize()method used internally by framework- Specified by:
bytesSize
in interfaceISMObject
- Specified by:
bytesSize
in classAbstractCBLField
-
isGroup
public final boolean isGroup()method used internally by framework Determines if the is a GROUP- Specified by:
isGroup
in classAbstractCBLField
-
resetDimensionByIndx
Used INternally by OCCURS DEPENDING mechanism to set a new dimension on a fild- Specified by:
resetDimensionByIndx
in classAbstractCBLField
- Parameters:
dimensionValue
-dimensionIndx
-owner
-
-
pad
method used internally by framework -
pad
method used internally by framework -
setObjectAsString
method used internally by framework -
retrieveSQLObject
method used internally by framework Get values from an SQL table and then caches it.- Specified by:
retrieveSQLObject
in interfaceISMObject
- Specified by:
retrieveSQLObject
in classAbstractCBLField
-
retrieveField
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 interfaceIFieldContainer
-