com.ibm.commerce.accesscontrol.objects
Class ResourceGroupAccessBean

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

public class ResourceGroupAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ResourceGroupAccessBeanData

This bean provides access to the ACRESGRP table.

The following is a description of this table:

This table stores all the resource groups in the system. The conditions column stores an XML document containing the constraints and attribute value pairs used for grouping the resources.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
ResourceGroupAccessBean()
          Default constructor.
ResourceGroupAccessBean(javax.ejb.EJBObject Object)
          Creates an access bean for the specified EJB
ResourceGroupAccessBean(long aOwnerId, java.lang.String aGroupName)
          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 findByGroupName(java.lang.String aGroupName)
          The SQL is "SELECT * FROM ACRESGRP T1 WHERE T1.GRPNAME = ?"
 java.util.Enumeration findByOwnerId(long aOwnerId)
          The SQL is "SELECT * FROM ACRESGRP T1 WHERE T1.MEMBER_ID = ?".
 boolean fulfills(java.lang.Long member, java.lang.String relationship)
          Determines if a given member fulfills a given relationship with the resource.
 java.lang.String getConditions()
          This method provides access to the ACRESGRP.CONDITIONS column of DB2 type LONG NULL.
 java.lang.String getCustomField1()
          This method provides access to the ACRESGRP.FIELD1 column of DB2 type VARCHAR(254) NULL.
 java.lang.String getCustomField2()
          This method provides access to the ACRESGRP.FIELD2 column of DB2 type VARCHAR(254) NULL.
 java.lang.String getDescription()
          This method provides access to the ACRESGRP.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 java.lang.String getGroupName()
          Name of the resource group.
 java.lang.Long getOwner()
          Returns the member id of the owner of the resource.
 java.lang.String getOwnerId()
          Owner id.
 long getOwnerIdInEJBType()
          Owner id.
 java.lang.String getResourceGrpId()
          Resource group id.
 int getResourceGrpIdInEJBType()
          Resource group id.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setConditions(java.lang.String aConditions)
          This method provides access to the ACRESGRP.CONDITIONS column of DB2 type LONG NULL.
 void setCustomField1(java.lang.String aCustomField1)
          This method provides access to the ACRESGRP.FIELD1 column of DB2 type VARCHAR(254) NULL.
 void setCustomField2(java.lang.String aCustomField2)
          This method provides access to the ACRESGRP.FIELD2 column of DB2 type VARCHAR(254) NULL.
 void setDescription(java.lang.String aDescription)
          This method provides access to the ACRESGRP.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 void setGroupName(java.lang.String aGroupName)
          Set the name of the resource group.
 void setInitKey_ResourceGrpId(java.lang.String aInitKey_ResourceGrpId)
          Set the primary key for this object
 void setOwnerId(long aOwnerId)
          Set the owner id.
 void setOwnerId(java.lang.String aOwnerId)
          Set the owner id.
 void setResourceGrpId(int aResourceGrpId)
          Set the resource group id.
 void setResourceGrpId(java.lang.String aResourceGrpId)
          Set the resource group ID.
 
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

ResourceGroupAccessBean

public ResourceGroupAccessBean()

Default constructor. Maps to findByPrimaryKey.


ResourceGroupAccessBean

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

ResourceGroupAccessBean

public ResourceGroupAccessBean(long aOwnerId,
                               java.lang.String aGroupName)
                        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:
aOwnerId - long
aGroupName - java.lang.String
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

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

findByGroupName

public java.util.Enumeration findByGroupName(java.lang.String aGroupName)
                                      throws java.rmi.RemoteException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

The SQL is "SELECT * FROM ACRESGRP T1 WHERE T1.GRPNAME = ?"

Parameters:
aGroupName - java.lang.String
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

findByOwnerId

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

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

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

fulfills

public boolean fulfills(java.lang.Long member,
                        java.lang.String relationship)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException

Determines if a given member fulfills a given relationship with the resource.

