com.ibm.commerce.accesscontrol.objects
Class OrgPolicyAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.accesscontrol.objects.OrgPolicyAccessBean
All Implemented Interfaces:
OrgPolicyAccessBeanData, java.io.Serializable

public class OrgPolicyAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrgPolicyAccessBeanData

This bean provides access to the ACORGPOL table.

The following is a description of this table:

This table records the fact that an organization has updated or deleted one or more of the template organization policies at the organization level.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
OrgPolicyAccessBean()
          Default constructor.
OrgPolicyAccessBean(javax.ejb.EJBObject Object)
          Creates an access bean for the specified EJB
OrgPolicyAccessBean(long anOrgId, int aPolicyId)
          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 findByOrgId(long aOrgId)
          The SQL is "SELECT * FROM ACORGPOL T1 WHERE T1.MEMBER_ID = ?".
 java.util.Enumeration findByPolicyId(int aPolicyId)
          The SQL is "SELECT * FROM ACORGPOL T1 WHERE T1.ACPOLICY_ID = ?".
 java.util.Enumeration findByPolicyIdAndOrgId(int aPolicyId, long aOrgId)
          The SQL is "SELECT * FROM ACORGPOL T1 WHERE T1.ACPOLICY_ID = ? AND T1.MEMBER_ID = ?"
 java.lang.String getOrgId()
          Organization ID.
 long getOrgIdInEJBType()
          Organization ID.
 java.lang.String getPolicyId()
          Policy ID.
 int getPolicyIdInEJBType()
          Policy ID.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_orgId(java.lang.String aInitKey_orgId)
          Set the primary key for this object
 void setInitKey_policyId(java.lang.String aInitKey_policyId)
          Set the primary key for this object
 
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

OrgPolicyAccessBean

public OrgPolicyAccessBean()

Default constructor. Maps to findByPrimaryKey.


OrgPolicyAccessBean

public OrgPolicyAccessBean(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

OrgPolicyAccessBean

public OrgPolicyAccessBean(long anOrgId,
                           int aPolicyId)
                    throws javax.ejb.CreateException,
                           java.rmi.RemoteException,
                           javax.naming.NamingException

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

Parameters:
anOrgId - long
aPolicyId - int
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

findByOrgId

public java.util.Enumeration findByOrgId(long aOrgId)
                                  throws java.rmi.RemoteException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

The SQL is "SELECT * FROM ACORGPOL T1 WHERE T1.MEMBER_ID = ?".

Parameters:
aOrgId - 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

findByPolicyId

public java.util.Enumeration findByPolicyId(int aPolicyId)
                                     throws java.rmi.RemoteException,
                                            javax.ejb.FinderException,
                                            javax.naming.NamingException

The SQL is "SELECT * FROM ACORGPOL T1 WHERE T1.ACPOLICY_ID = ?".

Parameters:
aPolicyId - int
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

findByPolicyIdAndOrgId

public java.util.Enumeration findByPolicyIdAndOrgId(int aPolicyId,
                                                    long aOrgId)
                                             throws java.rmi.RemoteException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException

The SQL is "SELECT * FROM ACORGPOL T1 WHERE T1.ACPOLICY_ID = ? AND T1.MEMBER_ID = ?"

Parameters:
aPolicyId - int
aOrgId - 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

getOrgId

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

Organization ID.

Specified by:
getOrgId in interface OrgPolicyAccessBeanData
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

getOrgIdInEJBType

public long getOrgIdInEJBType()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Organization ID.

Returns:
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

getPolicyId

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

Policy ID.

Specified by:
getPolicyId in interface OrgPolicyAccessBeanData
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

getPolicyIdInEJBType

public int getPolicyIdInEJBType()
                         throws java.rmi.RemoteException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException,
                                javax.naming.NamingException

Policy ID.

Returns:
int
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_orgId

public void setInitKey_orgId(java.lang.String aInitKey_orgId)

Set the primary key for this object

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

setInitKey_policyId

public void setInitKey_policyId(java.lang.String aInitKey_policyId)

Set the primary key for this object

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