com.ibm.commerce.collaboration.cc.objects
Class QueueAccessBean

java.lang.Object
  AbstractEntityAccessBean
      com.ibm.commerce.collaboration.cc.objects.QueueAccessBean
All Implemented Interfaces:
QueueAccessBeanData

public class QueueAccessBean
extends AbstractEntityAccessBean
implements QueueAccessBeanData

This table contains customer care queue records for each store. This access bean corresponds to the database table 'QUEUE'. QueueAccessBean

See Also:
Serialized Form

Constructor Summary
QueueAccessBean()
constructor
QueueAccessBean(java.lang.Integer Store_id, java.lang.String Name, java.lang.Integer AllCSR)
ejbCreate method for a CMP entity bean.
QueueAccessBean(javax.ejb.EJBObject o)
QueueAccessBean constructor
Method Summary
void commitCopyHelper()
commitCopyHelper
java.lang.String defaultJNDIName()
defaultJNDIName
java.util.Enumeration findByStoreId(java.lang.Integer Store_id)
Finds instances using StoreId for Entity Beans: Queue
QueueAccessBean findByStoreIdQueueName(java.lang.Integer Store_id, java.lang.String Name)
Finds an instance using StoreId and QueueName for Entity Bean: Queue
java.lang.Integer getAllCSR()
Get accessor for persistent attribute: AllCSR
java.lang.String getName()
Get accessor for persistent attribute: Name
java.lang.Integer getQueue_id()
Get accessor for persistent attribute: Queue_id
java.lang.Integer getStore_id()
Get accessor for persistent attribute: Store_id
protected void instantiateEJB()
instantiateEJB
protected boolean instantiateEJBByPrimaryKey()
instantiateEJBByPrimaryKey
void refreshCopyHelper()
refreshCopyHelper
void setAllCSR(java.lang.Integer newAllCSR)
Set accessor for persistent attribute: AllCSR
void setInit_Queue_id(java.lang.Integer newValue)
setInit_Queue_id
void setInit_Store_id(java.lang.Integer newValue)
setInit_Store_id
void setName(java.lang.String newValue)
This method accesses a non-CMP field
void setQueue_id(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStore_id(java.lang.Integer 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

QueueAccessBean

public QueueAccessBean()
constructor

QueueAccessBean

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

QueueAccessBean

public QueueAccessBean(java.lang.Integer Store_id,
                       java.lang.String Name,
                       java.lang.Integer AllCSR)
                throws javax.naming.NamingException,
                       javax.ejb.CreateException,
                       java.rmi.RemoteException
ejbCreate method for a CMP entity bean.
Parameters:
Name - Queue Name
AllCSR - Whether all CSRs are allowed to access the queue
Throws:
javax.ejb.CreateException - Raised when has problem to create a new Queue
java.rmi.RemoteException - Raised when network error occurs
javax.naming.NamingException
Method Detail

getAllCSR

public java.lang.Integer getAllCSR()
                            throws java.rmi.RemoteException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   javax.naming.NamingException
Get accessor for persistent attribute: AllCSR
Specified by:
getAllCSR in interface QueueAccessBeanData
Returns:
AllCSR value
Throws:
java.rmi.RemoteException - Raised when network error occurs
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setAllCSR

public void setAllCSR(java.lang.Integer newAllCSR)
Set accessor for persistent attribute: AllCSR
Specified by:
setAllCSR in interface QueueAccessBeanData
Parameters:
newAllCSR - whether all CSRs are allowed to access this queue (allowed value: 0,1)
Throws:
java.rmi.RemoteException - Raised when network error occurs

getName

public java.lang.String getName()
                         throws java.rmi.RemoteException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException,
                                javax.naming.NamingException
Get accessor for persistent attribute: Name
Specified by:
getName in interface QueueAccessBeanData
Returns:
Queue Name
Throws:
java.rmi.RemoteException - Raised when network error occurs
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setName

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

getQueue_id

public java.lang.Integer getQueue_id()
                              throws java.rmi.RemoteException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException
Get accessor for persistent attribute: Queue_id
Specified by:
getQueue_id in interface QueueAccessBeanData
Returns:
Queue Id
Throws:
java.rmi.RemoteException - Raised when network error occurs
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setQueue_id

public void setQueue_id(java.lang.Integer newValue)
This method accesses a non-CMP field
Specified by:
setQueue_id in interface QueueAccessBeanData

getStore_id

public java.lang.Integer getStore_id()
                              throws java.rmi.RemoteException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException
Get accessor for persistent attribute: Store_id
Specified by:
getStore_id in interface QueueAccessBeanData
Returns:
Store Id
Throws:
java.rmi.RemoteException - Raised when network error occurs
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setStore_id

public void setStore_id(java.lang.Integer newValue)
This method accesses a non-CMP field
Specified by:
setStore_id in interface QueueAccessBeanData

setInit_Queue_id

public void setInit_Queue_id(java.lang.Integer newValue)
setInit_Queue_id

Set the primary key for this object

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

setInit_Store_id

public void setInit_Store_id(java.lang.Integer newValue)
setInit_Store_id

Set the primary key for this object

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

defaultJNDIName

public java.lang.String defaultJNDIName()
defaultJNDIName
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws javax.naming.NamingException,
                              javax.ejb.FinderException,
                              java.rmi.RemoteException
instantiateEJB
Returns:
void
Throws:
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws javax.ejb.CreateException,
                                             java.rmi.RemoteException,
                                             javax.naming.NamingException
instantiateEJBByPrimaryKey
Returns:
boolean
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
refreshCopyHelper

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException
commitCopyHelper

Update(flush) data to the EJBObject (persistent storage).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

findByStoreIdQueueName

public QueueAccessBean findByStoreIdQueueName(java.lang.Integer Store_id,
                                              java.lang.String Name)
                                       throws javax.naming.NamingException,
                                              javax.ejb.FinderException,
                                              java.rmi.RemoteException
Finds an instance using StoreId and QueueName for Entity Bean: Queue
Returns:
Queue Object according to StoreId and Queue Id
Throws:
javax.ejb.FinderException - Raised when Queue can not be found
java.rmi.RemoteException - Raised when network error occurs
javax.naming.NamingException

findByStoreId

public java.util.Enumeration findByStoreId(java.lang.Integer Store_id)
                                    throws javax.naming.NamingException,
                                           javax.ejb.FinderException,
                                           java.rmi.RemoteException
Finds instances using StoreId for Entity Beans: Queue
Returns:
Enumeration of Queue Objects according to StoreId
Throws:
javax.ejb.FinderException - Raised when Queue can not be found
java.rmi.RemoteException - Raised when network error occurs
javax.naming.NamingException

Feedback