com.ibm.commerce.user.objects
Class MemberRelationshipsAccessBean

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

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

This table stores membership hierarchy relationships among users and orgEntities. Note that memberGroup is not part of the membership hierarchy. This access bean corresponds to the database table 'MBRREL'.

See Also:
Serialized Form

Constructor Summary
MemberRelationshipsAccessBean()
Zero argument constructor used to initialize the access bean.
MemberRelationshipsAccessBean(javax.ejb.EJBObject o)
constructor
MemberRelationshipsAccessBean(java.lang.Long argAncestorMemberId, java.lang.Long argDecendantMemberId)
Maps to a corresponding ejbCreate method in the home interface of the EJB
MemberRelationshipsAccessBean(java.lang.Long argDecendantMemberId, java.lang.Long argAncestorMemberId, java.lang.Integer argSequence)
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 findAncestors(java.lang.Long aMemberId)
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 aMemberId)
The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.ANCESTOR_ID = ?) AND T1.SEQUENCE = 1".
java.util.Enumeration findDescendantOrganizations(java.lang.Long aAncestorId)
The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.ANCESTOR_ID = ?) and (T1.DESCENDANT_ID <> T1.ANCESTOR_ID ) and (T1.DESCENDANT_ID in (select ORGENTITY_ID from ORGENTITY)) order by T1.SEQUENCE".
java.util.Enumeration findDescendants(java.lang.Long aMemberId)
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 aMemberId)
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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_AncestorId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_DescendantId(java.lang.String newValue)
Set the primary key for this object
void setSequence(java.lang.Integer newValue)
This method accesses a non-CMP field
void setSequence(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

MemberRelationshipsAccessBean

public MemberRelationshipsAccessBean()
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.MemberRelationships com.ibm.commerce.user.objimpl.MemberRelationshipsHomeBase.findByPrimaryKey(com.ibm.commerce.user.objects.MemberRelationshipsKey) 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_AncestorId( java.lang.Long ) setInitKey_DescendantId( java.lang.Long )

MemberRelationshipsAccessBean

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

MemberRelationshipsAccessBean

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

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

Parameters:
argAncestorMemberId - java.lang.Long
argDecendantMemberId - java.lang.Long
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException

MemberRelationshipsAccessBean

public MemberRelationshipsAccessBean(java.lang.Long argDecendantMemberId,
                                     java.lang.Long argAncestorMemberId,
                                     java.lang.Integer argSequence)
                              throws javax.ejb.CreateException,
                                     java.rmi.RemoteException,
                                     javax.naming.NamingException

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

Parameters:
argDecendantMemberId - java.lang.Long
argAncestorMemberId - java.lang.Long
argSequence - java.lang.Integer
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException
Method Detail

findParent

public MemberRelationshipsAccessBean findParent(java.lang.Long aMemberId)
                                         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:
aMemberId - java.lang.Long
Returns:
com.ibm.commerce.user.objects.MemberRelationships
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findAncestors

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

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

findChildren

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

findDescendants

public java.util.Enumeration findDescendants(java.lang.Long aMemberId)
                                      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:
aMemberId - 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_AncestorId

public void setInitKey_AncestorId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_DescendantId

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

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

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

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

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

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

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

setSequence

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

setSequence

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

findDescendantOrganizations

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

The SQL is "SELECT * FROM MBRREL T1 WHERE (T1.ANCESTOR_ID = ?) and (T1.DESCENDANT_ID <> T1.ANCESTOR_ID ) and (T1.DESCENDANT_ID in (select ORGENTITY_ID from ORGENTITY)) 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

Feedback