com.ibm.commerce.pvcdevices.objects
Class PVCDeviceModelAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.pvcdevices.objects.PVCDeviceModelAccessBean
All Implemented Interfaces:
PVCDeviceModelAccessBeanData

public class PVCDeviceModelAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PVCDeviceModelAccessBeanData

This table stores device model information. Records will be looked up by the value returned by the WebSphere Commerce pervasive computing adapter. Each subclass of PVCAdapterImpl is responsible to get a device model name from the HTTP request. This access bean corresponds to the database table 'PVCDEVMDL'.

See Also:
Serialized Form

Constructor Summary
PVCDeviceModelAccessBean()
Zero argument constructor used to initialize the access bean.
PVCDeviceModelAccessBean(javax.ejb.EJBObject o)
constructor
PVCDeviceModelAccessBean(java.lang.String arg1, java.lang.String arg2)
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()
PVCDeviceModelAccessBean findBySessionTypeAndDefaultModelName(java.lang.String sessionType)
Returns PVCDeviceModel found on base of provided values for SessionType and DefaultModelName
PVCDeviceModelAccessBean findBySessionTypeAndModelName(java.lang.String sessionType, java.lang.String deviceModel)
Returns PVCDeviceModel found based on provided SessionType and ModelName
java.lang.String getDescription()
This method provides access to the PVCDEVMDL.DESCRIPTION column of DB2 type VARCHAR(128).
java.lang.String getDeviceModelId()
This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getDeviceModelIdInEJBType()
This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getDevModelName()
This method provides access to the PVCDEVMDL.DEVMDLNAME column of DB2 type VARCHAR(128).
java.lang.String getModelName()
This method provides access to the PVCDEVMDL.MODELNAME column of DB2 type VARCHAR(40).
java.lang.String getSessionType()
This method provides access to the PVCDEVMDL.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.
java.lang.String getVendorName()
This method provides access to the PVCDEVMDL.VENDOR column of DB2 type VARCHAR(80).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setDeviceModelId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setDeviceModelId(java.lang.String newValue)
This method accesses a non-CMP field
void setDevModelName(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_deviceModelId(java.lang.String newValue)
Set the primary key for this object
void setModelName(java.lang.String newValue)
This method accesses a non-CMP field
void setSessionType(java.lang.String newValue)
This method accesses a non-CMP field
void setVendorName(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

PVCDeviceModelAccessBean

public PVCDeviceModelAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.pvcdevices.objects.PVCDeviceModel com.ibm.commerce.pvcdevices.objimpl.PVCDeviceModelHomeBase.findByPrimaryKey(com.ibm.commerce.pvcdevices.objects.PVCDeviceModelKey) 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_deviceModelId( java.lang.Integer )

PVCDeviceModelAccessBean

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

PVCDeviceModelAccessBean

public PVCDeviceModelAccessBean(java.lang.String arg1,
                                java.lang.String arg2)
                         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

Provided parameters are Model Name and Session Type

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

findBySessionTypeAndDefaultModelName

public PVCDeviceModelAccessBean findBySessionTypeAndDefaultModelName(java.lang.String sessionType)
                                                              throws java.rmi.RemoteException,
                                                                     javax.ejb.FinderException,
                                                                     javax.naming.NamingException

Returns PVCDeviceModel found on base of provided values for SessionType and DefaultModelName

Parameters:
sessionType - java.lang.String
Returns:
com.ibm.commerce.pvcdevices.objects.PVCDeviceModel
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findBySessionTypeAndModelName

public PVCDeviceModelAccessBean findBySessionTypeAndModelName(java.lang.String sessionType,
                                                              java.lang.String deviceModel)
                                                       throws java.rmi.RemoteException,
                                                              javax.ejb.FinderException,
                                                              javax.naming.NamingException

Returns PVCDeviceModel found based on provided SessionType and ModelName

Parameters:
sessionType - java.lang.String
deviceModel - java.lang.String
Returns:
com.ibm.commerce.pvcdevices.objects.PVCDeviceModel
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_deviceModelId

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

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 PVCDEVMDL.DESCRIPTION column of DB2 type VARCHAR(128).

The following is a description of this column:

Short description of the device model.

Specified by:
getDescription in interface PVCDeviceModelAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setDescription

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

getVendorName

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

This method provides access to the PVCDEVMDL.VENDOR column of DB2 type VARCHAR(80).

The following is a description of this column:

Vendor name of this model.

Specified by:
getVendorName in interface PVCDeviceModelAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setVendorName

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

getModelName

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

This method provides access to the PVCDEVMDL.MODELNAME column of DB2 type VARCHAR(40).

The following is a description of this column:

The model name. An empty string means default for devices which have the same SESSION_TYPE. This column is &l

Specified by:
getModelName in interface PVCDeviceModelAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setModelName

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

getSessionType

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

This method provides access to the PVCDEVMDL.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.

The following is a description of this column:

Type of carrier. For example, iMode.

Specified by:
getSessionType in interface PVCDeviceModelAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setSessionType

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

getDeviceModelId

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

This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reference number.

Specified by:
getDeviceModelId in interface PVCDeviceModelAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getDeviceModelIdInEJBType

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

This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reference number.

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

setDeviceModelId

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

setDeviceModelId

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

getDevModelName

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

This method provides access to the PVCDEVMDL.DEVMDLNAME column of DB2 type VARCHAR(128).

The following is a description of this column:

The model name. A NULL value means default for devices which have the same SESSION_TYPE.

Specified by:
getDevModelName in interface PVCDeviceModelAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setDevModelName

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

Feedback