This chapter lists and describes the Java hooks available for the Oracle Communications Offline Mediation Controller record enhancement charging Enhancement Processor (EP) cartridge.
Java hooks are an advanced feature of NPL (Node Programming Language) that enable Offline Mediation Controller to call a Java method from an NPL program. For more information on using Java hooks with NPL, see the discussion on Java hooks in Offline Mediation Controller Cartridge Development Kit NPL Reference Guide.
Table 3-1 lists the record enhancement charging Java hooks methods.
Table 3-1 Record Enhancement Charging Java Hooks Method Summary
Modifier and Type | Method and Description |
---|---|
void |
load() throws NodeProcessingException Loads data from the database into memory. |
IntField |
exists(StringField key) throws NodeProcessingException Searches for a key in the data collection for the configuration service. |
MapField |
get(StringField key) throws NodeProcessingException Searches for the field that contains the record that matches key. |
StringField |
getLoadedInfo() throws NodeProcessingException Searches for the string that represents the cached data and time it was cached. |
StringField |
getMapField(MapField map, StringField fieldName) throws NodeProcessingException Searches for the value of fieldName in map. |
IntField |
isEmpty(DCField field) throws NodeProcessingException Verifies if field contains any values. |
IntField |
TRUE() throws NodeProcessingException Use this method instead of checking if the return value is 1 (true). |
IntField |
FALSE() throws NodeProcessingException Use this method instead of checking if the return value is 0 (false). |
StringField |
VALUE(IntField val) throws NodeProcessingException Use this method to return the string representation of val. |
MapField |
search(StringField areacode) throws NodeProcessingException Searches for the longest best match in the cached data for areacode. |
MapField |
search(StringField mapGroup, StringField extServicecode, StringField usageclass, StringField locarindVasevent, StringField qosRequested, StringField qosUsed, StringField recordtype) throws NodeProcessingException Searches for the first ranked record matching the search criteria. |
MapField |
search(StringField mapGroup, StringField extUsageclass, StringField usagetype, StringField zoneWs, StringField tariffclass, StringField tariffsubclass, StringField recordtype, StringField connecttype, StringField connectsubtype, StringField transitAreacode, StringField apnAddress, StringField ssPacket) throws NodeProcessingException Searches for the first ranked record matching the search criteria. |
MapField |
search(StringField apnGroup, StringField servicecode, StringField accesspointname) throws NodeProcessingException Searches for the first ranked record matching the search criteria for the access point name (APN) group. |
MapField |
getByNo(IntField no) throws NodeProcessingException Searches for the network operator record having the internal ID no. |
The section describes the record enhancement charging Java hook methods.
void load() throws NodeProcessingException
This function loads data from the database into memory.
This method has no parameters.
This function returns nothing.
IntField exists(StringField key) throws NodeProcessingException
This function searches for a key in the data collection for the configuration service.
key is the key field in the record to search for.
1 (true) if the key is found in the record.
0 (false) if the key is not found in the record.
MapField get(StringField key) throws NodeProcessingException)
This function searches for the record that matches key. The database column name (case insensitive) is used as the field name in the MapField. For Service Code Map and Usage Class Map, which are keyed by the map_group, the first ranked record is returned if found.
key is the key field in the record.
The record that matches the key.
StringField getLoadedInfo() throws NodeProcessingException)
This function searches for the string that represents the cached data and time it was cached.
This method has no parameters.
The string that represents the cached data and the time the data was cached.
StringField getMapField(MapField map, StringField fieldName) throws NodeProcessingException)
This function searches for the value of fieldName in map.
map is the MapField in which the value for fieldName is to be found.
fieldName is the field name for which the value is to be returned.
The string associated with fieldName.
An empty string ("") is returned if the field is not found.
IntField isEmpty(DCField field) throws NodeProcessingException)
This function verifies if field contains any values.
field is the DCField that contains the field type and field value.
1 (true) if the field is empty.
0 (false) if the field is not empty.
IntField TRUE() throws NodeProcessingException)
This function can be used to verify that the return value is 1 (true).
This method has no parameters.
1 (true) if the return value is true.
IntField FALSE() throws NodeProcessingException)
This function can be used to verify that the return value is 0 (false).
This method has no parameters.
0 (false) if the return value is false.
StringField VALUE(IntField val) throws NodeProcessingException)
This function returns the string representation of val.
val is the IntField to be converted from an integer to a string.
The string representation of val.
MapField search(StringField areacode) throws NodeProcessingException)
This function searches for the longest best match in the cached data for areacode.
areacode is the area code to search.
Returns the longest best match for areacode.
MapField search(StringField mapGroup, StringField extServicecode, StringField usageclass, StringField locarindVasevent, StringField qosRequested, StringField qosUsed, StringField recordtype) throws NodeProcessingException
This function searches for the first ranked record matching the search criteria.
mapGroup is the map group.
extServicecode is the name of the external service code map.
usageclass is the name of the usage class map.
locarindVasevent is the MSC responsible for handling the call and the location of the equipment making or receiving the call.
qosRequested is the type of QoS requested.
qosUsed the type of QoS negotiated by the network.
recordtype is the record type.
The first ranked record matching the search criteria.
MapField search(StringField mapGroup, StringField extUsageclass, StringField usagetype, StringField zoneWs, StringField tariffclass, StringField tariffsubclass, StringField recordtype, StringField connecttype, StringField connectsubtype, StringField transitAreacode, StringField apnAddress, StringField ssPacket) throws NodeProcessingException
This function searches for the first ranked record matching the search criteria.
mapGroup is the map group.
extUsageclass is the external usage class.
usagetype is the customer-related usage scenario.
zoneWs is the impact category for wholesale zone.
tariffclass is the tariff class that contains the tariff information.
tariffsubclass is the detailed tariff information.
recordtype is the record type.
connecttype is the type of connection.
connectsubtype is the detailed description of the connection or call type.
transitAreacode is the area code.
apnAddress is the logical name of the connected access point to the external packet data network.
ssPacket is the number of supplementary service records.
The first record matching the search criteria.
MapField search(StringField apnGroup, StringField servicecode, StringField accesspointname) throws NodeProcessingException
This function searches for the first ranked record matching the search criteria for the access point name (APN) group.
apnGroup is the APN group.
servicecode is the service code.
accesspointname is the APN name.
The first record matching the search criteria for the APN.