com.ibm.commerce.fulfillment.objects
Class CalculationCodeMemberGroupAccessBean

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

public class CalculationCodeMemberGroupAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CalculationCodeMemberGroupAccessBeanData

This bean provides access to the CALCODEMGP table.

The following is a description of this table:

The CalculationCodeQualifyMethod can use the rows of this table to restrict use of a CalculationCode to members of certain MemberGroups.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CalculationCodeMemberGroupAccessBean()
          Default constructor.
CalculationCodeMemberGroupAccessBean(javax.ejb.EJBObject aEJBObject)
          Creates an access bean for the specified EJB.
CalculationCodeMemberGroupAccessBean(java.lang.Integer aCalculationCodeId, 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 findByCalculationCodeId(java.lang.Integer aCalculationCodeId)
          Retrieves the CalculationCodeMemberGroupAccessBeans that match the specified CalculationCode.
 java.util.Enumeration findByMemberGroupId(java.lang.Long aMemberGroupId)
          Retrieves the CalculationCodeMemberGroupAccessBeans that match the specified MemberGroup.
 java.lang.String getCalculationCodeId()
          This method provides access to the CALCODEMGP.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationCodeIdInEJBType()
          This method provides access to the CALCODEMGP.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getMemberGroupId()
          This method provides access to the CALCODEMGP.MBRGRP_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getMemberGroupIdInEJBType()
          This method provides access to the CALCODEMGP.MBRGRP_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCalculationCodeId(java.lang.Integer aCalculationCodeId)
          This method provides access to the CALCODEMGP.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationCodeId(java.lang.String aCalculationCodeId)
          This method provides access to the CALCODEMGP.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 void setInitKey_calculationCodeId(java.lang.String aInitKey_calculationCodeId)
          Set the primary key for this object
 void setInitKey_memberGroupId(java.lang.String aInitKey_memberGroupId)
          Set the primary key for this object
 void setMemberGroupId(java.lang.Long aMemberGroupId)
          This method provides access to the CALCODEMGP.MBRGRP_ID column of DB2 type BIGINT NOT NULL.
 void setMemberGroupId(java.lang.String aMemberGroupId)
          This method provides access to the CALCODEMGP.MBRGRP_ID column of DB2 type BIGINT NOT NULL.
 
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

CalculationCodeMemberGroupAccessBean

public CalculationCodeMemberGroupAccessBean()

Default constructor. Maps to findByPrimaryKey.


CalculationCodeMemberGroupAccessBean

public CalculationCodeMemberGroupAccessBean(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

CalculationCodeMemberGroupAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
aCalculationCodeId - the CalculationCode 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

findByCalculationCodeId

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

Retrieves the CalculationCodeMemberGroupAccessBeans that match the specified CalculationCode.

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

Parameters:
aCalculationCodeId - the CalculationCode ID
Returns:
An Enumeration of all the CalculationCodeMemberGroupAccessBeans 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

findByMemberGroupId

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

Retrieves the CalculationCodeMemberGroupAccessBeans that match the specified MemberGroup.

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

Parameters:
aMemberGroupId - the MemberGroup ID
Returns:
An Enumeration of all the CalculationCodeMemberGroupAccessBeans 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

getCalculationCodeId

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

This method provides access to the CALCODEMGP.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode. See also the FLAGS column of the CALCODE table.

Specified by:
getCalculationCodeId in interface CalculationCodeMemberGroupAccessBeanData
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

getCalculationCodeIdInEJBType

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

This method provides access to the CALCODEMGP.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode. See also the FLAGS column of the CALCODE table.

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 CALCODEMGP.MBRGRP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The MemberGroup. The default implementation of the CalculationCodeQualifyMethod will only allow use of the CalculationCode by users who are members of the MemberGroup, and only if the MemberGroup appears in the STOREMBGRP table for the Store.

Specified by:
getMemberGroupId in interface CalculationCodeMemberGroupAccessBeanData
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 CALCODEMGP.MBRGRP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The MemberGroup. The default implementation of the CalculationCodeQualifyMethod will only allow use of the CalculationCode by users who are members of the MemberGroup, and only if the MemberGroup appears in the STOREMBGRP table for the Store.

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

setCalculationCodeId

public void setCalculationCodeId(java.lang.Integer aCalculationCodeId)

This method provides access to the CALCODEMGP.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode. See also the FLAGS column of the CALCODE table.

Parameters:
aCalculationCodeId - java.lang.Integer
Returns:
void

setCalculationCodeId

public void setCalculationCodeId(java.lang.String aCalculationCodeId)

This method provides access to the CALCODEMGP.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode. See also the FLAGS column of the CALCODE table.

Specified by:
setCalculationCodeId in interface CalculationCodeMemberGroupAccessBeanData
Parameters:
aCalculationCodeId - java.lang.String
Returns:
void

setInitKey_calculationCodeId

public void setInitKey_calculationCodeId(java.lang.String aInitKey_calculationCodeId)

Set the primary key for this object

Parameters:
aInitKey_calculationCodeId - 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

setMemberGroupId

public void setMemberGroupId(java.lang.Long aMemberGroupId)

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

The following is a description of this column:

The MemberGroup. The default implementation of the CalculationCodeQualifyMethod will only allow use of the CalculationCode by users who are members of the MemberGroup, and only if the MemberGroup appears in the STOREMBGRP table for the Store.

Parameters:
aMemberGroupId - java.lang.Long
Returns:
void

setMemberGroupId

public void setMemberGroupId(java.lang.String aMemberGroupId)

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

The following is a description of this column:

The MemberGroup. The default implementation of the CalculationCodeQualifyMethod will only allow use of the CalculationCode by users who are members of the MemberGroup, and only if the MemberGroup appears in the STOREMBGRP table for the Store.

Specified by:
setMemberGroupId in interface CalculationCodeMemberGroupAccessBeanData
Parameters:
aMemberGroupId - java.lang.String
Returns:
void