SAP CC 3.0 BART API

com.highdeal.bart.hci
Class DeleteCDROp

java.lang.Object
  extended by com.highdeal.bart.hci.DeleteCDROp

public class DeleteCDROp
extends java.lang.Object

This operation allows to delete a CDR.

Operation Failure Exception :
InvalidAcquisitionException

XML Schema Fragment
<xs:element name="deleteCDR">
   <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="DeletionModeType"/>
   </xs:complexType>
 </xs:element>
<xs:simpleType name="DeletionModeType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="delete"/>
     <xs:enumeration value="deleteAndDeduplicate"/>
   </xs:restriction>
 </xs:simpleType>

Field Summary
static int DELETE_AND_DEDUPLICATE_MODE
          In this mode, a search of duplicate is performed after the deletion.
static int DELETE_MODE
          In this mode, no search of duplicate is performed after the deletion.
 
Constructor Summary
DeleteCDROp()
          Deletes a CDR in database Default deletion 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 unique ID.
 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 operation 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 unique 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 deletionMode)
          This mode indicates whether a deduplicate process should be made after a CDR is deleted - With mode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELETE_MODE

public static final int DELETE_MODE
In this mode, no search of duplicate is performed after the deletion.

See Also:
Constant Field Values

DELETE_AND_DEDUPLICATE_MODE

public static final int DELETE_AND_DEDUPLICATE_MODE
In this mode, a search of duplicate is performed after the deletion.

See Also:
Constant Field Values
Constructor Detail

DeleteCDROp

public DeleteCDROp()
Deletes a CDR in database Default deletion mode is

See Also:
DELETE_AND_DEDUPLICATE_MODE
Method Detail

getName

public java.lang.String getName()
Gets the operation name.

Returns:
the name.

getCDRID

public java.lang.Long getCDRID()
Gets the CDR unique ID.

Returns:
the CDR unique ID.

setCDRID

public void setCDRID(java.lang.Long id)
Sets the CDR unique ID.

Parameters:
id - the CDR unique id.

setConsumptionDate

public 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.

Parameters:
consumptionDate - the consumption date of the CDR to modify

getConsumptionDate

public 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.

Returns:
the consumption date of the CDR.

setBatchRatingGroupId

public 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.

Parameters:
batchRatingGroupId - the batch rating group Id

getBatchRatingGroupId

public 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.

Returns:
batchRatingGroupId the batch rating group Id

getMode

public int getMode()
Returns the mode of the operation.

Returns:
the mode of the operation.
See Also:
if there are some duplicate CDR of the deleted one, the one with the oldest acquisition date is marked as new, the CDR is deleted regardless of any existing duplicates

setMode

public void setMode(int deletionMode)
This mode indicates whether a deduplicate process should be made after a CDR is deleted - With mode

Parameters:
deletionMode -
See Also:
if there are some duplicate CDR of the deleted one, the one with the oldest acquisition date is marked as new, the CDR is deleted regardless of any existing duplicates

setAttributes

public void setAttributes(XMLAttributes atts)

addCharacterData

public void addCharacterData(java.lang.String cData)

addChild

public void addChild(java.lang.String tagName,
                     XMLMarshallable marsh)

marshal

public void marshal(XMLOutputter output)

SAP CC 3.0 BART API

(c) Copyright 2011 SAP AG. All rights reserved. SAP Convergent Charging 3.0