Package com.highdeal.pnr.tif
Class TransactionSet
java.lang.Object
com.highdeal.pnr.tif.TransactionSet
- All Implemented Interfaces:
XMLMarshallable
This class represents a set of
rated transactions
computed by the SAP CC system during the charging process.
There are two types of rated transactions:
- A master transaction relates to the master charge that initiates the rating and charging process.
- The dependent transactions come from the execution of the dependent charges linked to the master charge.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="transacSet" type="TransactionSetType"/>
<xs:complexType name="TransactionSetType">
<xs:sequence>
<xs:element name="master" type="TransactionType" minOccurs="0" maxOccurs="1"/>
<xs:element name="dependent" type="TransactionType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddCharacterData(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.voidAdds a dependent transaction to this transaction set.Returns the dependent transactions.Returns the master transaction.getName()intgetTransactionSet(boolean isFilterTransactions) Gets the transactionSet according to the isFilterTransaction value.Returns the transaction set ID.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidmarshal(XMLOutputter output, String tagName) voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidSets master transaction.voidsetSnapshotIdIfNull(Integer snapshotId) voidSets transaction set ID.
-
Constructor Details
-
TransactionSet
public TransactionSet()Builds an empty transaction set.
-
-
Method Details
-
getName
-
getTransactionSetID
Returns the transaction set ID.- Returns:
- The ID of the transaction set
-
setTransactionSetID
Sets transaction set ID.- Parameters:
id- The transaction set ID
-
getMaster
Returns the master transaction.- Returns:
- The master transaction
-
setMaster
Sets master transaction.- Parameters:
m- The master transaction
-
getDependents
Returns the dependent transactions.- Returns:
- The list of dependent transactions
-
addDependent
Adds a dependent transaction to this transaction set.- Parameters:
t- The dependent transaction to add
-
getOrigin
public int getOrigin()Returns the origin of this set; It corresponds to the origin of the master transaction which can be:usage,recurring,oneshot.- Returns:
- The origin of this set
-
setSnapshotIdIfNull
-
getSnapshotId
-
getTransactionSet
Gets the transactionSet according to the isFilterTransaction value.- Parameters:
isFilterTransactions-trueif the returned transactions of transactionSet must be filtered,falseotherwise.- Returns:
- The transactionSet with filtered transactions or not
-
adaptTransactionAmounts
public void adaptTransactionAmounts() -
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
-
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
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-
marshal
-