|
SAP CC 3.0 BART API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.bart.hci.RateCDROp
public class RateCDROp
This operation allows to rate a CDR.
InvalidCDRExceptionRatingErrorException
| XML Schema Fragment |
<xs:element name="rateCDR">
<xs:complexType>
<xs:attribute name="cdrID" type="xs:string"/>
<xs:attribute name="consumptionDate" type="xs:dateTime" use="optional"/>
<xs:attribute name="batchRatingGroupId" type="xs:integer" use="optional"/>
<xs:attribute name="mode" type="RateCDRRatingModeType"/>
</xs:complexType>
</xs:element> |
<xs:simpleType name="RateCDRRatingModeType">
<xs:restriction base="xs:string">
<xs:enumeration value="try"/>
<xs:enumeration value="do"/>
</xs:restriction>
</xs:simpleType> |
| Field Summary | |
|---|---|
static int |
DO_MODE
This is the normal mode. |
static int |
TRY_MODE
In this mode, no commit is done on each side (SAP Convergent Charging BART and Core). |
| Constructor Summary | |
|---|---|
RateCDROp()
Rates a CDR in database Default rating mode is |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
|
void |
addChild(java.lang.String tagName,
XMLMarshallable marsh)
|
java.lang.Integer |
getBatchRatingGroupId()
Gets the batch rating group Id. This information will be used in server side in order for better use of database partition. |
java.lang.Long |
getCDRID()
Gets the CDR. |
java.util.Date |
getConsumptionDate()
Gets the consumption date of the CDR. This information will be used in server side in order for better use of database partition. |
int |
getMode()
Returns the mode of the operation. |
java.lang.String |
getName()
Gets the name. |
void |
marshal(XMLOutputter output)
|
void |
setAttributes(XMLAttributes atts)
|
void |
setBatchRatingGroupId(java.lang.Integer batchRatingGroupId)
Sets the batch rating group Id. This information will be used in server side in order for better use of database partition. |
void |
setCDRID(java.lang.Long id)
Sets the CDR ID. |
void |
setConsumptionDate(java.util.Date consumptionDate)
Sets the consumption date of the CDR. This information will be used in server side in order for better use of database partition. |
void |
setMode(int ratingMode)
This mode indicates whether a the rate should be tried without commit or rated definitely - With mode @see #TRY_MODE , the rate is made in TRY mode if there are some duplicate CDR of the deleted one, - With mode @see #DO_MODE , the rate is committed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TRY_MODE
public static final int DO_MODE
| Constructor Detail |
|---|
public RateCDROp()
DO_MODE| Method Detail |
|---|
public java.lang.String getName()
public java.lang.Long getCDRID()
public void setCDRID(java.lang.Long id)
id - the CDR unique id.public void setConsumptionDate(java.util.Date consumptionDate)
consumptionDate - the consumption date of the CDR to modifypublic java.util.Date getConsumptionDate()
public void setBatchRatingGroupId(java.lang.Integer batchRatingGroupId)
batchRatingGroupId - the batch rating group Idpublic java.lang.Integer getBatchRatingGroupId()
public int getMode()
public void setMode(int ratingMode)
ratingMode - the new rating modepublic void setAttributes(XMLAttributes atts)
public void addCharacterData(java.lang.String cData)
public void addChild(java.lang.String tagName,
XMLMarshallable marsh)
public void marshal(XMLOutputter output)
|
SAP CC 3.0 BART API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||