com.ibm.commerce.user.objects
Class MemberRelationshipsAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.user.objects.MemberRelationshipsAccessBean
All Implemented Interfaces:
MemberRelationshipsAccessBeanData, java.io.Serializable

public class MemberRelationshipsAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements MemberRelationshipsAccessBeanData

This bean provides access to the MBRREL table.

The following is a description of this table:

Stores membership hierarchy relationships among users and orgEntities. Note that memberGroup is not part of the membership hierarchy.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
MemberRelationshipsAccessBean()
          Default constructor.
MemberRelationshipsAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
MemberRelationshipsAccessBean(java.lang.Long aDecendantMemberId, java.lang.Long aAncestorMemberId)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
MemberRelationshipsAccessBean(java.lang.Long aDecendantMemberId, java.lang.Long aAncestorMemberId, java.lang.Integer aSequence)
          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).
 java.util.Enumeration findAncestors(java.lang.Long aDescendantId)
          The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.DESCENDANT_ID = ?) AND (T1.DESCENDANT_ID <> T1.ANCESTOR_ID ) ORDER BY T1.SEQUENCE".
 java.util.Enumeration findByAncestorsAndDescendants(java.lang.Long aAncestorId, java.lang.Long aDescendantId)
          The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.ANCESTOR_ID = ?) AND (T1.DESCENDANT_ID = ?)".
 java.util.Enumeration findChildren(java.lang.Long aAncestorId)
          The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.ANCESTOR_ID = ?) AND T1.SEQUENCE = 1".
 java.util.Enumeration findDescendants(java.lang.Long aAncestorId)
          The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.ANCESTOR_ID = ?) AND (T1.DESCENDANT_ID <> T1.ANCESTOR_ID ) ORDER BY T1.SEQUENCE".
 MemberRelationshipsAccessBean findParent(java.lang.Long aDescendantId)
          The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.DESCENDANT_ID = ?) AND T1.SEQUENCE = 1".
 java.lang.String getAncestorId()
          This method provides access to the MBRREL.ANCESTOR_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getAncestorIdInEJBType()
          This method provides access to the MBRREL.ANCESTOR_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getDescendantId()
          This method provides access to the MBRREL.DESCENDANT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getDescendantIdInEJBType()
          This method provides access to the MBRREL.DESCENDANT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getSequence()
          This method provides access to the MBRREL.SEQUENCE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getSequenceInEJBType()
          This method provides access to the MBRREL.SEQUENCE column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_AncestorId(java.lang.String aInitKey_AncestorId)
          Set the primary key for this object
 void setInitKey_DescendantId(java.lang.String aInitKey_DescendantId)
          Set the primary key for this object
 void setSequence(java.lang.Integer aSequence)
          This method provides access to the MBRREL.SEQUENCE column of DB2 type INTEGER NOT NULL.
 void setSequence(java.lang.String aSequence)
          This method provides access to the MBRREL.SEQUENCE column of DB2 type INTEGER 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

MemberRelationshipsAccessBean

public MemberRelationshipsAccessBean()

Default constructor. Maps to findByPrimaryKey.


MemberRelationshipsAccessBean

public MemberRelationshipsAccessBean(javax.ejb.EJBObject object)
                              throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

MemberRelationshipsAccessBean

public MemberRelationshipsAccessBean(java.lang.Long aDecendantMemberId,
                                     java.lang.Long aAncestorMemberId)
                              throws javax.ejb.CreateException,
                                     java.rmi.RemoteException,
                                     javax.naming.NamingException

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

Parameters:
aDecendantMemberId - java.lang.Long
aAncestorMemberId - java.lang.Long
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

MemberRelationshipsAccessBean

public MemberRelationshipsAccessBean(java.lang.Long aDecendantMemberId,
                                     java.lang.Long aAncestorMemberId,
                                     java.lang.Integer aSequence)
                              throws javax.ejb.CreateException,
                                     java.rmi.RemoteException,
                                     javax.naming.NamingException

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

