com.ibm.commerce.fulfillment.objects
Class CalculationRuleMemberGroupRelationshipAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.fulfillment.objects.CalculationRuleMemberGroupRelationshipAccessBean
All Implemented Interfaces:
CalculationRuleMemberGroupRelationshipAccessBeanData

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

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. This access bean corresponds to the database table 'CALRULEMGP'.

See Also:
Serialized Form

Constructor Summary
CalculationRuleMemberGroupRelationshipAccessBean()
Zero argument constructor used to initialize the access bean.
CalculationRuleMemberGroupRelationshipAccessBean(java.lang.Integer arg1, java.lang.Long arg2)
Creates an access bean with the specified attributes.
CalculationRuleMemberGroupRelationshipAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByCalculationRule(java.lang.Integer ruleId)
Retrieves the CalculationRuleMemberGroupAccessBeans that match the specified CalculationRule.
java.util.Enumeration findByCalculationRuleAndStore(java.lang.Integer ruleId, java.lang.Integer storeId)
Retrieves the CalculationRuleMemberGroupAccessBeans that match the specified CalculationRule and Store.
java.util.Enumeration findByMemberGroup(java.lang.Long groupId)
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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_calculationRuleId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_memberGroupId(java.lang.String newValue)
Set the primary key for this object
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CalculationRuleMemberGroupRelationshipAccessBean

public CalculationRuleMemberGroupRelationshipAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.fulfillment.objects.CalculationRuleMemberGroupRelationship com.ibm.commerce.fulfillment.objimpl.CalculationRuleMemberGroupRelationshipHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.CalculationRuleMemberGroupRelationshipKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_calculationRuleId( java.lang.Integer ) setInitKey_memberGroupId( java.lang.Long )

CalculationRuleMemberGroupRelationshipAccessBean

public CalculationRuleMemberGroupRelationshipAccessBean(javax.ejb.EJBObject o)
                                                 throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException

CalculationRuleMemberGroupRelationshipAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
arg1 - the CalculationRule ID
arg2 - 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

findByCalculationRule

public java.util.Enumeration findByCalculationRule(java.lang.Integer ruleId)
                                            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:
ruleId - 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

findByCalculationRuleAndStore

public java.util.Enumeration findByCalculationRuleAndStore(java.lang.Integer ruleId,
                                                           java.lang.Integer storeId)
                                                    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:
ruleId - the CalculationRule ID
storeId - 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

findByMemberGroup

public java.util.Enumeration findByMemberGroup(java.lang.Long groupId)
                                        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:
groupId - 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

setInitKey_calculationRuleId

public void setInitKey_calculationRuleId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_memberGroupId

public void setInitKey_memberGroupId(java.lang.String newValue)

Set the primary key for this object

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

defaultJNDIName

protected java.lang.String defaultJNDIName()
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
Returns:
boolean
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException

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

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

refreshCopyHelper

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

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

Feedback