com.ibm.commerce.user.objects
Class MemberGroupUsageAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.user.objects.MemberGroupUsageAccessBean
All Implemented Interfaces:
MemberGroupUsageAccessBeanData

public class MemberGroupUsageAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements MemberGroupUsageAccessBeanData

This table allows a member group to be associated with multiple member group types (or multiple intended usages). This access bean corresponds to the database table 'MBRGRPUSG'.

See Also:
Serialized Form

Constructor Summary
MemberGroupUsageAccessBean()
Zero argument constructor used to initialize the access bean.
MemberGroupUsageAccessBean(javax.ejb.EJBObject o)
constructor
MemberGroupUsageAccessBean(java.lang.Long arg1, java.lang.Integer arg2)
Maps to a corresponding ejbCreate method in the home interface of the EJB
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findRoleGroupTypeByMemberGroup(java.lang.Long aMbrGrpId)
The SQL is "SELECT * FROM MBRGRPUSG WHERE (T1.MBRGRP_ID = ? AND T1.MBRGRPTYPE_ID = -2)".
java.lang.String getField1()
This method provides access to the MBRGRPUSG.FIELD1 column of DB2 type VARCHAR(254).
java.lang.String getMbrGrpId()
This method provides access to the MBRGRPUSG.MBRGRP_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getMbrGrpIdInEJBType()
This method provides access to the MBRGRPUSG.MBRGRP_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getMbrGrpTypeId()
This method provides access to the MBRGRPUSG.MBRGRPTYPE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getMbrGrpTypeIdInEJBType()
This method provides access to the MBRGRPUSG.MBRGRPTYPE_ID column of DB2 type INTEGER NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setField1(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_MbrGrpId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_MbrGrpTypeId(java.lang.String newValue)
Set the primary key for this object
void setMbrGrpId(java.lang.Long newValue)
This method accesses a non-CMP field
void setMbrGrpId(java.lang.String newValue)
This method accesses a non-CMP field
void setMbrGrpTypeId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setMbrGrpTypeId(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

MemberGroupUsageAccessBean

public MemberGroupUsageAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.user.objects.MemberGroupUsage com.ibm.commerce.user.objimpl.MemberGroupUsageHomeBase.findByPrimaryKey(com.ibm.commerce.user.objects.MemberGroupUsageKey) 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_MbrGrpId( java.lang.Long ) setInitKey_MbrGrpTypeId( java.lang.Integer )

MemberGroupUsageAccessBean

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

MemberGroupUsageAccessBean

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

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
arg1 - java.lang.Long
arg2 - java.lang.Integer
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
Method Detail

findRoleGroupTypeByMemberGroup

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

The SQL is "SELECT * FROM MBRGRPUSG WHERE (T1.MBRGRP_ID = ? AND T1.MBRGRPTYPE_ID = -2)".

Parameters:
aMbrGrpId - java.lang.Long
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_MbrGrpId

public void setInitKey_MbrGrpId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_MbrGrpTypeId

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

getMbrGrpTypeId

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

This method provides access to the MBRGRPUSG.MBRGRPTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Foreign key to the MBRGRPTYPE table.

Specified by:
getMbrGrpTypeId in interface MemberGroupUsageAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getMbrGrpTypeIdInEJBType

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

This method provides access to the MBRGRPUSG.MBRGRPTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Foreign key to the MBRGRPTYPE table.

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

setMbrGrpTypeId

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

setMbrGrpTypeId

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

getField1

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

This method provides access to the MBRGRPUSG.FIELD1 column of DB2 type VARCHAR(254).

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
getField1 in interface MemberGroupUsageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setField1

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

getMbrGrpId

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

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

The following is a description of this column:

Foreign key to the MBRGRP table for this member group. This column can be used for the MCSGNBR column in the MCUSTINFO table.

Specified by:
getMbrGrpId in interface MemberGroupUsageAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getMbrGrpIdInEJBType

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

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

The following is a description of this column:

Foreign key to the MBRGRP table for this member group. This column can be used for the MCSGNBR column in the MCUSTINFO table.

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

setMbrGrpId

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

setMbrGrpId

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

Feedback