Package com.softwaremining.containers
Class AbstractContainerBean
java.lang.Object
com.softwaremining.containers.AbstractContainerBean
- All Implemented Interfaces:
AbstractDataObject,ISMBean,ISMDataType,ISMObject
- Direct Known Subclasses:
AbstractORContainer,AbstractSSABean
public abstract class AbstractContainerBean
extends Object
implements AbstractDataObject, ISMObject, ISMBean
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionstandard constructorAbstractContainerBean(BaseService owner) standard constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidassignDefaultValue(String newValue) final voidassignEbcdicValue(String newValue) set the value of this record to EBCDIC bytes passedvoidassignEncodedValue(String theLine) Used by the file-readers - to convert to /from ebcdic IF the flag DATAFILES_ARE_EBCDIC is setvoidassignExcludeFromSQLTable(boolean excludeFromSQLTable) voidassignExemptFromMemRelease(boolean exempt) voidfinal voidassignHighValues(int startPos, int length) Equivalent of COBOL HIGH VALUESvoidfinal voidassignLowValues(int startPos, int length) Equivalent of COBOL LOW VALUESvoidassignMasterSQLColumnsForArrays(String[] columnNames) For Unisys DMS SupportvoidassignObject(int[] idx, Object value) voidassignOverrideSQLTableName(String tableName) voidassignSessionId(Long sessionId) For internal use onlyvoidassignString(String newValue) final voidassignStringFormatted(String newValue) final voidassignSubstring(int offset, int length, String newValue) translation of MOVE 'A' TO ABC (5:4)voidassignValue(ISMBean wrapper) Assign Field ValuesvoidassignValue(Object obj) voidassignValue(String newValue) Assign a value to this DA (CBL type implementations will take care of REDEFINITIONS, OCCURS DEPENDING, Packed=Decimal fields, ...)intbooleanequalsRightTrimmed(String theVal) voidvoidgetValue()protected voidvoidEquivalent of COBOL's INITIALIZE statementvoidbooleanbooleanbooleanisFilled(char filler) booleanbooleanisFiller()booleanvoidthis is called internally - after a program is CANCEL'ed.voidreleaseResources(boolean forceRelease) For internal use only - memory management stuffvoidresetStructure(boolean resetDAOInitialValues) intreturns the size of the Stringified representation of the DAO, ie concatenation of DAO fields sizes The result is COBOL compliant - ie Packed-Decimal Fields will be contain the same binay information as COBOL.returns the Stringified representation of the DAO - concatenation of DAO fields according to the declared fields sizes.retrieveField(int fieldNum) For internal use onlyretrieveField(String fieldName) For internal use onlyif the class ONLY contains Non-Arrayed Strings, the it will override this method Otherwise, XML to Bean generator will create an overriding method.String[]For Unisys DMS SupportFor internal use onlyretrieveSQLObject(int[] idx) intretrieveSubField(int[] idx) final StringretrieveSubstring(int beginIndex, int length) DAO classes need to have one (and only one) field / group.Same as retrieveAsString - returns the Stringified representation of the DAO - concatenation of DAO fields according to the declared fields sizes.voidretrieveValue(AbstractMutableField[] toFields) returns the Stringified representation of the DAO - concatenation of DAO fields according to the declared fields sizes.toString()trim()
-
Field Details
-
sessionId
-
-
Constructor Details
-
AbstractContainerBean
standard constructor- Parameters:
owner-
-
AbstractContainerBean
public AbstractContainerBean()standard constructor
-
-
Method Details
-
retrieveFields
if the class ONLY contains Non-Arrayed Strings, the it will override this method Otherwise, XML to Bean generator will create an overriding method.- Returns:
- list of MString fields
-
retrieveObject
- Specified by:
retrieveObjectin interfaceISMObject
-
retrieveSQLObject
- Specified by:
retrieveSQLObjectin interfaceISMDataType- Specified by:
retrieveSQLObjectin interfaceISMObject
-
retrieveAsStringFormatted
- Specified by:
retrieveAsStringFormattedin interfaceISMObject
-
retrieveAsString
Description copied from interface:ISMBeanreturns the Stringified representation of the DAO - concatenation of DAO fields according to the declared fields sizes. The result is COBOL compliant - ie Packed-Decimal Fields will be contain the same binay information as COBOL.- Specified by:
retrieveAsStringin interfaceAbstractDataObject- Specified by:
retrieveAsStringin interfaceISMBean- Specified by:
retrieveAsStringin interfaceISMDataType- Specified by:
retrieveAsStringin interfaceISMObject- Returns:
-
stringValue
Description copied from interface:ISMBeanreturns the Stringified representation of the DAO - concatenation of DAO fields according to the declared fields sizes. The result is COBOL compliant - ie Packed-Decimal Fields will be contain the same binay information as COBOL.- Specified by:
stringValuein interfaceISMBean- Specified by:
stringValuein interfaceISMDataType- Returns:
-
trim
-
retrieveSubstring
-
retrieveStorageCellSize
public int retrieveStorageCellSize()- Specified by:
retrieveStorageCellSizein interfaceAbstractDataObject- Specified by:
retrieveStorageCellSizein interfaceISMDataType- Specified by:
retrieveStorageCellSizein interfaceISMObject
-
retrieveValue
-
assignValue
Assign Field Values- Parameters:
wrapper-
-
assignStringFormatted
- Specified by:
assignStringFormattedin interfaceISMObject
-
isResourceAlreadyReleased
public boolean isResourceAlreadyReleased()- Specified by:
isResourceAlreadyReleasedin interfaceISMBean
-
releaseResources
public void releaseResources()this is called internally - after a program is CANCEL'ed. it is to help with the GC process -
releaseResources
public void releaseResources(boolean forceRelease) Description copied from interface:ISMBeanFor internal use only - memory management stuff- Specified by:
releaseResourcesin interfaceISMBean
-
retrieveName
- Specified by:
retrieveNamein interfaceISMObject
-
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
-
isFilled
public boolean isFilled(char filler) -
isFilled
-
equalsRightTrimmed
-
retrieveSQLObject
- Specified by:
retrieveSQLObjectin interfaceISMObject
-
assignValue
- Specified by:
assignValuein interfaceISMObject
-
assignObject
- Specified by:
assignObjectin interfaceISMObject
-
retrieveWrapper
- Specified by:
retrieveWrapperin interfaceISMObject
-
bytesSize
public int bytesSize() -
retrieveSubField
- Specified by:
retrieveSubFieldin interfaceISMObject
-
retrieveField
Description copied from interface:ISMBeanFor internal use only- Specified by:
retrieveFieldin interfaceISMBean- Returns:
-
retrieveField
Description copied from interface:ISMBeanFor internal use only- Specified by:
retrieveFieldin interfaceISMBean- Returns:
-
fill
-
fill
-
assignHighValues
public void assignHighValues() -
assignLowValues
public void assignLowValues() -
retrieveTopLevelField
Description copied from interface:ISMBeanDAO classes need to have one (and only one) field / group.
this methods retrieves the top level field / group- Specified by:
retrieveTopLevelFieldin interfaceISMBean- Returns:
-
assignHighValues
public final void assignHighValues(int startPos, int length) Equivalent of COBOL HIGH VALUES- Parameters:
startPos-length-
-
assignLowValues
public final void assignLowValues(int startPos, int length) Equivalent of COBOL LOW VALUES- Parameters:
startPos-length-
-
assignSubstring
translation of MOVE 'A' TO ABC (5:4)- Specified by:
assignSubstringin interfaceISMObject- Parameters:
newValue-offset-length-
-
initializeMD
public void initializeMD() -
initialize
public void initialize()Description copied from interface:ISMBeanEquivalent of COBOL's INITIALIZE statement- Specified by:
initializein interfaceISMBean- Specified by:
initializein interfaceISMObject
-
initDefaultValues
protected void initDefaultValues() -
resetStructure
public void resetStructure(boolean resetDAOInitialValues) - Specified by:
resetStructurein interfaceISMBean
-
getValue
-
retrieveValue
Description copied from interface:ISMBeanSame as retrieveAsString - returns the Stringified representation of the DAO - concatenation of DAO fields according to the declared fields sizes. The result is COBOL compliant - ie Packed-Decimal Fields will be contain the same binay information as COBOL.- Specified by:
retrieveValuein interfaceISMBean- Returns:
-
assignValue
Description copied from interface:ISMBeanAssign a value to this DA (CBL type implementations will take care of REDEFINITIONS, OCCURS DEPENDING, Packed=Decimal fields, ...)- Specified by:
assignValuein interfaceAbstractDataObject- Specified by:
assignValuein interfaceISMBean- Specified by:
assignValuein interfaceISMDataType- Specified by:
assignValuein interfaceISMObject
-
assignDefaultValue
-
assignString
- Specified by:
assignStringin interfaceISMObject
-
retrieveActualLength
public int retrieveActualLength()Description copied from interface:ISMBeanreturns the size of the Stringified representation of the DAO, ie concatenation of DAO fields sizes The result is COBOL compliant - ie Packed-Decimal Fields will be contain the same binay information as COBOL.- Specified by:
retrieveActualLengthin interfaceISMBean- Returns:
-
retrieveEncodedValue
- Returns:
-
retrieveEbcdicValue
-
assignEbcdicValue
set the value of this record to EBCDIC bytes passed- Parameters:
newValue-
-
assignEncodedValue
Used by the file-readers - to convert to /from ebcdic IF the flag DATAFILES_ARE_EBCDIC is set- Parameters:
theLine-
-
assignSessionId
For internal use only- Specified by:
assignSessionIdin interfaceISMBean
-
retrieveSessionId
For internal use only- Specified by:
retrieveSessionIdin interfaceISMBean
-
isFiller
public boolean isFiller() -
toString
-
isExcludedFromSQLTable
public boolean isExcludedFromSQLTable()- Specified by:
isExcludedFromSQLTablein interfaceISMObject
-
assignExcludeFromSQLTable
public void assignExcludeFromSQLTable(boolean excludeFromSQLTable) - Specified by:
assignExcludeFromSQLTablein interfaceISMObject
-
assignExemptFromMemRelease
public void assignExemptFromMemRelease(boolean exempt) - Specified by:
assignExemptFromMemReleasein interfaceISMBean
-
isExemptFromMemRelease
public boolean isExemptFromMemRelease()- Specified by:
isExemptFromMemReleasein interfaceISMBean
-