Package com.highdeal.mappingtable.hci
Class MappingTableRowModel
java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.mappingtable.hci.MappingTableRowModel
- All Implemented Interfaces:
com.highdeal.filter.domain.ISearchableObject,ITagNameProvider,IXMLMarshallable,XMLMapping,XMLMarshallable,com.highdeal.mappingtable.domain.IMappingTableRowDuplicateCheck
public class MappingTableRowModel
extends HCIModelAdapter
implements XMLMapping, com.highdeal.filter.domain.ISearchableObject, com.highdeal.mappingtable.domain.IMappingTableRowDuplicateCheck
This
Java class represents a row in a mapping table
(or in a subscriber mapping table); This row is identified by a unique key and is defined for a certain period of time.
Note
A row includes two sets of data values:
- A first set that corresponds to the input columns declared in the reference
mapping table class - A second set that corresponds to the output columns declared in the reference table class.
Its validity period is defined with the start and end dates.
Important Note
You can manage different versions of a row in a table.
Related Operations
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="MappingTableRow">
<xs:sequence>
<xs:element name="column" type="MappingTableColumn" minOccurs="0" maxOccurs="unbounded" /> <!-- input/output data values in the row -->
</xs:sequence>
<xs:attribute name="id" type="xs:string" /> <!-- identifier of a row -->
<xs:attribute name="version" type="xs:long" use="optional" />
<xs:attribute name="start" type="xs:dateTime" />
<xs:attribute name="end" type="xs:dateTime" />
</xs:complexType>
<xs:element name="mappingTableRow" type="MappingTableRow"/>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.export()Class<?>getClass(String nsUri, String tag, XMLAttributes atts) Returns theJava classfor a specifiedXML tagand its attributes in a namespace.Gets all thecolumnscontained in the row.Gets the end date of the row.getId()Gets the identifier of the row.getOid()Gets the start date of the row.Gets the XML tag name of the HCI model.Gets the version of the mapping table row.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidmarshalChildren(XMLOutputter output) Gives an XML representation of the child objects of an object.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetEndDate(Date endDate) Sets the end date of the row.voidSets the identifier of the row.voidsetStartDate(Date startDate) Sets the start date of the row.voidsetVersion(Long version) Sets the version of the mapping table row.Methods inherited from class com.highdeal.hci.HCIModelAdapter
marshal
-
Field Details
-
TAG_NAME
The XML tag name of this data model: mappingTableRow- See Also:
-
-
Constructor Details
-
MappingTableRowModel
public MappingTableRowModel()DefaultMappingTableRowmodel.
-
-
Method Details
-
getId
Gets the identifier of the row.- Specified by:
getIdin interfacecom.highdeal.mappingtable.domain.IMappingTableRowDuplicateCheck- Returns:
- A
Stringthat contains the identifier of the row
-
setId
Sets the identifier of the row.- Parameters:
id- The identifier of the row
-
getStartDate
Gets the start date of the row.- Specified by:
getStartDatein interfacecom.highdeal.mappingtable.domain.IMappingTableRowDuplicateCheck- Returns:
- A date representing the start date of the row
-
setStartDate
Sets the start date of the row.- Parameters:
startDate- The date from when the row begin
-
getEndDate
Gets the end date of the row.- Specified by:
getEndDatein interfacecom.highdeal.mappingtable.domain.IMappingTableRowDuplicateCheck- Returns:
- A
Datethat indicate when the row finish
-
setEndDate
Sets the end date of the row.- Parameters:
endDate- The date when the row is finished
-
getVersion
Gets the version of the mapping table row. It is incremented by one each time the mapping table row is modified.- Returns:
- the version of the mapping table row
-
setVersion
Sets the version of the mapping table row.- Parameters:
version- the version of the mapping table row
-
getColumns
Gets all thecolumnscontained in the row.- Returns:
- A list that contains all the column values of the row
-
getTagName
Description copied from interface:ITagNameProviderGets the XML tag name of the HCI model.- Specified by:
getTagNamein interfaceITagNameProvider- Returns:
- The XML tag name
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Specified by:
marshalAttributesin interfaceIXMLMarshallable- Parameters:
output- TheXML outputto marshal the object attributes into
-
marshalChildren
Description copied from interface:IXMLMarshallableGives an XML representation of the child objects of an object.- Specified by:
marshalChildrenin interfaceIXMLMarshallable- Parameters:
output- TheXML outputto marshal the child objects into
-
getClass
Description copied from interface:XMLMappingReturns theJava classfor a specifiedXML tagand its attributes in a namespace.- Specified by:
getClassin interfaceXMLMapping- Parameters:
nsUri- The unique resource identifier of the namespace of the XML tagtag- The local part of the XML tagatts- The attributes of the XML tag- Returns:
- A
Java classwith a default constructor
-
getValue
- Specified by:
getValuein interfacecom.highdeal.filter.domain.ISearchableObject
-
getOid
- Specified by:
getOidin interfacecom.highdeal.filter.domain.ISearchableObject
-
export
- Specified by:
exportin interfacecom.highdeal.filter.domain.ISearchableObject
-