com.ibm.commerce.pvcdevices.objects
Class PVCSessionAccessBean

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

public class PVCSessionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PVCSessionAccessBeanData

This bean provides access to the PVCSESSION table.

The following is a description of this table:

This table manages the session of various pervasive computing (PvC) devices.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
PVCSessionAccessBean()
          Default constructor.
PVCSessionAccessBean(javax.ejb.EJBObject ejbObject)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
PVCSessionAccessBean(java.lang.String sessionType, java.lang.String terminalId)
          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).
 PVCSessionAccessBean findBySessionTypeAndTerminalId(java.lang.String sessionType, java.lang.String terminalId)
          Returns PVCSessionAccessBean based on the provided values of sessionType and terminalId
 java.lang.String getGuestId()
          This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT NULL.
 java.lang.Long getGuestIdInEJBType()
          This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT NULL.
 java.lang.String getLastVisted()
          This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.
 java.sql.Timestamp getLastVistedInEJBType()
          This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.
 java.lang.String getPVCSessionId()
          This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getPVCSessionIdInEJBType()
          This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getRegisterId()
          This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT NULL.
 java.lang.Long getRegisterIdInEJBType()
          This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT NULL.
 java.lang.String getSessionType()
          This method provides access to the PVCSESSION.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.
 java.lang.String getStatus()
          This method provides access to the PVCSESSION.STATUS
 java.lang.Integer getStatusInEJBType()
          This method provides access to the PVCSESSION.STATUS column of DB2 type INTEGER NOT NULL.
 java.lang.String getTerminalId()
          This method provides access to the PVCSESSION.TERMINAL column of DB2 type VARCHAR(254) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setGuestId(java.lang.Long aGuestId)
          This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT NULL.
 void setGuestId(java.lang.String aGuestId)
          This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT NULL.
 void setInitKey_PVCSessionId(java.lang.String aInitKey_PVCSessionId)
          Set the primary key for this object
 void setLastVisted(java.lang.String aLastVisted)
          This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.
 void setLastVisted(java.sql.Timestamp aLastVisted)
          This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.
 void setPVCSessionId(java.lang.Long aPVCSessionId)
          This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.
 void setPVCSessionId(java.lang.String aPVCSessionId)
          This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.
 void setRegisterId(java.lang.Long aRegisterId)
          This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT NULL.
 void setRegisterId(java.lang.String aRegisterId)
          This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT NULL.
 void setSessionType(java.lang.String aSessionType)
          This method provides access to the PVCSESSION.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.
 void setStatus(java.lang.Integer aStatus)
          This method provides access to the PVCSESSION.STATUS
 void setStatus(java.lang.String aStatus)
          This method provides access to the PVCSESSION.STATUS
 void setTerminalId(java.lang.String aTerminalId)
          This method provides access to the PVCSESSION.TERMINAL column of DB2 type VARCHAR(254) NOT 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

PVCSessionAccessBean

public PVCSessionAccessBean()

Default constructor. Maps to findByPrimaryKey.


PVCSessionAccessBean

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

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

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

PVCSessionAccessBean

public PVCSessionAccessBean(java.lang.String sessionType,
                            java.lang.String terminalId)
                     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 Session Type and Terminal Id

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

findBySessionTypeAndTerminalId

public PVCSessionAccessBean findBySessionTypeAndTerminalId(java.lang.String sessionType,
                                                           java.lang.String terminalId)
                                                    throws java.rmi.RemoteException,
                                                           javax.ejb.FinderException,
                                                           javax.naming.NamingException

Returns PVCSessionAccessBean based on the provided values of sessionType and terminalId

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

getGuestId

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

This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Reference number of a guest customer. When value of status is 1, this column is set to NULL.

Specified by:
getGuestId in interface PVCSessionAccessBeanData
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

getGuestIdInEJBType

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

This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Reference number of a guest customer. When value of status is 1, this column is set to NULL.

Returns:
java.lang.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

getLastVisted

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

This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

Last visited time. Will be updated on command execution while status is 1.

Specified by:
getLastVisted in interface PVCSessionAccessBeanData
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

getLastVistedInEJBType

public java.sql.Timestamp getLastVistedInEJBType()
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.CreateException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException

This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

Last visited time. Will be updated on command execution while status is 1.

Returns:
java.sql.Timestamp
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

getPVCSessionId

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

This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of this record.

Specified by:
getPVCSessionId in interface PVCSessionAccessBeanData
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

getPVCSessionIdInEJBType

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

This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of this record.

Returns:
java.lang.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

getRegisterId

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

