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
-
Constructor Summary
ConstructorDescriptionstandard constructorAbstractContainerBean
(BaseService owner) standard constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
assignDefaultValue
(String newValue) final void
assignEbcdicValue
(String newValue) set the value of this record to EBCDIC bytes passedvoid
assignEncodedValue
(String theLine) Used by the file-readers - to convert to /from ebcdic IF the flag DATAFILES_ARE_EBCDIC is setvoid
assignExcludeFromSQLTable
(boolean excludeFromSQLTable) void
assignExemptFromMemRelease
(boolean exempt) void
final void
assignHighValues
(int startPos, int length) Equivalent of COBOL HIGH VALUESvoid
final void
assignLowValues
(int startPos, int length) Equivalent of COBOL LOW VALUESvoid
assignMasterSQLColumnsForArrays
(String[] columnNames) For Unisys DMS Supportvoid
assignObject
(int[] idx, Object value) void
assignOverrideSQLTableName
(String tableName) For Unisys DMS Supportvoid
assignSessionId
(Long sessionId) For internal use onlyvoid
assignString
(String newValue) final void
assignStringFormatted
(String newValue) final void
assignSubstring
(int offset, int length, String newValue) translation of MOVE 'A' TO ABC (5:4)void
assignValue
(ISMBean wrapper) Assign Field Valuesvoid
assignValue
(Object obj) void
assignValue
(String newValue) Assign a value to this DA (CBL type implementations will take care of REDEFINITIONS, OCCURS DEPENDING, Packed=Decimal fields, ...)int
boolean
equalsRightTrimmed
(String theVal) void
void
getValue()
protected void
void
Equivalent of COBOL's INITIALIZE statementvoid
boolean
boolean
boolean
isFilled
(char filler) boolean
boolean
isFiller()
boolean
void
this is called internally - after a program is CANCEL'ed.void
releaseResources
(boolean forceRelease) For internal use only - memory management stuffvoid
resetStructure
(boolean resetDAOInitialValues) int
returns 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) For Unisys DMS Supportint
retrieveSubField
(int[] idx) final String
retrieveSubstring
(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.void
retrieveValue
(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:
retrieveObject
in interfaceISMObject
-
retrieveSQLObject
- Specified by:
retrieveSQLObject
in interfaceISMDataType
- Specified by:
retrieveSQLObject
in interfaceISMObject
-
retrieveAsStringFormatted
- Specified by:
retrieveAsStringFormatted
in interfaceISMObject
-
retrieveAsString
Description copied from interface:ISMBean
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:
retrieveAsString
in interfaceAbstractDataObject
- Specified by:
retrieveAsString
in interfaceISMBean
- Specified by:
retrieveAsString
in interfaceISMDataType
- Specified by:
retrieveAsString
in interfaceISMObject
- Returns:
-
stringValue
Description copied from interface:ISMBean
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:
stringValue
in interfaceISMBean
- Specified by:
stringValue
in interfaceISMDataType
- Returns:
-
trim
-
retrieveSubstring
-
retrieveStorageCellSize
public int retrieveStorageCellSize()- Specified by:
retrieveStorageCellSize
in interfaceAbstractDataObject
- Specified by:
retrieveStorageCellSize
in interfaceISMDataType
- Specified by:
retrieveStorageCellSize
in interfaceISMObject
-
retrieveValue
-
assignValue
Assign Field Values- Parameters:
wrapper
-
-
assignStringFormatted
- Specified by:
assignStringFormatted
in interfaceISMObject
-
isResourceAlreadyReleased
public boolean isResourceAlreadyReleased()- Specified by:
isResourceAlreadyReleased
in 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:ISMBean
For internal use only - memory management stuff- Specified by:
releaseResources
in interfaceISMBean
- Parameters:
forceRelease
-
-
retrieveName
- Specified by:
retrieveName
in interfaceISMObject
-
retrieveSQLTableNameOverride
Description copied from interface:ISMObject
For Unisys DMS Support- Specified by:
retrieveSQLTableNameOverride
in interfaceISMObject
-
assignOverrideSQLTableName
Description copied from interface:ISMObject
For Unisys DMS Support- Specified by:
assignOverrideSQLTableName
in interfaceISMObject
-
retrieveMasterSQLColumnsForArrays
Description copied from interface:ISMObject
For Unisys DMS Support- Specified by:
retrieveMasterSQLColumnsForArrays
in interfaceISMObject
-
assignMasterSQLColumnsForArrays
Description copied from interface:ISMObject
For Unisys DMS Support- Specified by:
assignMasterSQLColumnsForArrays
in interfaceISMObject
-
isFilled
public boolean isFilled(char filler) -
isFilled
-
equalsRightTrimmed
-
retrieveSQLObject
- Specified by:
retrieveSQLObject
in interfaceISMObject
-
assignValue
- Specified by:
assignValue
in interfaceISMObject
-
assignObject
- Specified by:
assignObject
in interfaceISMObject
-
retrieveWrapper
- Specified by:
retrieveWrapper
in interfaceISMObject
-
bytesSize
public int bytesSize() -
retrieveSubField
- Specified by:
retrieveSubField
in interfaceISMObject
-
retrieveField
Description copied from interface:ISMBean
For internal use only- Specified by:
retrieveField
in interfaceISMBean
- Parameters:
fieldNum
-- Returns:
-
retrieveField
Description copied from interface:ISMBean
For internal use only- Specified by:
retrieveField
in interfaceISMBean
- Parameters:
fieldName
-- Returns:
-
fill
-
fill
-
assignHighValues
public void assignHighValues() -
assignLowValues
public void assignLowValues() -
retrieveTopLevelField
Description copied from interface:ISMBean
DAO classes need to have one (and only one) field / group.
this methods retrieves the top level field / group- Specified by:
retrieveTopLevelField
in 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:
assignSubstring
in interfaceISMObject
- Parameters:
offset
-length
-newValue
-
-
initializeMD
public void initializeMD() -
initialize
public void initialize()Description copied from interface:ISMBean
Equivalent of COBOL's INITIALIZE statement- Specified by:
initialize
in interfaceISMBean
- Specified by:
initialize
in interfaceISMObject
-
initDefaultValues
protected void initDefaultValues() -
resetStructure
public void resetStructure(boolean resetDAOInitialValues) - Specified by:
resetStructure
in interfaceISMBean
-
getValue
-
retrieveValue
Description copied from interface:ISMBean
Same 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:
retrieveValue
in interfaceISMBean
- Returns:
-
assignValue
Description copied from interface:ISMBean
Assign a value to this DA (CBL type implementations will take care of REDEFINITIONS, OCCURS DEPENDING, Packed=Decimal fields, ...)- Specified by:
assignValue
in interfaceAbstractDataObject
- Specified by:
assignValue
in interfaceISMBean
- Specified by:
assignValue
in interfaceISMDataType
- Specified by:
assignValue
in interfaceISMObject
-
assignDefaultValue
-
assignString
- Specified by:
assignString
in interfaceISMObject
-
retrieveActualLength
public int retrieveActualLength()Description copied from interface:ISMBean
returns 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:
retrieveActualLength
in 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:
assignSessionId
in interfaceISMBean
-
retrieveSessionId
For internal use only- Specified by:
retrieveSessionId
in interfaceISMBean
-
isFiller
public boolean isFiller() -
toString
-
isExcludedFromSQLTable
public boolean isExcludedFromSQLTable()- Specified by:
isExcludedFromSQLTable
in interfaceISMObject
-
assignExcludeFromSQLTable
public void assignExcludeFromSQLTable(boolean excludeFromSQLTable) - Specified by:
assignExcludeFromSQLTable
in interfaceISMObject
-
assignExemptFromMemRelease
public void assignExemptFromMemRelease(boolean exempt) - Specified by:
assignExemptFromMemRelease
in interfaceISMBean
-
isExemptFromMemRelease
public boolean isExemptFromMemRelease()- Specified by:
isExemptFromMemRelease
in interfaceISMBean
-