com.ibm.commerce.fulfillment.objects
Class ShippingModeAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.fulfillment.objects.ShippingModeAccessBean
All Implemented Interfaces:
ShippingModeAccessBeanData
Direct Known Subclasses:
ShippingDataBean

public class ShippingModeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ShippingModeAccessBeanData

Each row of this table represents a ShippingMode for a StoreEntity. A Store can use its own ShippingModes, and the ShippingModes of its StoreGroup. This access bean corresponds to the database table 'SHIPMODE'.

See Also:
Serialized Form

Constructor Summary
ShippingModeAccessBean()
Zero argument constructor used to initialize the access bean.
ShippingModeAccessBean(javax.ejb.EJBObject o)
constructor
ShippingModeAccessBean(java.lang.String aCarrier, java.lang.String aCode, java.lang.Integer aStoreEntityId)
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findAll() Retrieves all ShippingModeAccessBeans. The SQL query used to fetch all the required rows from the SHIPMODE table is:
SELECT * FROM SHIPMODE T1 WHERE 1 = 1
ShippingModeAccessBean findByOrderItemId(java.lang.Long orderItemId) Retrieves the ShippingModeAccessBean referenced by the specified OrderItem. The SQL query used to fetch all the required rows from the SHIPMODE table is:
SELECT * FROM SHIPMODE T1 WHERE T1.SHIPMODE_ID = (SELECT ORDERITEMS.SHIPMODE_ID FROM ORDERITEMS WHERE ORDERITEMS.ORDERITEMS_ID = ?)
java.util.Enumeration findByStoreEntity(java.lang.Integer storeEntityId) Retrieves the ShippingModeAccessBeans of the specified StoreEntity. The SQL query used to fetch all the required rows from the SHIPMODE table is:
SELECT * FROM SHIPMODE T1 WHERE T1.STOREENT_ID = ?
ShippingModeAccessBean findByStoreEntityIdCodeAndCarrier(java.lang.Integer storeEntityId, java.lang.String code, java.lang.String carrier) Retrieves the ShippingModeAccessBean that match the specified StoreEntity, code and carrier. The SQL query used to fetch all the required rows from the SHIPMODE table is: SELECT * FROM SHIPMODE T1 WHERE T1.STOREENT_ID = ? AND T1.CODE = ? AND T1.CARRIER = ?
java.lang.String getCarrier()
This method provides access to the SHIPMODE.CARRIER column of DB2 type CHAR(30).
java.lang.String getCode()
This method provides access to the SHIPMODE.CODE column of DB2 type CHAR(30).
ShippingModeDescriptionAccessBean getDescription(java.lang.Integer arg1, java.lang.Integer arg2)
Return a ShippingModeDescriptionAccessBean object associated with languageId.
java.lang.String getField1()
This method provides access to the SHIPMODE.FIELD1 column of DB2 type VARCHAR(254).
java.lang.String getField2()
This method provides access to the SHIPMODE.FIELD2 column of DB2 type INTEGER.
java.lang.Integer getField2InEJBType()
This method provides access to the SHIPMODE.FIELD2 column of DB2 type INTEGER.
java.lang.String getShippingModeId()
This method provides access to the SHIPMODE.SHIPMODE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getShippingModeIdInEJBType()
This method provides access to the SHIPMODE.SHIPMODE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getStoreEntityId()
This method provides access to the SHIPMODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreEntityIdInEJBType()
This method provides access to the SHIPMODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getTrackIcon()
This method provides access to the SHIPMODE.TRACKINGICON column of DB2 type VARCHAR(64).
java.lang.String getTrackInquiryType()
This method provides access to the SHIPMODE.TRACKINGTYPE column of DB2 type CHAR(8).
java.lang.String getTrackName()
This method provides access to the SHIPMODE.TRACKINGNAME column of DB2 type VARCHAR(64).
java.lang.String getTrackSocksHost()
This method provides access to the SHIPMODE.TRACKINGHOST column of DB2 type VARCHAR(64).
java.lang.String getTrackSocksPort()
This method provides access to the SHIPMODE.TRACKINGPORT column of DB2 type INTEGER.
java.lang.Integer getTrackSocksPortInEJBType()
This method provides access to the SHIPMODE.TRACKINGPORT column of DB2 type INTEGER.
java.lang.String getTrackURL()
This method provides access to the SHIPMODE.TRACKINGURL column of DB2 type VARCHAR(254).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCarrier(java.lang.String newValue)
This method accesses a non-CMP field
void setCode(java.lang.String newValue)
This method accesses a non-CMP field
void setField1(java.lang.String newValue)
This method accesses a non-CMP field
void setField2(java.lang.Integer newValue)
This method accesses a non-CMP field
void setField2(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_shippingModeId(java.lang.String newValue)
Set the primary key for this object
void setStoreEntityId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStoreEntityId(java.lang.String newValue)
This method accesses a non-CMP field
void setTrackIcon(java.lang.String newValue)
This method accesses a non-CMP field
void setTrackInquiryType(java.lang.String newValue)
This method accesses a non-CMP field
void setTrackName(java.lang.String newValue)
This method accesses a non-CMP field
void setTrackSocksHost(java.lang.String newValue)
This method accesses a non-CMP field
void setTrackSocksPort(java.lang.Integer newValue)
This method accesses a non-CMP field
void setTrackSocksPort(java.lang.String newValue)
This method accesses a non-CMP field
void setTrackURL(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

ShippingModeAccessBean

public ShippingModeAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.fulfillment.objects.ShippingMode com.ibm.commerce.fulfillment.objimpl.ShippingModeHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.ShippingModeKey) 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_shippingModeId( java.lang.Integer )

ShippingModeAccessBean

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

ShippingModeAccessBean

public ShippingModeAccessBean(java.lang.String aCarrier,
                              java.lang.String aCode,
                              java.lang.Integer aStoreEntityId)
                       throws javax.naming.NamingException,
                              javax.ejb.CreateException,
                              java.rmi.RemoteException,
                              javax.ejb.FinderException
Method Detail

findByOrderItemId

public ShippingModeAccessBean findByOrderItemId(java.lang.Long orderItemId)
                                         throws java.rmi.RemoteException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

Retrieves the ShippingModeAccessBean referenced by the specified OrderItem.
The SQL query used to fetch all the required rows from the SHIPMODE table is:
SELECT * FROM SHIPMODE T1 WHERE T1.SHIPMODE_ID = (SELECT ORDERITEMS.SHIPMODE_ID FROM ORDERITEMS WHERE ORDERITEMS.ORDERITEMS_ID = ?)

Parameters:
orderItemId - the OrderItem ID
Returns:
The ShippingModeAccessBean representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByStoreEntityIdCodeAndCarrier

public ShippingModeAccessBean findByStoreEntityIdCodeAndCarrier(java.lang.Integer storeEntityId,
                                                                java.lang.String code,
                                                                java.lang.String carrier)
                                                         throws java.rmi.RemoteException,
                                                                javax.ejb.FinderException,
                                                                javax.naming.NamingException

Retrieves the ShippingModeAccessBean that match the specified StoreEntity, code and carrier.
The SQL query used to fetch all the required rows from the SHIPMODE table is: SELECT * FROM SHIPMODE T1 WHERE T1.STOREENT_ID = ? AND T1.CODE = ? AND T1.CARRIER = ?

Parameters:
storeEntityId - the StoreEntity ID
code - the code
carrier - the carrier
Returns:
The ShippingModeAccessBean representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findAll

public java.util.Enumeration findAll()
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Retrieves all ShippingModeAccessBeans.
The SQL query used to fetch all the required rows from the
SHIPMODE table is:
SELECT * FROM SHIPMODE T1 WHERE 1 = 1

Returns:
An Enumeration of all the ShippingModeAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByStoreEntity

public java.util.Enumeration findByStoreEntity(java.lang.Integer storeEntityId)
                                        throws java.rmi.RemoteException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

Retrieves the ShippingModeAccessBeans of the specified StoreEntity.
The SQL query used to fetch all the required rows from the
SHIPMODE table is:
SELECT * FROM SHIPMODE T1 WHERE T1.STOREENT_ID = ?

Parameters:
storeEntityId - the StoreEntity ID
Returns:
An Enumeration of all the ShippingModeAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_shippingModeId

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

getShippingModeId

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

This method provides access to the SHIPMODE.SHIPMODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

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

getShippingModeIdInEJBType

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

This method provides access to the SHIPMODE.SHIPMODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

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

getCode

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

This method provides access to the SHIPMODE.CODE column of DB2 type CHAR(30).

The following is a description of this column:

A merchant assigned code, unique for the StoreEntity.

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

setCode

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

getTrackInquiryType

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

This method provides access to the SHIPMODE.TRACKINGTYPE column of DB2 type CHAR(8).

The following is a description of this column:

Reserved for IBM internal use.

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

setTrackInquiryType

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

getTrackName

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

This method provides access to the SHIPMODE.TRACKINGNAME column of DB2 type VARCHAR(64).

The following is a description of this column:

Reserved for IBM internal use.

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

setTrackName

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

getCarrier

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

This method provides access to the SHIPMODE.CARRIER column of DB2 type CHAR(30).

The following is a description of this column:

Shipping carrier identifier.

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

setCarrier

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

getField2

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

This method provides access to the SHIPMODE.FIELD2 column of DB2 type INTEGER.

The following is a description of this column:

Customizable.

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

getField2InEJBType

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

This method provides access to the SHIPMODE.FIELD2 column of DB2 type INTEGER.

The following is a description of this column:

Customizable.

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

setField2

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

setField2

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

getField1

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

This method provides access to the SHIPMODE.FIELD1 column of DB2 type VARCHAR(254).

The following is a description of this column:

Customizable.

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

setField1

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

getTrackURL

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

This method provides access to the SHIPMODE.TRACKINGURL column of DB2 type VARCHAR(254).

The following is a description of this column:

Reserved for IBM internal use.

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

setTrackURL

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

getTrackIcon

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

This method provides access to the SHIPMODE.TRACKINGICON column of DB2 type VARCHAR(64).

The following is a description of this column:

Reserved for IBM internal use.

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

setTrackIcon

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

getTrackSocksPort

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

This method provides access to the SHIPMODE.TRACKINGPORT column of DB2 type INTEGER.

The following is a description of this column:

Reserved for IBM internal use.

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

getTrackSocksPortInEJBType

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

This method provides access to the SHIPMODE.TRACKINGPORT column of DB2 type INTEGER.

The following is a description of this column:

Reserved for IBM internal use.

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

setTrackSocksPort

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

setTrackSocksPort

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

getStoreEntityId

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

This method provides access to the SHIPMODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity.

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

getStoreEntityIdInEJBType

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

This method provides access to the SHIPMODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity.

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

setStoreEntityId

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

setStoreEntityId

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

getTrackSocksHost

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

This method provides access to the SHIPMODE.TRACKINGHOST column of DB2 type VARCHAR(64).

The following is a description of this column:

Reserved for IBM internal use.

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

setTrackSocksHost

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

getDescription

public ShippingModeDescriptionAccessBean getDescription(java.lang.Integer arg1,
                                                        java.lang.Integer arg2)
                                                 throws javax.naming.NamingException,
                                                        javax.ejb.CreateException,
                                                        javax.ejb.FinderException,
                                                        java.rmi.RemoteException
Return a ShippingModeDescriptionAccessBean object associated with languageId. If there is no description for the specified language, the alternative languages for languageId and storeId will be used to get an appropriate description using the language dance mechanism.
Parameters:
arg1 - the Language ID
arg2 - the Store ID
Returns:
ShippingModeDescriptionAccessBean
Throws:
javax.ejb.CreateException.
javax.ejb.FinderException.
java.rmi.RemoteException.
javax.naming.NamingException.
javax.naming.NamingException
javax.ejb.CreateException
javax.ejb.FinderException
java.rmi.RemoteException

Feedback