com.ibm.commerce.fulfillment.objects
Class CalculationCodeMemberGroupAccessBean

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

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

The CalculationCodeQualifyMethod can use the rows of this table to restrict use of a CalculationCode to members of certain MemberGroups. This access bean corresponds to the database table 'CALCODEMGP'.

See Also:
Serialized Form

Constructor Summary
CalculationCodeMemberGroupAccessBean()
Zero argument constructor used to initialize the access bean.
CalculationCodeMemberGroupAccessBean(java.lang.Integer newCalculationCodeId, java.lang.Long newMemberGroupId)
Creates an access bean with the specified attributes.
CalculationCodeMemberGroupAccessBean(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 findByCalculationCodeId(java.lang.Integer calculationCodeId)
Retrieves the CalculationCodeMemberGroupAccessBeans that match the specified CalculationCode.
java.util.Enumeration findByMemberGroupId(java.lang.Long memberGroupId)
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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCalculationCodeId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationCodeId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_calculationCodeId(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
void setMemberGroupId(java.lang.Long newValue)
This method accesses a non-CMP field
void setMemberGroupId(java.lang.String newValue)
This method accesses a non-CMP field
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CalculationCodeMemberGroupAccessBean

public CalculationCodeMemberGroupAccessBean()
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.CalculationCodeMemberGroup com.ibm.commerce.fulfillment.objimpl.CalculationCodeMemberGroupHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.CalculationCodeMemberGroupKey) 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_calculationCodeId( java.lang.Integer ) setInitKey_memberGroupId( java.lang.Long )

CalculationCodeMemberGroupAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
newCalculationCodeId - the CalculationCode ID
newMemberGroupId - 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

CalculationCodeMemberGroupAccessBean

public CalculationCodeMemberGroupAccessBean(javax.ejb.EJBObject o)
                                     throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException
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).

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

defaultJNDIName

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

findByCalculationCodeId

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

findByMemberGroupId

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

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

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

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

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

setCalculationCodeId

public void setCalculationCodeId(java.lang.Integer newValue)
This method accesses a non-CMP field

setCalculationCodeId

public void setCalculationCodeId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setCalculationCodeId in interface CalculationCodeMemberGroupAccessBeanData

setInitKey_calculationCodeId

public void setInitKey_calculationCodeId(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

setMemberGroupId

public void setMemberGroupId(java.lang.Long newValue)
This method accesses a non-CMP field

setMemberGroupId

public void setMemberGroupId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setMemberGroupId in interface CalculationCodeMemberGroupAccessBeanData

Feedback