Package com.softwaremining.wrappers
Class AbstractCBLField
java.lang.Object
com.softwaremining.wrappers.AbstractCBLField
- All Implemented Interfaces:
AbstractDataObject,IFormatTypes,ICBLContainer,ICBLDataType,ISMDataType,ISMObject
- Direct Known Subclasses:
AbstractCBLPrimitive,CBLGroup
public abstract class AbstractCBLField
extends Object
implements AbstractDataObject, ISMObject, IFormatTypes, ICBLDataType
For internal use only
Abstract datatype designed to support COBOL statements such as REDEFINES, COMPUTATIONALS, OCCURS-DEPENDING, precise formatting, POINTERS, ...
Abstract datatype designed to support COBOL statements such as REDEFINES, COMPUTATIONALS, OCCURS-DEPENDING, precise formatting, POINTERS, ...
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Formatprotected static Logprotected static final booleanstatic longstatic intprotected static final booleanstatic longstatic longstatic longstatic longfor internal use only ...static longstatic longstatic longstatic longstatic longstatic longstatic longstatic longstatic intFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddDependedField(ISMObject dependedObject) Support for COBOL OCCURS DEPENDINGvoidassignAddressTo(CBLPointer pointerField) Translation of COBOL's
SET ADDRESS OF a-variable TO pointerprotected voidassignBean(CBLBean sourceBean) voidassignBigDecimal(BigDecimal value) Method Used internally by framework Set value of the objectvoidassignDefaultValue(double doubleValue) Used to set the Default values passed to a COBOL field.voidassignDefaultValue(Object defaultValue) Used to set the Default values passed to a COBOL field.final voidassignDependingField(AbstractCBLField dependingField) Support for COBOL OCCURS DEPENDINGvoidassignDouble(double value) Method Used internally by framework Set value of the objectvoidassignExcludeFromSQLTable(boolean excludeFromSQLTable) voidassignExternal(AbstractCBLField externalField) Support for COBOL EXTERNAL fields ...protected voidassignGroup(CBLGroup sourceGroup) final voidEquivalent of COBOL HIGH VALUESfinal voidassignHighValues(int startPos, int length) Equivalent of COBOL HIGH VALUESvoidassignInt(int value) Method Used internally by framework Set value of the objectvoidassignLong(long value) Method Used internally by framework Set value of the objectfinal voidEquivalent of COBOL LOW VALUESfinal voidassignLowValues(int startPos, int length) Equivalent of COBOL LOW VALUESvoidassignMasterSQLColumnsForArrays(String[] columnNames) For Unisys DMS Supportfinal voidassignObject(int[] indexes, Object value) used internally by framework for setting object valuesvoidassignOverrideSQLTableName(String tableName) voidassignPointerOffset(double pointerOffst) POINTER ARITHMATIC - limited functionality.voidassignRedefines(AbstractCBLField redefineField) used internally by the framework to manage the COBOL redefinitionsvoidassignRedefines(CBLPointer redefineField) used internally by the framework to manage the COBOL redefinitionsfinal voidassignSeparateColumn(boolean separateColumn) Used for in object persistence : determines whether the Multi-dimensional arrays are being kept in multiple column for each of the arrayed objects a single column (packed) in the parent table.final voidassignSeparateTable(boolean separateTable) Used for in object persistence : determines whether the Multi-dimensional arrays are being kept in a separate table or contained within a single column (packed) in the parent table.voidassignString(int[] indexes, String strValue) voidassignString(String value) set the value of objectvoidassignStringFormatted(int[] indexes, String formattedString) The input string is already formattedvoidassignStringFormatted(String formattedString) The input string is already formatted.final voidassignSubstring(int offset, int length, int value) Set substring of Fieldfinal voidassignSubstring(int start, int end, AbstractCBLField value) translation of MOVE 'A' TO ABC (5:4)final voidassignSubstring(int offset, int length, String value) translation of MOVE 'A' TO ABC (5:4)final voidassignSubstring(int start, AbstractCBLField value) translation of MOVE 'A' TO ABC (5:)final voidassignSubstring(int start, String value) translation of MOVE 'A' TO ABC (5:)final voidassignSubstringDeprecated(int offset, String value) Set substring of FieldvoidassignToAddressOf(AbstractCBLField targetField) Translation of COBOL'svoidassignToAddressOf(CBLBean targetField) Translation of COBOL'svoidassignToAddressOf(CBLPointer pointerField) Translation of COBOL's
SET pointer (this) TO ADDRESS OF targetFieldvoidassignValue(double value) Method Used internally by framework Set value of the objectvoidassignValue(int value) Method Used internally by framework Set value of the objectfinal voidassignValue(int[] indexes, double value) Method Used internally by framework Set value of the objectfinal voidassignValue(int[] indexes, long value) Method Used internally by framework Set value of the objectfinal voidassignValue(int[] indexes, CBLDate value) Method Used internally by framework Set value of the objectvoidassignValue(int[] indexes, CBLTime value) Method Used internally by framework Set value of the objectfinal voidassignValue(int[] indexes, AbstractDataObject theValue) final voidassignValue(int[] indexes, Double value) Method Used internally by framework Set value of the objectfinal voidassignValue(int[] indexes, Long value) Method Used internally by framework Set value of the objectfinal voidassignValue(int[] indexes, String value) Method Used internally by framework Set value of the objectfinal voidassignValue(int[] indexes, BigDecimal value) Method Used internally by framework Set value of the objectvoidassignValue(int idx, Object newValue) Assign a value to an arrayed fieldvoidassignValue(long value) Method Used internally by framework Set value of the objectvoidassignValue(CBLDate value) Method Used internally by framework Set value of the objectvoidassignValue(CBLTime value) Method Used internally by framework Set value of the objectvoidassignValue(AbstractCBLField field) Set value of the objectvoidassignValue(AbstractCBLField field, int[] indexes) Method Used internally by framework Set value of the objectvoidassignValue(AbstractDataObject field) final voidassignValue(Double value) Method Used internally by framework Set value of the objectfinal voidassignValue(Integer value) Method Used internally by framework Set value of the objectfinal voidassignValue(Long value) Method Used internally by framework Set value of the objectvoidassignValue(Object object) Assign a value to the fieldvoidassignValue(String value) used internally by framework for setting object valuesfinal voidassignValue(BigDecimal value) Method Used internally by framework Set value of the objectvoidassignValueUnFormatted(String value) used internally by framework for setting object values Avoids any formatting on object ...abstract intaccounts for field sizes and Array SIZEs E.g.abstract AbstractCBLFieldprotected abstract AbstractCBLFieldcreateSubField(int[] indexes) voidEnables on Size-Error detection.booleanequals(double value) if field1 == field2booleanequals(int value) if field1 == field2booleanequals(long value) if field1 == field2booleancheck against 88-RangeItemsbooleanequals(CBLPointer pointerField) checks if field is pointing to same area as the PointerFieldbooleanif field1 == field2booleanif field1 == field2booleanequalsRightTrimmed(String theVal) used for test of equality in 88 level Constantsfinal AbstractCBLFieldfinal voidfill(byte filler) Equivalent of COBOL FILL statementfinal voidfill(int filler) Equivalent of COBOL FILL statementfinal voidfill(long startPos, long len, int filler) Equivalant of COBOL FILL statementfinal voidEquivalant of COBOL FILL statementfinal voidEquivalent of COBOL FILL statementfinal AbstractCBLField[]final intused internally by the framework to indicate the lenght of an array fieldfinal Objectget Cached valueUsed internally to retrieve the default values set by the original cobol application.final List<AbstractCBLField>returns list of fields dependent on this fieldfinal int[]to get the overall dimensions of an arrayed field For example, if we haveused internally by the frameworkfinal intShows the position of the field within the underlying character-array This method is used only for debugging purposeintthis method is used in building SQL Tables.final intUsed internally by the framework to indicate the size of the occursfinal ObjectgetObject(int[] indexes) method used internally by softwaremining frameworkfinal int[]for internal use onlyfinal CBLGroupfinal AbstractCBLFieldUsed internally by the framework to return the Redefines items for this fieldfinal AbstractCBLField[]Used internally by the framework
used primarily for ACMInitialize.initialize ...voidincrementPointerOffset(double pointerOffst) POINTER ARITHMATIC - limited functionality.abstract voidvoidmanually set the SizeError flag - used in Division operations to catch Division-By-Zerofinal booleanused internally by the framework.booleanFor internal use only.final booleanUsed internally by the framework to indicate whether a caching strategy is in place.protected booleanChecking of cached array length actuality (if any depending field in wrapper was changed after previous caching of arrayLength)boolean(For backward compatibility) for internal use only ...final booleanisEmpty()IS EMPTY is used in BULL DPS7final booleanisEqualToAll(String filler) to do ..booleanbooleanisFilled(byte filler) Is object filled with 'filler'booleanisFilled(char filler) Is object filled with 'filler'booleanisFilled(int filler) Is object filled with 'filler'booleanIs object filled with 'filler'booleanisFiller()used internally by the framework to indicate if a field represents COBOL FILLERbooleanisGreaterOrEqualTo(double value) compare values of this field with the target fieldbooleanisGreaterOrEqualTo(int value) compare values of this field with the target fieldbooleanisGreaterOrEqualTo(long value) compare values of this field with the target fieldfinal booleanisGreaterOrEqualTo(ISMObject value) compare values of this field with the target fieldbooleanisGreaterOrEqualTo(String value) compare values of this field with the target fieldbooleanisGreaterOrEqualTo(BigDecimal value) compare values of this field with the target fieldbooleanisGreaterThan(char value) compare values of this field with the target fieldbooleanisGreaterThan(double value) compare values of this field with the target fieldbooleanisGreaterThan(int value) compare values of this field with the target fieldbooleanisGreaterThan(long value) compare values of this field with the target fieldfinal booleanisGreaterThan(CBLBean wrapper) compare values of this field with the target fieldfinal booleanisGreaterThan(ISMObject value) compare values of this field with the target fieldbooleanisGreaterThan(String value) compare values of this field with the target fieldbooleanisGreaterThan(BigDecimal value) compare values of this field with the target fieldabstract booleanisGroup()differentiate between fields and groups.final booleanIs object filled with COBOL HIGH Values ?booleanisLessOrEqualTo(double value) compare values of this field with the target fieldbooleanisLessOrEqualTo(int value) compare values of this field with the target fieldbooleanisLessOrEqualTo(long value) compare values of this field with the target fieldfinal booleanisLessOrEqualTo(ISMObject value) compare values of this field with the target fieldbooleanisLessOrEqualTo(String value) compare values of this field with the target fieldbooleanisLessOrEqualTo(BigDecimal value) compare values of this field with the target fieldbooleanisLessThan(double value) compare values of this field with the target fieldbooleanisLessThan(int value) compare values of this field with the target fieldbooleanisLessThan(long value) compare values of this field with the target fieldfinal booleanisLessThan(ISMObject value) compare values of this field with the target fieldbooleanisLessThan(String value) compare values of this field with the target fieldbooleanisLessThan(BigDecimal value) compare values of this field with the target fieldfinal booleanIs object filled with COBOL Low Values ?final booleanused internally by the framework.final booleanused internally by the framework.final booleanisSpaces()Is object filled with SPACESfinal booleanfor internal use onlybooleanUsed Internally by SoftwareMining Framework is this field used in redefines ?final booleanisZeros()Is object filled with ZEROSintlengthOf()Equivalent to IBM COBOL LENGTH OF function: Number of bytes.booleanHandling COBOL ONSIZE ERROR Only works when EnableSizeErrDetectionOnNextOp has been called.final Stringfinal Stringbooleanshows if this field or any of the parents REDEFINED another field.final voidfor internal use onlyprotected abstract voidresetDimensionByIndx(int dimensionValue, int dimensionIndx, AbstractCBLField owner) Method used for reseting of dimensions for example if occurencies of this field depends from another field value (DEPENDING ON)For a group item - it returns the fully expanded String representing the group.retrieveAsString(int[] indexes) used internally by framework to get object values as Stringused internally by framework for getting Stringified object values Returns the "storage" format of the field - for computational fields this would be binaryretrieveAsStringFormatted(int[] indexes) used internally by framework for getting stringified object values THis method is not used a great deal !String[]For Unisys DMS Supportfinal Stringget Field namefinal ObjectUsed internally by the framework get the field as an object if there is a cached value - then return the cached valueused internally by framework for database accessabstract ObjectretrieveSQLObject(int[] indexes) used internally by framework for database accessbyte[]byte[]retrieveStorageBytes(int[] indexes) used internally by framework for getting stringified object values THis method is not used a great deal !final intused internally by the framework to return the internal storage size of the field - e.g.retrieveSubField(int[] indexes) Used internally by the framework to get an array element Used to get an instance of an array object.final StringretrieveSubstring(int offset) final StringretrieveSubstring(int offset, int length) final CBLBeanUsed internally by the framework Get underlying wrapper classvoidsetBlankWhenZero(boolean blankWhenZero) The function will assign spaces to memory representation of fields defined as Numeric-Edited-Format Ie only AFTER invoking this function - when the value of a field is set to ZERO, the system will internally store it as SPACES.voidsetCachedValue(Object theValue) For internal use only set cached Value..final voidDeprecated.- please use assignHighValuesfinal voidsetHighValues(int startPos, int length) Deprecated.- please use assignHighValuesfinal voidDeprecated.- please use assignLowValuesfinal voidsetLowValues(int startPos, int length) Deprecated.- please use assignLowValuesvoidsetNumberOfSQLColumns(int numOccursInherited) final voidsetNumOccurs(AbstractCBLField owner) for internal use only Used during the declarations of Data Holders and persistence data-holdersfinal voidsetOmitted(boolean omitted) used internally by the frameworkfinal voidsetParentGroup(CBLGroup parentGroup) for internal use onlyfinal voidsetSeparateColumn(boolean separateColumn) Deprecated.use assignSeparateColumnfinal voidsetSeparateTable(boolean separateTable) Deprecated.- use assignSeparateTablefinal voidsetSubstring(int offset, int length, int value) Deprecated.- please use assignSubstringfinal voidsetSubstring(int offset, int length, String value) Deprecated.- please use assignSubstringfinal voidsetSubstring(int start, AbstractCBLField value) Deprecated.- please use assignSubstringfinal voidsetSubstring(int start, String value) Deprecated.- please use assignSubstringprotected final voidsetWrapper(CBLBean wrapper) Set underlying wrappertoEbcdic()convert field to Ebcdicfinal StringtoString()
-
Field Details
-
NEEDS_FORMATING
protected static final boolean NEEDS_FORMATING- See Also:
-
STRINGIFY_BEFORE_FORMATTING
protected static final boolean STRINGIFY_BEFORE_FORMATTING- See Also:
-
format
-
log
-
totalRuntime_getSubField
public static long totalRuntime_getSubFieldfor internal use only ... profiling information -
totalruntime_getSubFields_b
public static long totalruntime_getSubFields_b -
totalRuntime_getSubFieldHelper
public static long totalRuntime_getSubFieldHelper -
totalRuntime_setInternalValue
public static long totalRuntime_setInternalValue -
totalRuntime_getWrapperOffset
public static long totalRuntime_getWrapperOffset -
totalRuntime_resetWrapperOffset
public static long totalRuntime_resetWrapperOffset -
totalRuntime_cachingTime
public static long totalRuntime_cachingTime -
totalRuntime_ACMFieldConstructor
public static long totalRuntime_ACMFieldConstructor -
totalRuntime_arrayUtilityReadjustIndex
public static long totalRuntime_arrayUtilityReadjustIndex -
readjustIndex_counter
public static long readjustIndex_counter -
totalRuntime_getSubField_createSubField_count
public static long totalRuntime_getSubField_createSubField_count -
totalRuntime_getSubField_createSubField
public static long totalRuntime_getSubField_createSubField -
totalRuntime_getSubField_setSubFieldHelper
public static long totalRuntime_getSubField_setSubFieldHelper -
resetWrapperOffsetCount
public static int resetWrapperOffsetCount -
wrapperOffsetCount
public static int wrapperOffsetCount
-
-
Constructor Details
-
AbstractCBLField
protected AbstractCBLField()for internal use only
-
-
Method Details
-
getFormat
used internally by the framework- Returns:
-
isSubField
public final boolean isSubField()for internal use only -
fetchParentArray
-
getParentGroup
-
setParentGroup
for internal use only -
getDimensions
public final int[] getDimensions()to get the overall dimensions of an arrayed field For example, if we have05 GROUP-1 OCCURS 10 TIMES. 10 FIELD-A OCCURS 30 TIMES. The field_A.getDimensions will return the following int[] : { 10, 30 };- Returns:
-
getOffsets
public final int[] getOffsets()for internal use only- Returns:
-
isFiller
public boolean isFiller()used internally by the framework to indicate if a field represents COBOL FILLER -
getReverseRedefines
-
redefinesAnotherField
public boolean redefinesAnotherField()shows if this field or any of the parents REDEFINED another field. I.e. is this field involved in a redefinition.
This method is used in external classes such as EbcdicConvertor- Returns:
-
assignRedefines
used internally by the framework to manage the COBOL redefinitions- Parameters:
_redefines-
-
assignRedefines
used internally by the framework to manage the COBOL redefinitions- Parameters:
_redefines-
-
isUsedInRedefines
public boolean isUsedInRedefines()Used Internally by SoftwareMining Framework is this field used in redefines ?- Returns:
-
getRedefines
Used internally by the framework to return the Redefines items for this field- Returns:
-
assignDependingField
Support for COBOL OCCURS DEPENDING- Parameters:
dependingField-
-
addDependedField
Support for COBOL OCCURS DEPENDING- Parameters:
dependedField-
-
getDependedFieldsList
returns list of fields dependent on this field- Returns:
-
getNumOccurs
public final int getNumOccurs()Used internally by the framework to indicate the size of the occurs- Returns:
-
getNumberOfSQLColumns
public int getNumberOfSQLColumns()this method is used in building SQL Tables. When the inherited array size is greater than 1 .. the system will generate separate columns for each inherited array.- Returns:
-
setNumberOfSQLColumns
public void setNumberOfSQLColumns(int numOccursInherited) -
setWrapper
Set underlying wrapper -
retrieveWrapper
Used internally by the framework Get underlying wrapper class- Specified by:
retrieveWrapperin interfaceISMObject
-
setNumOccurs
for internal use only Used during the declarations of Data Holders and persistence data-holders- Parameters:
owner-
-
resetDimensionByIndx
protected abstract void resetDimensionByIndx(int dimensionValue, int dimensionIndx, AbstractCBLField owner) Method used for reseting of dimensions for example if occurencies of this field depends from another field value (DEPENDING ON)- Parameters:
dimensionValue-dimensionIndx-owner-
-
initialize
public abstract void initialize()- Specified by:
initializein interfaceISMObject
-
createBlank
-
retrieveName
get Field name- Specified by:
retrieveNamein interfaceISMObject- Returns:
-
isCachedArrayLengthActual
protected boolean isCachedArrayLengthActual()Checking of cached array length actuality (if any depending field in wrapper was changed after previous caching of arrayLength)- Returns:
- true/false
-
getArrayLength
public final int getArrayLength()used internally by the framework to indicate the lenght of an array field- Returns:
-
setOmitted
public final void setOmitted(boolean omitted) used internally by the framework- Parameters:
omitted-
-
setSeparateTable
public final void setSeparateTable(boolean separateTable) Deprecated.- use assignSeparateTable -
assignSeparateTable
public final void assignSeparateTable(boolean separateTable) Used for in object persistence : determines whether the Multi-dimensional arrays are being kept in a separate table or contained within a single column (packed) in the parent table.- Parameters:
separateTable-
-
isExcludedFromSQLTable
public boolean isExcludedFromSQLTable()- Specified by:
isExcludedFromSQLTablein interfaceISMObject
-
assignExcludeFromSQLTable
public void assignExcludeFromSQLTable(boolean excludeFromSQLTable) - Specified by:
assignExcludeFromSQLTablein interfaceISMObject
-
isSeparateTable
public final boolean isSeparateTable()used internally by the framework. Indicates whether the separate SQL tables are used for representation of the arrayed field- Returns:
-
setSeparateColumn
public final void setSeparateColumn(boolean separateColumn) Deprecated.use assignSeparateColumn -
assignSeparateColumn
public final void assignSeparateColumn(boolean separateColumn) Used for in object persistence : determines whether the Multi-dimensional arrays are being kept in multiple column for each of the arrayed objects a single column (packed) in the parent table.- Parameters:
separateTable-
-
isSeparateColumns
public final boolean isSeparateColumns()used internally by the framework. Indicates whether the separate SQL tables are used for representation of the arrayed field- Returns:
-
isArrayOfArrays
public final boolean isArrayOfArrays()used internally by the framework. indicates if the field was an array of arrays. For example, if lets say we have defined : VAR1[10][20] In this case, VAR1[5] is an array with [20] elements in it. Therefore VAR1[5] is an array, but VAR1[5][2] is not an array- Returns:
-
assignHighValues
public final void assignHighValues()Equivalent of COBOL HIGH VALUES -
setHighValues
public final void setHighValues()Deprecated.- please use assignHighValuesEquivalent of COBOL HIGH VALUES -
setHighValues
public final void setHighValues(int startPos, int length) Deprecated.- please use assignHighValuesEquivalent of COBOL HIGH VALUES- Parameters:
startPos-length-
-
assignHighValues
public final void assignHighValues(int startPos, int length) Equivalent of COBOL HIGH VALUES- Parameters:
startPos-length-
-
setLowValues
public final void setLowValues(int startPos, int length) Deprecated.- please use assignLowValuesEquivalent of COBOL LOW VALUES -
assignLowValues
public final void assignLowValues(int startPos, int length) Equivalent of COBOL LOW VALUES -
assignLowValues
public final void assignLowValues()Equivalent of COBOL LOW VALUES -
setLowValues
public final void setLowValues()Deprecated.- please use assignLowValuesEquivalent of COBOL LOW VALUES -
fill
public final void fill(int filler) Equivalent of COBOL FILL statement -
fill
public final void fill(byte filler) Equivalent of COBOL FILL statement -
fill
Equivalent of COBOL FILL statement -
fill
public final void fill(long startPos, long len, int filler) Equivalant of COBOL FILL statement -
fill
Equivalant of COBOL FILL statement -
getSubFields
Used internally by the framework
used primarily for ACMInitialize.initialize ... ensure that all arrays are initialized get Arrayed subfields Used to get an instance of an array object. For example, ACMFieldString XYZ OCCURS 20 times. the XYZ[0] ... XYZ[19] each is represented thru a different instance of ACMFieldString. This method will create ALL sub-fields, which can be VERY expensive.
Note that if an application only accessees XYZ[12], then only that instance will be created. However, if you INITIALIZE, or FILL "XYZ", then it has to create the whole lot, and this is expensive.- Parameters:
indexes-- Returns:
-
getAllSubFields
-
isLowValues
public final boolean isLowValues()Is object filled with COBOL Low Values ? -
isHighValues
public final boolean isHighValues()Is object filled with COBOL HIGH Values ? -
isSpaces
public final boolean isSpaces()Is object filled with SPACES -
isZeros
public final boolean isZeros()Is object filled with ZEROS -
isFilled
public boolean isFilled(byte filler) Is object filled with 'filler' -
isFilled
Is object filled with 'filler' -
isFilled
public boolean isFilled(int filler) Is object filled with 'filler' -
isFilled
public boolean isFilled(char filler) Is object filled with 'filler' -
equalsRightTrimmed
used for test of equality in 88 level Constants -
assignValue
Set value of the object -
assignValue
-
assignValue
-
assignBean
-
assignGroup
-
assignValue
Assign a value to the field- Specified by:
assignValuein interfaceISMObject
-
assignValue
Method Used internally by framework Set value of the object -
assignValue
Assign a value to an arrayed field- Parameters:
idx- - array-indexnewValue-
-
assignValue
Method Used internally by framework Set value of the object -
assignValue
public void assignValue(int value) Method Used internally by framework Set value of the object -
assignInt
public void assignInt(int value) Method Used internally by framework Set value of the object -
assignLong
public void assignLong(long value) Method Used internally by framework Set value of the object -
assignDouble
public void assignDouble(double value) Method Used internally by framework Set value of the object -
assignBigDecimal
Method Used internally by framework Set value of the object -
assignValue
Method Used internally by framework Set value of the object -
assignValue
public final void assignValue(int[] indexes, long value) Method Used internally by framework Set value of the object -
assignValue
Method Used internally by framework Set value of the object -
assignValue
public void assignValue(long value) Method Used internally by framework Set value of the object -
assignValue
Method Used internally by framework Set value of the object -
assignValue
public final void assignValue(int[] indexes, double value) Method Used internally by framework Set value of the object -
assignValue
Method Used internally by framework Set value of the object -
assignValue
Method Used internally by framework Set value of the object -
assignValue
public void assignValue(double value) Method Used internally by framework Set value of the object -
assignValue
Method Used internally by framework Set value of the object -
assignValue
Method Used internally by framework Set value of the object -
assignValue
Method Used internally by framework Set value of the object -
assignValue
Method Used internally by framework Set value of the object -
assignValue
Method Used internally by framework Set value of the object -
assignValue
Method Used internally by framework Set value of the object -
assignSubstring
translation of MOVE 'A' TO ABC (5:4) -
setSubstring
Deprecated.- please use assignSubstringtranslation of MOVE 'A' TO ABC (5:) -
assignSubstring
translation of MOVE 'A' TO ABC (5:) -
setSubstring
Deprecated.- please use assignSubstringtranslation of MOVE 'A' TO ABC (5:) -
assignSubstring
translation of MOVE 'A' TO ABC (5:) -
setSubstring
Deprecated.- please use assignSubstringtranslation of MOVE 'A' TO ABC (5:4)- Parameters:
value-offset-length-
-
assignSubstring
translation of MOVE 'A' TO ABC (5:4)- Specified by:
assignSubstringin interfaceISMObject- Parameters:
value-offset-length-
-
assignSubstringDeprecated
Set substring of Field- Parameters:
value-offset-
-
setSubstring
public final void setSubstring(int offset, int length, int value) Deprecated.- please use assignSubstringSet substring of Field- Parameters:
offset-length-value-
-
assignSubstring
public final void assignSubstring(int offset, int length, int value) Set substring of Field- Parameters:
offset-length-value-
-
retrieveSubstring
-
getMemoryPosition
public final int getMemoryPosition()Shows the position of the field within the underlying character-array This method is used only for debugging purpose- Specified by:
getMemoryPositionin interfaceICBLDataType- Returns:
- position of field
-
retrieveSubstring
-
retrieveSQLObject
used internally by framework for database access- Specified by:
retrieveSQLObjectin interfaceISMDataType- Specified by:
retrieveSQLObjectin interfaceISMObject
-
retrieveSQLObject
used internally by framework for database access- Specified by:
retrieveSQLObjectin interfaceISMObject
-
assignObject
used internally by framework for setting object values- Specified by:
assignObjectin interfaceISMObject
-
retrieveSubField
Used internally by the framework to get an array element Used to get an instance of an array object. For example, ACMFieldString XYZ OCCURS 20 times. the XYZ[0] ... XYZ[19] each is represented thru a different instance of ACMFieldString. This method will return the particular instance represented by "indexes" (the input parameters).- Specified by:
retrieveSubFieldin interfaceISMObject- Parameters:
indexes-- Returns:
-
createSubField
-
bytesSize
public abstract int bytesSize()accounts for field sizes and Array SIZEs E.g. FIELD1 PIC X OCCURS 100 times. The cellsize is 1, but bytesSize() returns 100 -
retrieveStorageCellSize
public final int retrieveStorageCellSize()used internally by the framework to return the internal storage size of the field - e.g. PIC x(10) will have a size of 10. or PIC S9(4) will have a size of 2- Specified by:
retrieveStorageCellSizein interfaceAbstractDataObject- Specified by:
retrieveStorageCellSizein interfaceISMDataType- Specified by:
retrieveStorageCellSizein interfaceISMObject
-
retrieveStorageBytes
public byte[] retrieveStorageBytes() -
retrieveStorageBytes
public byte[] retrieveStorageBytes(int[] indexes) used internally by framework for getting stringified object values THis method is not used a great deal ! -
assignValue
used internally by framework for setting object values- Specified by:
assignValuein interfaceAbstractDataObject- Specified by:
assignValuein interfaceISMDataType- Specified by:
assignValuein interfaceISMObject
-
assignValueUnFormatted
used internally by framework for setting object values Avoids any formatting on object ... therefore is faster than standard assignValue(); Should not be used if formatting is important. (Currently only used for reading CSVFile class). -
assignString
set the value of object- Specified by:
assignStringin interfaceISMObject- Parameters:
value-
-
assignString
-
assignStringFormatted
The input string is already formatted. used internally by framework for setting object values- Specified by:
assignStringFormattedin interfaceISMObject
-
assignStringFormatted
The input string is already formatted -
retrieveAsStringFormatted
used internally by framework for getting Stringified object values Returns the "storage" format of the field - for computational fields this would be binary- Specified by:
retrieveAsStringFormattedin interfaceISMObject
-
retrieveAsStringFormatted
used internally by framework for getting stringified object values THis method is not used a great deal ! -
retrieveAsString
For a group item - it returns the fully expanded String representing the group. Ie ifGroup contains FIELD-1 PIC (X) OCCURS 4 time. field1[0].set("A"); group.stringValue() returns : "A " ;For a field - it returns the value. Ie for an integer (PIC X(5)) value 10 it would return "10" , Please also see retrieveAsStringFormatted which would return "10 "- Specified by:
retrieveAsStringin interfaceAbstractDataObject- Specified by:
retrieveAsStringin interfaceISMDataType- Specified by:
retrieveAsStringin interfaceISMObject- Returns:
- String representation of a group
-
stringValue
- Specified by:
stringValuein interfaceISMDataType
-
getAsString
-
retrieveAsString
used internally by framework to get object values as String- Parameters:
indexes-- Returns:
-
isGroup
public abstract boolean isGroup()differentiate between fields and groups. -
toString
-
printDetailAndValue
-
printDetails
-
equals
check against 88-RangeItems -
equals
if field1 == field2- Parameters:
value-- Returns:
-
equals
checks if field is pointing to same area as the PointerField- Parameters:
value-- Returns:
-
equals
public boolean equals(int value) if field1 == field2- Parameters:
value-- Returns:
-
equals
public boolean equals(double value) if field1 == field2- Parameters:
value-- Returns:
-
equals
public boolean equals(long value) if field1 == field2- Parameters:
value-- Returns:
-
equals
if field1 == field2- Parameters:
value-- Returns:
-
isGreaterThan
compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterThan
compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterThan
compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterThan
public boolean isGreaterThan(double value) compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterThan
compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterThan
public boolean isGreaterThan(int value) compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterThan
public boolean isGreaterThan(char value) compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterThan
public boolean isGreaterThan(long value) compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterOrEqualTo
compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterOrEqualTo
public boolean isGreaterOrEqualTo(int value) compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterOrEqualTo
compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterOrEqualTo
compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterOrEqualTo
public boolean isGreaterOrEqualTo(double value) compare values of this field with the target field- Parameters:
value-- Returns:
-
isGreaterOrEqualTo
public boolean isGreaterOrEqualTo(long value) compare values of this field with the target field- Parameters:
value-- Returns:
-
isLessThan
compare values of this field with the target field- Parameters:
value-- Returns:
-
isLessThan
public boolean isLessThan(int value) compare values of this field with the target field- Parameters:
value-- Returns:
-
isLessThan
compare values of this field with the target field- Parameters:
value-- Returns:
-
isLessThan
public boolean isLessThan(double value) compare values of this field with the target field- Parameters:
value-- Returns:
-
isLessThan
public boolean isLessThan(long value) compare values of this field with the target field- Parameters:
value-- Returns:
-
isLessThan
compare values of this field with the target field- Parameters:
value-- Returns:
-
isLessOrEqualTo
compare values of this field with the target field- Parameters:
value-- Returns:
-
isLessOrEqualTo
public boolean isLessOrEqualTo(int value) compare values of this field with the target field- Parameters:
value-- Returns:
-
isLessOrEqualTo
compare values of this field with the target field- Parameters:
value-- Returns:
-
isLessOrEqualTo
compare values of this field with the target field- Parameters:
value-- Returns:
-
isLessOrEqualTo
public boolean isLessOrEqualTo(double value) compare values of this field with the target field- Parameters:
value-- Returns:
-
isLessOrEqualTo
public boolean isLessOrEqualTo(long value) compare values of this field with the target field- Parameters:
value-- Returns:
-
retrieveObject
Used internally by the framework get the field as an object if there is a cached value - then return the cached value- Specified by:
retrieveObjectin interfaceISMObject
-
getObject
method used internally by softwaremining framework- Parameters:
indexes-- Returns:
-
isEqualToAll
to do .. IF abcd = ALL '9'- Parameters:
value1-filler-- Returns:
-
setCachedValue
For internal use only set cached Value.. -
getCachedValue
get Cached value- Returns:
- - either the cached object or null if no cached value exists
-
isCachable
public final boolean isCachable()Used internally by the framework to indicate whether a caching strategy is in place. not all fields may be cached . E.g. Groups or subFields cannot be cached.- Returns:
-
resetCachedValue
public final void resetCachedValue()for internal use only -
assignDefaultValue
Used to set the Default values passed to a COBOL field. e.g.
05 FIELD-1 PIC X VALUE "-" -
assignDefaultValue
public void assignDefaultValue(double doubleValue) Used to set the Default values passed to a COBOL field. e.g.
05 FIELD-1 PIC 9 VALUE 1 -
getDefaultValue
Used internally to retrieve the default values set by the original cobol application. E.g.
05 FIELD-1 PIC 9 VALUE 1 -
enableSizeErrDetectionOnNextOp
public void enableSizeErrDetectionOnNextOp()Enables on Size-Error detection. When enabled, if size of the new-value is greater than that defined by the fields PICTURE, then the new value will not be assigned and field will keep its PREVIOUS value. The subsequent call to method onSizeError() will return true -
onSizeError
public boolean onSizeError()Handling COBOL ONSIZE ERROR Only works when EnableSizeErrDetectionOnNextOp has been called.- Returns:
-
invokeSizeError
public void invokeSizeError()manually set the SizeError flag - used in Division operations to catch Division-By-Zero -
lengthOf
public int lengthOf()Equivalent to IBM COBOL LENGTH OF function: Number of bytes. used by a data item- Returns:
- the STORAGE Length as defined by the PICTURE. Ie PIC 9(10) VALUE 123 will return 10 (not 3)
-
toEbcdic
convert field to Ebcdic -
isCacheStateOK
public boolean isCacheStateOK()(For backward compatibility) for internal use only ... checks the integrity of caches.- Returns:
-
assignExternal
Support for COBOL EXTERNAL fields ... e.g.01 SQLCA. ... 05 SQLSTATE pic X(5). ... 01 DAO2. ... 05 SQLSTATE pic X(5) EXTERNAL.In this case, changes to SQLCA.sqlstate will be reflected in DAO2.sqlstate- Parameters:
externalField-
-
assignToAddressOf
Translation of COBOL's
SET pointer (this) TO ADDRESS OF targetField- Parameters:
targetField-
-
assignToAddressOf
Translation of COBOL'sSET pointer (this) TO ADDRESS OF targetField
This (source) will read data from the character array of Target- Specified by:
assignToAddressOfin interfaceICBLContainer- Parameters:
targetField-
-
incrementPointerOffset
public void incrementPointerOffset(double pointerOffst) POINTER ARITHMATIC - limited functionality. EG. in COBOL we can haveADD 2 TO WS-SAD-PTR
This framework does not work with direct memory position - but instead it will offset the pointer position. THis means if it was pointing to a field X(10), incrementing the address by 2 is equivalant of field.substring(2); -
assignPointerOffset
public void assignPointerOffset(double pointerOffst) POINTER ARITHMATIC - limited functionality. EG. in COBOL we can haveADD 2 TO WS-SAD-PTR
This framework does not work with direct memory position - but instead it will offset the pointer position. THis means if it was pointing to a field X(10), incrementing the address by 2 is equivalant of field.substring(2); -
assignAddressTo
Translation of COBOL's
SET ADDRESS OF a-variable TO pointer- Parameters:
pointerField-
-
assignToAddressOf
Translation of COBOL'sSET pointer (this) TO ADDRESS OF targetField
This (source) will read data from the character array of Target- Specified by:
assignToAddressOfin interfaceICBLContainer- Parameters:
targetField-
-
isEmpty
public final boolean isEmpty()IS EMPTY is used in BULL DPS7 -
setBlankWhenZero
public void setBlankWhenZero(boolean blankWhenZero) The function will assign spaces to memory representation of fields defined as Numeric-Edited-Format Ie only AFTER invoking this function - when the value of a field is set to ZERO, the system will internally store it as SPACES.- Parameters:
blankWhenZero-
-
isBMSString
public boolean isBMSString()For internal use only.
This provides same functionality of if (this instanceOf BMSString) without building a dependency on CICS libraries.- Returns:
-
retrieveSQLTableNameOverride
-
assignOverrideSQLTableName
-
retrieveMasterSQLColumnsForArrays
Description copied from interface:ISMObjectFor Unisys DMS Support- Specified by:
retrieveMasterSQLColumnsForArraysin interfaceISMObject
-
assignMasterSQLColumnsForArrays
Description copied from interface:ISMObjectFor Unisys DMS Support- Specified by:
assignMasterSQLColumnsForArraysin interfaceISMObject
-