Package com.softwaremining.wrappers
Class CBLString
java.lang.Object
com.softwaremining.wrappers.AbstractCBLField
com.softwaremining.wrappers.AbstractCBLPrimitive
com.softwaremining.wrappers.CBLString
- All Implemented Interfaces:
AbstractDataObject,IFormatTypes,ICBLContainer,ICBLDataType,IFieldContainer,ISMDataType,ISMObject,ISMString
- Direct Known Subclasses:
BMSBlankString,BMSString,CBLBlankString,CBLFiller
data type for representation of COBOL String formats.
Support packed decimals, redefines, occurs depending , ...
Support packed decimals, redefines, occurs depending , ...
-
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, wrapperOffsetCountFields 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
ConstructorsModifierConstructorDescriptionprotectedfor internal use only.CBLString(AbstractCBLPrimitive parent, int[] index) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidassignJustifiedRight(boolean justifiedRight) voidassignNewSize(int newSize) final voidassignValue(AbstractCBLField field) Set value of the objectfinal voidassignValue(AbstractCBLField field, int[] indexes) Method Used internally by framework Set value of the objectFor internal use only.protected AbstractCBLFieldcreateSubField(int[] index) booleancheck against 88-RangeItemsbooleanequalsAll(char value) SAS 03.03.2009 Lexicographical comparison operatorbooleanSAS 03.03.2009 Lexicographical comparison operatorfinal String[]SAS 11.03.2009 returns table as an array of valuesfinal intfinal ObjectgetValue(int idx) Arrayed Accessor - for single dimenSion arrays ...booleanisFiller()used internally by the framework to indicate if a field represents COBOL FILLERfinal booleanbooleanisLessThanAll(char value) SAS 03.03.2009 Lexicographical comparison operatorbooleanisLessThanAll(String value) SAS 03.03.2009 Lexicographical comparison operatorFor a group item - it returns the fully expanded String representing the group.final ObjectretrieveSQLObject(int[] indexes) method used internally by framework Get values from an SQL table and then caches it.final voidsetJustifiedRight(boolean justifiedRight) Deprecated.- use assignJustifiedRightMethods inherited from class com.softwaremining.wrappers.AbstractCBLPrimitive
bytesSize, getPicture, initialize, initialize, isGroup, pad, pad, resetDimensionByIndx, retrieveField, setObjectAsStringMethods 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, assignValueUnFormatted, enableSizeErrDetectionOnNextOp, 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, 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, retrieveAsStringFormatted, retrieveAsStringFormatted, retrieveMasterSQLColumnsForArrays, retrieveName, retrieveObject, retrieveSQLObject, retrieveSQLTableNameOverride, retrieveStorageBytes, retrieveStorageBytes, retrieveStorageCellSize, retrieveSubField, retrieveSubstring, retrieveSubstring, retrieveWrapper, setBlankWhenZero, setCachedValue, setHighValues, setHighValues, setLowValues, setLowValues, setNumberOfSQLColumns, setNumOccurs, setOmitted, setParentGroup, setSeparateColumn, setSeparateTable, setSubstring, setSubstring, setSubstring, setSubstring, setWrapper, stringValue, toEbcdic, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.softwaremining.wrappers.AbstractDataObject
assignValue, retrieveStorageCellSizeMethods inherited from interface com.softwaremining.wrappers.ISMObject
assignExcludeFromSQLTable, assignMasterSQLColumnsForArrays, assignObject, assignString, assignStringFormatted, assignValue, bytesSize, initialize, isExcludedFromSQLTable, retrieveAsStringFormatted, retrieveMasterSQLColumnsForArrays, retrieveName, retrieveObject, retrieveSQLObject, retrieveStorageCellSize, retrieveSubField, retrieveWrapperMethods inherited from interface com.softwaremining.wrappers.ISMString
assignSubstring, assignValue, equalsRightTrimmed, fill, fill, getFormat, isFilled, lengthOf, retrieveSubstring, retrieveSubstring, stringValue
-
Constructor Details
-
CBLString
protected CBLString()for internal use only. Do not use. -
CBLString
-
CBLString
-
CBLString
-
CBLString
-
CBLString
-
-
Method Details
-
createSubField
- Specified by:
createSubFieldin classAbstractCBLField
-
setJustifiedRight
public final void setJustifiedRight(boolean justifiedRight) Deprecated.- use assignJustifiedRight- Parameters:
justifiedRight-
-
assignJustifiedRight
public final void assignJustifiedRight(boolean justifiedRight) -
isJustifiedRight
public final boolean isJustifiedRight()- Specified by:
isJustifiedRightin interfaceISMString
-
getObject
-
retrieveSQLObject
Description copied from class:AbstractCBLPrimitivemethod used internally by framework Get values from an SQL table and then caches it.- Specified by:
retrieveSQLObjectin interfaceISMObject- Overrides:
retrieveSQLObjectin classAbstractCBLPrimitive
-
getDefaultSpecialValue
public final int getDefaultSpecialValue() -
assignValue
Description copied from class:AbstractCBLFieldSet value of the object- Overrides:
assignValuein classAbstractCBLField
-
assignValue
Description copied from class:AbstractCBLFieldMethod Used internally by framework Set value of the object- Overrides:
assignValuein classAbstractCBLField
-
equals
check against 88-RangeItems- Overrides:
equalsin classAbstractCBLField
-
isLessThanAll
public boolean isLessThanAll(char value) SAS 03.03.2009 Lexicographical comparison operator -
equalsAll
public boolean equalsAll(char value) SAS 03.03.2009 Lexicographical comparison operator -
isLessThanAll
SAS 03.03.2009 Lexicographical comparison operator -
equalsAll
SAS 03.03.2009 Lexicographical comparison operator -
retrieveAsString
For a group item - it returns the fully expanded String representing the group. Ie if Group contains FIELD-1 PIC (X) OCCURS 4 time. field1[0].set("A"); group.stringValue() returns : "A " ; FOr a field - it returnes 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- Overrides:
retrieveAsStringin classAbstractCBLField- Returns:
- String representation of a group
-
getValue
Arrayed Accessor - for single dimenSion arrays ... Eg- Parameters:
arrayElement- - arrayElement- Returns:
-
getAsArray
SAS 11.03.2009 returns table as an array of values- Returns:
- array of field values
-
createBlank
For internal use only.- Specified by:
createBlankin classAbstractCBLField
-
isFiller
public boolean isFiller()Description copied from class:AbstractCBLFieldused internally by the framework to indicate if a field represents COBOL FILLER- Specified by:
isFillerin interfaceISMObject- Overrides:
isFillerin classAbstractCBLField
-
assignNewSize
public void assignNewSize(int newSize)
-