Class RecordMetaData
java.lang.Object
org.eclipse.persistence.internal.eis.cobol.RecordMetaData
- All Implemented Interfaces:
CompositeObject
Purpose: This class contains meta information for a record.
-
Constructor Summary
ConstructorDescriptionconstructorRecordMetaData
(String name) RecordMetaData
(String name, Vector<FieldMetaData> fields) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addField
(FieldMetaData newField) adds the field to the collectiongetFieldNamed
(String fieldName) retrieves theFieldMetaData
with the corresponding name if it existsgetter for myFieldsgetName()
getter for record nameboolean
since a record is by defintion is composite, this always returns truevoid
setFields
(Vector<FieldMetaData> newFields) setter for myFieldsvoid
setter for record name
-
Constructor Details
-
RecordMetaData
public RecordMetaData()constructor -
RecordMetaData
-
RecordMetaData
-
-
Method Details
-
getName
getter for record name- Specified by:
getName
in interfaceCompositeObject
-
setName
setter for record name -
getFields
getter for myFields- Specified by:
getFields
in interfaceCompositeObject
-
setFields
setter for myFields- Specified by:
setFields
in interfaceCompositeObject
-
addField
adds the field to the collection- Specified by:
addField
in interfaceCompositeObject
-
isComposite
public boolean isComposite()since a record is by defintion is composite, this always returns true -
getFieldNamed
retrieves theFieldMetaData
with the corresponding name if it exists- Specified by:
getFieldNamed
in interfaceCompositeObject
-