com.ibm.commerce.pvcdevices.objects
Class PVCSessionAccessBean

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

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

This table manages the session of various pervasive computing devices. This access bean corresponds to the database table 'PVCSESSION'.

See Also:
Serialized Form

Constructor Summary
PVCSessionAccessBean()
Zero argument constructor used to initialize the access bean.
PVCSessionAccessBean(javax.ejb.EJBObject o)
constructor
PVCSessionAccessBean(java.lang.String aSessionType, java.lang.String aTerminalId)
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()
PVCSessionAccessBean findBySessionTypeAndTerminalId(java.lang.String aSessionId, java.lang.String aTerminalId)
Returns PVCSession based on the provided values of aSessionId and aTerminalId
java.lang.String getGuestId()
This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT.
java.lang.Long getGuestIdInEJBType()
This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT.
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.
java.lang.Long getRegisterIdInEJBType()
This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT.
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 column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getStatusInEJBType()
This method provides access to the PVCSESSION.STATUS column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getTerminalId()
This method provides access to the PVCSESSION.TERMINAL column of DB2 type VARCHAR(254) NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setGuestId(java.lang.Long newValue)
This method accesses a non-CMP field
void setGuestId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_PVCSessionId(java.lang.String newValue)
Set the primary key for this object
void setLastVisted(java.lang.String newValue)
This method accesses a non-CMP field
void setLastVisted(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setPVCSessionId(java.lang.Long newValue)
This method accesses a non-CMP field
void setPVCSessionId(java.lang.String newValue)
This method accesses a non-CMP field
void setRegisterId(java.lang.Long newValue)
This method accesses a non-CMP field
void setRegisterId(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 setStatus(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStatus(java.lang.String newValue)
This method accesses a non-CMP field
void setTerminalId(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

PVCSessionAccessBean

public PVCSessionAccessBean()
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.PVCSession com.ibm.commerce.pvcdevices.objimpl.PVCSessionHomeBase.findByPrimaryKey(com.ibm.commerce.pvcdevices.objects.PVCSessionKey) 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_PVCSessionId( java.lang.Long )

PVCSessionAccessBean

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

PVCSessionAccessBean

public PVCSessionAccessBean(java.lang.String aSessionType,
                            java.lang.String aTerminalId)
                     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:
aSessionType - java.lang.String
aTerminalId - 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

findBySessionTypeAndTerminalId

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

Returns PVCSession based on the provided values of aSessionId and aTerminalId

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

setInitKey_PVCSessionId

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setTerminalId

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

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLastVisted

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

setLastVisted

public void setLastVisted(java.sql.Timestamp newValue)
This method accesses a non-CMP field

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setPVCSessionId

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

setPVCSessionId

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

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.

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 pervasive computing customer has not registered by way of a registration command.

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

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.

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 pervasive computing customer has not registered by way of a registration command.

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

setRegisterId

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

setRegisterId

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

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 pervasive computing device: either iMode or WAP.

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

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 column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Status of the customer whose reference number is same as SHOPPER_ID. Valid values are as follows: &l

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

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 DEFAULT 0.

The following is a description of this column:

Status of the customer whose reference number is same as SHOPPER_ID. Valid values are as follows: &l

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

setStatus

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

setStatus

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

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.

The following is a description of this column:

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

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

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.

The following is a description of this column:

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

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

setGuestId

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

setGuestId

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

Feedback