com.ibm.commerce.marketingcenter.events.dbobjects
Class OrdersMgp

java.lang.Object
  |
  +--com.ibm.commerce.marketingcenter.events.dbobjects.OrdersMgp
All Implemented Interfaces:
MktgEventHandler, MktgLogEventHandler

public class OrdersMgp
extends java.lang.Object
implements MktgLogEventHandler

This is the object that will persist the event into the OrdersMgp table.


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 java.lang.Long memberGroupId
          Member group ID.
 java.lang.Long ordersId
          Orders ID.
 
Constructor Summary
OrdersMgp()
          Constructor for OrdersMgp.
 
Method Summary
 void addEvent()
          This method will persist/update a record in the ORDERSMGP table.
 void addEvent(java.util.Hashtable h)
          This method will persist/update a record in the ORDERSMGP table.
 void addEvent(java.lang.Long anOrdersId, java.lang.Long aMemberGroupId)
          This method will persist/update a record in the ORDERSMGP table.
 void addEvent( TypedProperty tp)
          This method will persist/update a record in the ORDERSMGP table.
 void addEvent( TypedProperty tp, java.lang.Integer anInt)
          This method will persist/update a record in the ORDERSMGP table.
 java.lang.Long getMemberGroupId()
          Gets the member group ID recorded in the current event.
 java.lang.Long getOrdersId()
          Gets the order ID recorded in the current event.
 void persistEvent()
          Persists the current event by inserting the event details into the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

ordersId

public java.lang.Long ordersId
Orders ID.

memberGroupId

public java.lang.Long memberGroupId
Member group ID.
Constructor Detail

OrdersMgp

public OrdersMgp()
Constructor for OrdersMgp.
Method Detail

addEvent

public void addEvent()
This method will persist/update a record in the ORDERSMGP table. If a a record is not found, one will be created with the counters set to 0. If a record exists, the view count is incremented. The caller must do all the setXXX prior to calling this.

addEvent

public void addEvent(TypedProperty tp)
This method will persist/update a record in the ORDERSMGP table. If a a record is not found, one will be created with the counters set to 0. If a record exists, the view count is incremented.
Specified by:
addEvent in interface MktgLogEventHandler
Parameters:
tp - The TypedProperty that contains all the column=value pairs. The key name should be the same name as in the database table. The type should also be the same (e.g. Integer).

addEvent

public void addEvent(TypedProperty tp,
                     java.lang.Integer anInt)
This method will persist/update a record in the ORDERSMGP table. If a a record is not found, one will be created with the counters set to 0. If a record exists, the view count is incremented.
Specified by:
addEvent in interface MktgLogEventHandler
Parameters:
tp - The TypedProperty that contains all the column=value pairs. The key name should be the same name as in the database table. The type should also be the same (e.g. Integer).
anInt - optional Integer type parameter

addEvent

public void addEvent(java.lang.Long anOrdersId,
                     java.lang.Long aMemberGroupId)
This method will persist/update a record in the ORDERSMGP table. If a a record is not found, one will be created with the counters set to 0. If a record exists, the view count is incremented.
Parameters:
anOrdersId - the order ID to be persisted
aMemberGroupId - the member group ID to be persisted

addEvent

public void addEvent(java.util.Hashtable h)
This method will persist/update a record in the ORDERSMGP table. If a a record is not found, one will be created with the counters set to 0. If a record exists, the view count is incremented.
Specified by:
addEvent in interface MktgLogEventHandler
Parameters:
h - The Hashtable that contains all the column=value pairs. The key name should be the same name as in the database table. The type should also be the same (e.g. Integer).

getMemberGroupId

public java.lang.Long getMemberGroupId()
Gets the member group ID recorded in the current event.
Returns:
member group ID

getOrdersId

public java.lang.Long getOrdersId()
Gets the order ID recorded in the current event.
Returns:
order ID

persistEvent

public void persistEvent()
Persists the current event by inserting the event details into the database.