Parameters:
aDecendantMemberId - java.lang.Long
aAncestorMemberId - java.lang.Long
aSequence - java.lang.Integer
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

findAncestors

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

The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.DESCENDANT_ID = ?) AND (T1.DESCENDANT_ID <> T1.ANCESTOR_ID ) ORDER BY T1.SEQUENCE".

Parameters:
aDescendantId - 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 - The javax.naming.NamingException exception

findByAncestorsAndDescendants

public java.util.Enumeration findByAncestorsAndDescendants(java.lang.Long aAncestorId,
                                                           java.lang.Long aDescendantId)
                                                    throws java.rmi.RemoteException,
                                                           javax.ejb.FinderException,
                                                           javax.naming.NamingException

The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.ANCESTOR_ID = ?) AND (T1.DESCENDANT_ID = ?)".

Parameters:
aAncestorId - java.lang.Long
aDescendantId - 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 - The javax.naming.NamingException exception

findChildren

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

The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.ANCESTOR_ID = ?) AND T1.SEQUENCE = 1".

Parameters:
aAncestorId - 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 - The javax.naming.NamingException exception

findDescendants

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

The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.ANCESTOR_ID = ?) AND (T1.DESCENDANT_ID <> T1.ANCESTOR_ID ) ORDER BY T1.SEQUENCE".

Parameters:
aAncestorId - 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 - The javax.naming.NamingException exception

findParent

public MemberRelationshipsAccessBean findParent(java.lang.Long aDescendantId)
                                         throws java.rmi.RemoteException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.DESCENDANT_ID = ?) AND T1.SEQUENCE = 1".

Parameters:
aDescendantId - java.lang.Long
Returns:
com.ibm.commerce.user.objects.MemberRelationshipsAccessBean
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

getAncestorId

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

This method provides access to the MBRREL.ANCESTOR_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Ancestor member ID.

Specified by:
getAncestorId in interface MemberRelationshipsAccessBeanData
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

getAncestorIdInEJBType

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

This method provides access to the MBRREL.ANCESTOR_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Ancestor member ID.

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

getDescendantId

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

This method provides access to the MBRREL.DESCENDANT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Descendant member ID.

Specified by:
getDescendantId in interface MemberRelationshipsAccessBeanData
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

getDescendantIdInEJBType

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

This method provides access to the MBRREL.DESCENDANT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Descendant member ID.

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

getSequence

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

This method provides access to the MBRREL.SEQUENCE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

A number to indicate whether the ancestor is the parent, grandparent, great grandparent, and so on for the descendant. 1 means parent, 2 means grand parent, and so on. For the Root Organization, it is its own parent and sequence is 0.

Specified by:
getSequence in interface MemberRelationshipsAccessBeanData
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

getSequenceInEJBType

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

This method provides access to the MBRREL.SEQUENCE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

A number to indicate whether the ancestor is the parent, grandparent, great grandparent, and so on for the descendant. 1 means parent, 2 means grand parent, and so on. For the Root Organization, it is its own parent and sequence is 0.

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

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_AncestorId

public void setInitKey_AncestorId(java.lang.String aInitKey_AncestorId)

Set the primary key for this object

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

setInitKey_DescendantId

public void setInitKey_DescendantId(java.lang.String aInitKey_DescendantId)

Set the primary key for this object

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

setSequence

public void setSequence(java.lang.Integer aSequence)

This method provides access to the MBRREL.SEQUENCE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

A number to indicate whether the ancestor is the parent, grandparent, great grandparent, and so on for the descendant. 1 means parent, 2 means grand parent, and so on. For the Root Organization, it is its own parent and sequence is 0.

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

setSequence

public void setSequence(java.lang.String aSequence)

This method provides access to the MBRREL.SEQUENCE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

A number to indicate whether the ancestor is the parent, grandparent, great grandparent, and so on for the descendant. 1 means parent, 2 means grand parent, and so on. For the Root Organization, it is its own parent and sequence is 0.

Specified by:
setSequence in interface MemberRelationshipsAccessBeanData
Parameters:
aSequence - java.lang.String
Returns:
void