This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Reference number of a customer who is logging in. Or reference number of a customer who was previously logged in. This column is NULL if the PVC customer has not registered by way of a registration command.

Specified by:
getRegisterId in interface PVCSessionAccessBeanData
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

getRegisterIdInEJBType

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

This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Reference number of a customer who is logging in. Or reference number of a customer who was previously logged in. This column is NULL if the PVC customer has not registered by way of a registration command.

Returns:
java.lang.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

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 PVCSESSION.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.

The following is a description of this column:

This column identifies the type of PvC device. This could either be IMODE or WAP.

Specified by:
getSessionType in interface PVCSessionAccessBeanData
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

getStatus

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

This method provides access to the PVCSESSION.STATUS

Specified by:
getStatus in interface PVCSessionAccessBeanData
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

getStatusInEJBType

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

This method provides access to the PVCSESSION.STATUS column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Status of the shopper whose reference number is same as SHOPPER_ID. 0: Logout 1: Login

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

getTerminalId

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

This method provides access to the PVCSESSION.TERMINAL column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

The terminal identifier related to this session. CONSTRAINT unique_session_devic UNIQUE(SESSION_TYPE, TERMINAL).

Specified by:
getTerminalId in interface PVCSessionAccessBeanData
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

setGuestId

public void setGuestId(java.lang.Long aGuestId)

This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Reference number of a guest customer. When value of status is 1, this column is set to NULL.

Parameters:
aGuestId - java.lang.Long
Returns:
void

setGuestId

public void setGuestId(java.lang.String aGuestId)

This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Reference number of a guest customer. When value of status is 1, this column is set to NULL.

Specified by:
setGuestId in interface PVCSessionAccessBeanData
Parameters:
aGuestId - java.lang.String
Returns:
void

setInitKey_PVCSessionId

public void setInitKey_PVCSessionId(java.lang.String aInitKey_PVCSessionId)

Set the primary key for this object

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

setLastVisted

public void setLastVisted(java.lang.String aLastVisted)

This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

Last visited time. Will be updated on command execution while status is 1.

Specified by:
setLastVisted in interface PVCSessionAccessBeanData
Parameters:
aLastVisted - java.lang.String
Returns:
void

setLastVisted

public void setLastVisted(java.sql.Timestamp aLastVisted)

This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

Last visited time. Will be updated on command execution while status is 1.

Parameters:
aLastVisted - java.sql.Timestamp
Returns:
void

setPVCSessionId

public void setPVCSessionId(java.lang.Long aPVCSessionId)

This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of this record.

Parameters:
aPVCSessionId - java.lang.Long
Returns:
void

setPVCSessionId

public void setPVCSessionId(java.lang.String aPVCSessionId)

This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of this record.

Specified by:
setPVCSessionId in interface PVCSessionAccessBeanData
Parameters:
aPVCSessionId - java.lang.String
Returns:
void

setRegisterId

public void setRegisterId(java.lang.Long aRegisterId)

This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Reference number of a customer who is logging in. Or reference number of a customer who was previously logged in. This column is NULL if the PVC customer has not registered by way of a registration command.

Parameters:
aRegisterId - java.lang.Long
Returns:
void

setRegisterId

public void setRegisterId(java.lang.String aRegisterId)

This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Reference number of a customer who is logging in. Or reference number of a customer who was previously logged in. This column is NULL if the PVC customer has not registered by way of a registration command.

Specified by:
setRegisterId in interface PVCSessionAccessBeanData
Parameters:
aRegisterId - java.lang.String
Returns:
void

setSessionType

public void setSessionType(java.lang.String aSessionType)

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

The following is a description of this column:

This column identifies the type of PvC device. This could either be IMODE or WAP.

Specified by:
setSessionType in interface PVCSessionAccessBeanData
Parameters:
aSessionType - java.lang.String
Returns:
void

setStatus

public void setStatus(java.lang.Integer aStatus)

This method provides access to the PVCSESSION.STATUS

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

setStatus

public void setStatus(java.lang.String aStatus)

This method provides access to the PVCSESSION.STATUS

Specified by:
setStatus in interface PVCSessionAccessBeanData
Parameters:
aStatus - java.lang.String
Returns:
void

setTerminalId

public void setTerminalId(java.lang.String aTerminalId)

This method provides access to the PVCSESSION.TERMINAL column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

The terminal identifier related to this session. CONSTRAINT unique_session_devic UNIQUE(SESSION_TYPE, TERMINAL).

Specified by:
setTerminalId in interface PVCSessionAccessBeanData
Parameters:
aTerminalId - java.lang.String
Returns:
void