Parameters:
member - java.lang.Long
relationship - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
java.lang.Exception - The java.lang.Exception exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getConditions

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

This method provides access to the ACRESGRP.CONDITIONS column of DB2 type LONG NULL.

The following is a description of this column:

XML document describing the condition for this implicit resource group.

Specified by:
getConditions in interface ResourceGroupAccessBeanData
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

getCustomField1

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

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

The following is a description of this column:

Customizable.

Specified by:
getCustomField1 in interface ResourceGroupAccessBeanData
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

getCustomField2

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

This method provides access to the ACRESGRP.FIELD2 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Customizable.

Specified by:
getCustomField2 in interface ResourceGroupAccessBeanData
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

getDescription

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

This method provides access to the ACRESGRP.DESCRIPTION column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Description of the resource group.

Specified by:
getDescription in interface ResourceGroupAccessBeanData
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

getGroupName

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

Name of the resource group.

Specified by:
getGroupName in interface ResourceGroupAccessBeanData
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

getOwner

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

Returns the member id of the owner of the resource.

Returns:
java.lang.Long
Throws:
java.lang.Exception - The java.lang.Exception exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getOwnerId

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

Owner id.

Specified by:
getOwnerId in interface ResourceGroupAccessBeanData
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

getOwnerIdInEJBType

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

Owner 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

getResourceGrpId

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

Resource group id.

Specified by:
getResourceGrpId in interface ResourceGroupAccessBeanData
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

getResourceGrpIdInEJBType

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

Resource group 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

setConditions

public void setConditions(java.lang.String aConditions)

This method provides access to the ACRESGRP.CONDITIONS column of DB2 type LONG NULL.

The following is a description of this column:

XML document describing the condition for this implicit resource group.

Specified by:
setConditions in interface ResourceGroupAccessBeanData
Parameters:
aConditions - java.lang.String
Returns:
void

setCustomField1

public void setCustomField1(java.lang.String aCustomField1)

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

The following is a description of this column:

Customizable.

Specified by:
setCustomField1 in interface ResourceGroupAccessBeanData
Parameters:
aCustomField1 - java.lang.String
Returns:
void

setCustomField2

public void setCustomField2(java.lang.String aCustomField2)

This method provides access to the ACRESGRP.FIELD2 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Customizable.

Specified by:
setCustomField2 in interface ResourceGroupAccessBeanData
Parameters:
aCustomField2 - java.lang.String
Returns:
void

setDescription

public void setDescription(java.lang.String aDescription)

This method provides access to the ACRESGRP.DESCRIPTION column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Description of the resource group.

Specified by:
setDescription in interface ResourceGroupAccessBeanData
Parameters:
aDescription - java.lang.String
Returns:
void

setGroupName

public void setGroupName(java.lang.String aGroupName)

Set the name of the resource group.

Specified by:
setGroupName in interface ResourceGroupAccessBeanData
Parameters:
aGroupName - java.lang.String
Returns:
void

setInitKey_ResourceGrpId

public void setInitKey_ResourceGrpId(java.lang.String aInitKey_ResourceGrpId)

Set the primary key for this object

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

setOwnerId

public void setOwnerId(long aOwnerId)

Set the owner id.

Parameters:
aOwnerId - long
Returns:
void

setOwnerId

public void setOwnerId(java.lang.String aOwnerId)

Set the owner id.

Specified by:
setOwnerId in interface ResourceGroupAccessBeanData
Parameters:
aOwnerId - java.lang.String
Returns:
void

setResourceGrpId

public void setResourceGrpId(int aResourceGrpId)

Set the resource group id.

Parameters:
aResourceGrpId - int
Returns:
void

setResourceGrpId

public void setResourceGrpId(java.lang.String aResourceGrpId)

Set the resource group ID.

Specified by:
setResourceGrpId in interface ResourceGroupAccessBeanData
Parameters:
aResourceGrpId - java.lang.String
Returns:
void