com.ibm.commerce.pvcdevices.objects
Class PVCDeviceModelAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.pvcdevices.objects.PVCDeviceModelAccessBean
All Implemented Interfaces:
PVCDeviceModelAccessBeanData, java.io.Serializable

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

This bean provides access to the PVCDEVMDL table.

The following is a description of this table:

This table stores device model information. Records will be looked up by value returned by the WebSphere Commerce pervasive computing (PvC) adapter. Each subclass of PVCAdapterImpl is responsible to get a device model name from the HTTP request.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
PVCDeviceModelAccessBean()
          Default constructor.
PVCDeviceModelAccessBean(javax.ejb.EJBObject ejbObject)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
PVCDeviceModelAccessBean(java.lang.String modelName, java.lang.String sessionType)
          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).
 PVCDeviceModelAccessBean findBySessionTypeAndDefaultModelName(java.lang.String sessionType)
          Returns PVCDeviceModelAccessBean found on base of provided values for SessionType and DefaultModelName
 PVCDeviceModelAccessBean findBySessionTypeAndModelName(java.lang.String sessionType, java.lang.String modelName)
          Returns PVCDeviceModelAccessBean 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) NULL.
 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) NULL.
 java.lang.String getModelName()
          This method provides access to the PVCDEVMDL.MODELNAME column of DB2 type VARCHAR(40) NULL.
 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) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setDescription(java.lang.String aDescription)
          This method provides access to the PVCDEVMDL.DESCRIPTION column of DB2 type VARCHAR(128) NULL.
 void setDeviceModelId(java.lang.Integer aDeviceModelId)
          This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.
 void setDeviceModelId(java.lang.String aDeviceModelId)
          This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.
 void setDevModelName(java.lang.String aDevModelName)
          This method provides access to the PVCDEVMDL.DEVMDLNAME column of DB2 type VARCHAR(128) NULL.
 void setInitKey_deviceModelId(java.lang.String aInitKey_deviceModelId)
          Set the primary key for this object
 void setModelName(java.lang.String aModelName)
          This method provides access to the PVCDEVMDL.MODELNAME column of DB2 type VARCHAR(40) NULL.
 void setSessionType(java.lang.String aSessionType)
          This method provides access to the PVCDEVMDL.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.
 void setVendorName(java.lang.String aVendorName)
          This method provides access to the PVCDEVMDL.VENDOR column of DB2 type VARCHAR(80) NULL.
 
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

PVCDeviceModelAccessBean

public PVCDeviceModelAccessBean()

Default constructor. Maps to findByPrimaryKey.


PVCDeviceModelAccessBean

public PVCDeviceModelAccessBean(javax.ejb.EJBObject ejbObject)
                         throws java.rmi.RemoteException

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

Parameters:
ejbObject - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

PVCDeviceModelAccessBean

public PVCDeviceModelAccessBean(java.lang.String modelName,
                                java.lang.String sessionType)
                         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:
modelName - java.lang.String
sessionType - 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

findBySessionTypeAndDefaultModelName

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

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

Parameters:
sessionType - java.lang.String
Returns:
com.ibm.commerce.pvcdevices.objects.PVCDeviceModelAccessBean
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

findBySessionTypeAndModelName

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

Returns PVCDeviceModelAccessBean found based on provided SessionType and ModelName

Parameters:
sessionType - java.lang.String
modelName - java.lang.String
Returns:
com.ibm.commerce.pvcdevices.objects.PVCDeviceModelAccessBean
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

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) NULL.

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

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

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

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) NULL.

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

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) NULL.

The following is a description of this column:

Model name (Empty string means default for devices which have same SESSION_TYPE.) This column is deprecated and is provided for backward compatibility only.

Specified by:
getModelName in interface PVCDeviceModelAccessBeanData
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

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

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) NULL.

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

setDescription

public void setDescription(java.lang.String aDescription)

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

The following is a description of this column:

Short description of the device model.

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

setDeviceModelId

public void setDeviceModelId(java.lang.Integer aDeviceModelId)

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.

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

setDeviceModelId

public void setDeviceModelId(java.lang.String aDeviceModelId)

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:
setDeviceModelId in interface PVCDeviceModelAccessBeanData
Parameters:
aDeviceModelId - java.lang.String
Returns:
void

setDevModelName

public void setDevModelName(java.lang.String aDevModelName)

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

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:
setDevModelName in interface PVCDeviceModelAccessBeanData
Parameters:
aDevModelName - java.lang.String
Returns:
void

setInitKey_deviceModelId

public void setInitKey_deviceModelId(java.lang.String aInitKey_deviceModelId)

Set the primary key for this object

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

setModelName

public void setModelName(java.lang.String aModelName)

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

The following is a description of this column:

Model name (Empty string means default for devices which have same SESSION_TYPE.) This column is deprecated and is provided for backward compatibility only.

Specified by:
setModelName in interface PVCDeviceModelAccessBeanData
Parameters:
aModelName - java.lang.String
Returns:
void

setSessionType

public void setSessionType(java.lang.String aSessionType)

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:
setSessionType in interface PVCDeviceModelAccessBeanData
Parameters:
aSessionType - java.lang.String
Returns:
void

setVendorName

public void setVendorName(java.lang.String aVendorName)

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

The following is a description of this column:

Vendor name of this model.

Specified by:
setVendorName in interface PVCDeviceModelAccessBeanData
Parameters:
aVendorName - java.lang.String
Returns:
void