java.lang.Objectcom.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
com.ibm.commerce.user.objects.MemberRelationshipsAccessBean
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'.
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 |
public MemberRelationshipsAccessBean()
public MemberRelationshipsAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
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
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
Method Detail |
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".
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".
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 = ?)".
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".
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".
public void setInitKey_AncestorId(java.lang.String newValue)
Set the primary key for this object
public void setInitKey_DescendantId(java.lang.String newValue)
Set the primary key for this object
protected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
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.
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.
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.
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.
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.
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.
public void setSequence(java.lang.String newValue)
public void setSequence(java.lang.Integer newValue)
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".
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.