com.ibm.commerce.fulfillment.objects
Class CalculationRuleMemberGroupRelationshipAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.fulfillment.objects.CalculationRuleMemberGroupRelationshipAccessBean
All Implemented Interfaces:
CalculationRuleMemberGroupRelationshipAccessBeanData, java.io.Serializable

public class CalculationRuleMemberGroupRelationshipAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CalculationRuleMemberGroupRelationshipAccessBeanData

This bean provides access to the CALRULEMGP table.

The following is a description of this table:

A row in this table associates a CalculationRule with a MemberGroup. The discount CalculationRuleQualifyMethod can use this relationship to restrict use of the CalculationRule to members of certain MemberGroups. See the STOREMBRGP table.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CalculationRuleMemberGroupRelationshipAccessBean()
          Default constructor.
CalculationRuleMemberGroupRelationshipAccessBean(javax.ejb.EJBObject aEJBObject)
          Creates an access bean for the specified EJB.
CalculationRuleMemberGroupRelationshipAccessBean(java.lang.Integer aCalculationRuleId, java.lang.Long aMemberGroupId)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByCalculationRule(java.lang.Integer aCalculationRuleId)
          Retrieves the CalculationRuleMemberGroupAccessBeans that match the specified CalculationRule.
 java.util.Enumeration findByCalculationRuleAndStore(java.lang.Integer aCalculationRuleId, java.lang.Integer aStoreId)
          Retrieves the CalculationRuleMemberGroupAccessBeans that match the specified CalculationRule and Store.
 java.util.Enumeration findByMemberGroup(java.lang.Long aMemberGroupId)
          Retrieves the CalculationRuleMemberGroupAccessBeans that match the specified MemberGroup.
 java.lang.String getCalculationRuleId()
          This method provides access to the CALRULEMGP.CALRULE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationRuleIdInEJBType()
          This method provides access to the CALRULEMGP.CALRULE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getMemberGroupId()
          This method provides access to the CALRULEMGP.MBRGRP_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getMemberGroupIdInEJBType()
          This method provides access to the CALRULEMGP.MBRGRP_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_calculationRuleId(java.lang.String aInitKey_calculationRuleId)
          Set the primary key for this object
 void setInitKey_memberGroupId(java.lang.String aInitKey_memberGroupId)
          Set the primary key for this object
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculationRuleMemberGroupRelationshipAccessBean

public CalculationRuleMemberGroupRelationshipAccessBean()

Default constructor. Maps to findByPrimaryKey.


CalculationRuleMemberGroupRelationshipAccessBean

public CalculationRuleMemberGroupRelationshipAccessBean(javax.ejb.EJBObject aEJBObject)
                                                 throws java.rmi.RemoteException

Creates an access bean for the specified EJB.

Parameters:
aEJBObject - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

CalculationRuleMemberGroupRelationshipAccessBean

public CalculationRuleMemberGroupRelationshipAccessBean(java.lang.Integer aCalculationRuleId,
                                                        java.lang.Long aMemberGroupId)
                                                 throws javax.ejb.CreateException,
                                                        java.rmi.RemoteException,
                                                        javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
aCalculationRuleId - the CalculationRule ID
aMemberGroupId - the MemberGroup ID
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
Method Detail

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByCalculationRule

public java.util.Enumeration findByCalculationRule(java.lang.Integer aCalculationRuleId)
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

Retrieves the CalculationRuleMemberGroupAccessBeans that match the specified CalculationRule.

The SQL query used to fetch all the required rows from the CALRULEMGP table is:
SELECT * FROM CALRULEMGP T1 WHERE
T1.CALRULE_ID = ?

Parameters:
aCalculationRuleId - the CalculationRule ID
Returns:
An Enumeration of all the CalculationRuleMemberGroupAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByCalculationRuleAndStore

public java.util.Enumeration findByCalculationRuleAndStore(java.lang.Integer aCalculationRuleId,
                                                           java.lang.Integer aStoreId)
                                                    throws java.rmi.RemoteException,
                                                           javax.ejb.FinderException,
                                                           javax.naming.NamingException

Retrieves the CalculationRuleMemberGroupAccessBeans that match the specified CalculationRule and Store. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALRULEMGP table is:
SELECT * FROM CALRULEMGP T1 WHERE
T1.CALRULE_ID = ? AND T1.MBRGRP_ID IN (SELECT STOREMBRGP.MBRGRP_ID FROM STOREMBRGP WHERE STOREMBRGP.STORE_ID = ?)

Parameters:
aCalculationRuleId - the CalculationRule ID
aStoreId - the Store ID
Returns:
An Enumeration of all the CalculationRuleMemberGroupAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByMemberGroup

public java.util.Enumeration findByMemberGroup(java.lang.Long aMemberGroupId)
                                        throws java.rmi.RemoteException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

Retrieves the CalculationRuleMemberGroupAccessBeans that match the specified MemberGroup.

The SQL query used to fetch all the required rows from the CALRULEMGP table is:
SELECT * FROM CALRULEMGP T1 WHERE
T1.MBRGRP_ID = ?

Parameters:
aMemberGroupId - the MemberGroup ID
Returns:
An Enumeration of all the CalculationRuleMemberGroupAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getCalculationRuleId

public java.lang.String getCalculationRuleId()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

This method provides access to the CALRULEMGP.CALRULE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRule.

Specified by:
getCalculationRuleId in interface CalculationRuleMemberGroupRelationshipAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getCalculationRuleIdInEJBType

public java.lang.Integer getCalculationRuleIdInEJBType()
                                                throws java.rmi.RemoteException,
                                                       javax.ejb.CreateException,
                                                       javax.ejb.FinderException,
                                                       javax.naming.NamingException

This method provides access to the CALRULEMGP.CALRULE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRule.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMemberGroupId

public java.lang.String getMemberGroupId()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

This method provides access to the CALRULEMGP.MBRGRP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The MemberGroup. The default CalculationRuleQualifyMethod for discount CalculationUsage uses the MemberGroup as well as CALRULE.FLAGS and the STOREMBRGP relationship table to determine which customers can use the CalculationRule.

Specified by:
getMemberGroupId in interface CalculationRuleMemberGroupRelationshipAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMemberGroupIdInEJBType

public java.lang.Long getMemberGroupIdInEJBType()
                                         throws java.rmi.RemoteException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

This method provides access to the CALRULEMGP.MBRGRP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The MemberGroup. The default CalculationRuleQualifyMethod for discount CalculationUsage uses the MemberGroup as well as CALRULE.FLAGS and the STOREMBRGP relationship table to determine which customers can use the CalculationRule.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setInitKey_calculationRuleId

public void setInitKey_calculationRuleId(java.lang.String aInitKey_calculationRuleId)

Set the primary key for this object

Parameters:
aInitKey_calculationRuleId - java.lang.String
Returns:
void

setInitKey_memberGroupId

public void setInitKey_memberGroupId(java.lang.String aInitKey_memberGroupId)

Set the primary key for this object

Parameters:
aInitKey_memberGroupId - java.lang.String
Returns:
void