com.siebel.rf.offline.utilities
Class DPUtilities

java.lang.Object
  |
  +--com.siebel.rf.offline.utilities.DPUtilities

public class DPUtilities
extends java.lang.Object


Field Summary
static java.lang.String DATA_PACKET_SEPERATOR
           
static java.lang.String NUMBER_OF_DPS_KEY
           
 
Constructor Summary
DPUtilities()
           
 
Method Summary
static com.bankframe.bo.DataPacket joinDataPackets(com.bankframe.bo.DataPacket destination, com.bankframe.bo.DataPacket source)
          Add all the key/value pairs of the source data packet to the destination datapacket.
static com.bankframe.bo.DataPacket joinDataPackets(com.bankframe.bo.DataPacket destination, com.bankframe.bo.DataPacket source, int dataPacketNumber)
          Add all the key/value pairs of the source data packet to the destination datapacket.
static com.bankframe.bo.DataPacket joinMultipleDataPackets(com.bankframe.bo.DataPacket destination, java.util.Vector sources)
          Add all the key/value pairs of the source data packets to the destination datapacket.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_PACKET_SEPERATOR

public static final java.lang.String DATA_PACKET_SEPERATOR

NUMBER_OF_DPS_KEY

public static final java.lang.String NUMBER_OF_DPS_KEY
Constructor Detail

DPUtilities

public DPUtilities()
Method Detail

joinDataPackets

public static com.bankframe.bo.DataPacket joinDataPackets(com.bankframe.bo.DataPacket destination,
                                                          com.bankframe.bo.DataPacket source,
                                                          int dataPacketNumber)
Add all the key/value pairs of the source data packet to the destination datapacket. While copying the keys an underscore and the value of packetnumber is added to each key name. The destination datapacket (if not null) is altered by this method.
Parameters:
destination - where the values are copied to (if not null).
source - where the values are copied from
dataPacketNumber - the number appended to each key.
Returns:
the combined datapacket (usually a ref to destination).

joinDataPackets

public static com.bankframe.bo.DataPacket joinDataPackets(com.bankframe.bo.DataPacket destination,
                                                          com.bankframe.bo.DataPacket source)
Add all the key/value pairs of the source data packet to the destination datapacket. While copying the keys an underscore and the value of the number of datapackets key in the destination is added to each key name. If this key is unavailable 0 is used and the key will be create with a value of 1. The destination datapacket (if not null) is altered by this method.
Parameters:
destination - where the values are copied to (if not null).
source - where the values are copied from
Returns:
the combined datapacket (usually a ref to destination).

joinMultipleDataPackets

public static com.bankframe.bo.DataPacket joinMultipleDataPackets(com.bankframe.bo.DataPacket destination,
                                                                  java.util.Vector sources)
Add all the key/value pairs of the source data packets to the destination datapacket. While copying the keys an underscore and the value of the number of datapackets key in the destination is added to each key name. If this key is unavailable 0 is used and the key will be create with a value of 1. The key is incremented for each packet added to the destination. The destination datapacket (if not null) is altered by this method.
Parameters:
destination - where the values are copied to (if not null).
sources - where the values are copied from
Returns:
the combined datapacket (usually a ref to destination).