com.ibm.commerce.catalog.objects
Class CatalogGroupTradingPositionRelAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.catalog.objects.CatalogGroupTradingPositionRelAccessBean
All Implemented Interfaces:
CatalogGroupTradingPositionRelAccessBeanData

public class CatalogGroupTradingPositionRelAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CatalogGroupTradingPositionRelAccessBeanData

This table relates master catalogs with trading position containers. Each catalog entry belonging to the indicated master catalog must have a standard price offer supplied for the specified trading position container. This access bean corresponds to the database table 'CATGRPTPC'.

See Also:
Serialized Form

Constructor Summary
CatalogGroupTradingPositionRelAccessBean()
Zero argument constructor used to initialize the access bean.
CatalogGroupTradingPositionRelAccessBean(javax.ejb.EJBObject o)
constructor
CatalogGroupTradingPositionRelAccessBean(java.lang.Long argCatalogId, java.lang.Long argCatGroupId, java.lang.Long tpcId)
Contructor for the object that maps to a corresponding ejbCreate method in the home interface of the EJB.
CatalogGroupTradingPositionRelAccessBean(java.lang.Long arg0, java.lang.Long arg1, java.lang.Long arg2, java.lang.Integer arg3)
CatalogGroupTradingPositionRelAccessBean constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByCatalogIdAndCatGroupId(java.lang.Long argCatalogId, java.lang.Long argCatGroupId)
This method returns an enumeration of CatalogGroupTradingPositionRel Access Beans with the specified Catalog reference number and Catalog Group reference number.
java.util.Enumeration findByCatGroupId(java.lang.Long catGroupId)
This method returns an enumeration of CatalogGroupTradingPositionRel Access Beans with the specified Catalog Group reference number.
java.util.Enumeration findByTradingPositionId(java.lang.Long argTradingPositionId)
This method returns an enumeration of CatalogGroupTradingPositionRel Access Beans with the specified Trading Position Container reference number.
CatalogGroupTradingPositionRelAccessBean findZeroLevelTPCByCatalogId(java.lang.Long argCatalogId)
This method returns the CatalogGroupTradingPositionRel Access Beans with the specified Catalog reference number and zero level Catalog Group.
java.util.Enumeration findZeroLevelTPCByCatalogIdAndStoreId(java.lang.Long argCatalogId, java.lang.Integer argStoreId)
Finds the records with a zero trading position container in the given catalog and store.
java.lang.String getCatalogGroupId()
This method provides access to the CATGRPTPC.CATGROUP_ID column of DB2 type BIGINT NOT NULL DEFAULT 0.
java.lang.Long getCatalogGroupIdInEJBType()
This method provides access to the CATGRPTPC.CATGROUP_ID column of DB2 type BIGINT NOT NULL DEFAULT 0.
java.lang.String getCatalogId()
This method provides access to the CATGRPTPC.CATALOG_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogIdInEJBType()
This method provides access to the CATGRPTPC.CATALOG_ID column of DB2 type BIGINT NOT NULL.
java.lang.Integer getStoreId()
This method accesses a non-CMP field
java.lang.String getTradingPositionId()
This method provides access to the CATGRPTPC.TRADEPOSCN_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getTradingPositionIdInEJBType()
This method provides access to the CATGRPTPC.TRADEPOSCN_ID column of DB2 type BIGINT NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCatalogGroupId(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatalogGroupId(java.lang.String newValue)
This method accesses a non-CMP field
void setCatalogId(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatalogId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_catalogGroupId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_catalogId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_storeId(java.lang.String newValue)
void setInitKey_tradingPositionId(java.lang.String newValue)
Set the primary key for this object
void setStoreId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setTradingPositionId(java.lang.Long newValue)
This method accesses a non-CMP field
void setTradingPositionId(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

CatalogGroupTradingPositionRelAccessBean

public CatalogGroupTradingPositionRelAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.catalog.objects.CatalogGroupTradingPositionRel com.ibm.commerce.catalog.objimpl.CatalogGroupTradingPositionRelHomeBase.findByPrimaryKey(com.ibm.commerce.catalog.objects.CatalogGroupTradingPositionRelKey) 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_catalogGroupId( java.lang.Long ) setInitKey_catalogId( java.lang.Long ) setInitKey_tradingPositionId( java.lang.Long )

CatalogGroupTradingPositionRelAccessBean

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

CatalogGroupTradingPositionRelAccessBean

public CatalogGroupTradingPositionRelAccessBean(java.lang.Long argCatalogId,
                                                java.lang.Long argCatGroupId,
                                                java.lang.Long tpcId)
                                         throws javax.naming.NamingException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                java.rmi.RemoteException

Contructor for the object that maps to a corresponding ejbCreate method in the home interface of the EJB. Creates an access to the CatalogGroupTradingPositionRel according to the Catalog ID, Catalog Group ID, and the Trading Position Container ID.

Parameters:
argCatalogId - The Catalog reference number. java.lang.Long
argCatGroupId - The Catalog Group reference number. java.lang.Long
tpcId - The Trading Position Container reference number. java.lang.Long
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

CatalogGroupTradingPositionRelAccessBean

public CatalogGroupTradingPositionRelAccessBean(java.lang.Long arg0,
                                                java.lang.Long arg1,
                                                java.lang.Long arg2,
                                                java.lang.Integer arg3)
                                         throws javax.naming.NamingException,
                                                javax.ejb.FinderException,
                                                javax.ejb.CreateException,
                                                java.rmi.RemoteException
CatalogGroupTradingPositionRelAccessBean constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Long
arg2 - java.lang.Long
arg3 - java.lang.Integer
Throws:
javax.naming.NamingException
javax.ejb.FinderException
javax.ejb.CreateException
java.rmi.RemoteException
Method Detail

findZeroLevelTPCByCatalogId

public CatalogGroupTradingPositionRelAccessBean findZeroLevelTPCByCatalogId(java.lang.Long argCatalogId)
                                                                     throws java.rmi.RemoteException,
                                                                            javax.ejb.FinderException,
                                                                            javax.naming.NamingException

This method returns the CatalogGroupTradingPositionRel Access Beans with the specified Catalog reference number and zero level Catalog Group.

SQL:
SELECT * FROM CATGRPTPC WHERE CATGRPTPC.CATALOG_ID = argCatalogId CATGRPTPC.CATGROUP_ID = 0

Parameters:
argCatalogId - The Catalog reference number. java.lang.Long
Returns:
com.ibm.commerce.catalog.objects.CatalogGroupTradingPositionRelAccessBean
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

findByCatGroupId

public java.util.Enumeration findByCatGroupId(java.lang.Long catGroupId)
                                       throws java.rmi.RemoteException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException

This method returns an enumeration of CatalogGroupTradingPositionRel Access Beans with the specified Catalog Group reference number.

SQL:
SELECT * FROM CATGRPTPC WHERE CATGRPTPC.CATGROUP_ID = catGroupId

Parameters:
catGroupId - The Catalog Group reference number. java.lang.Long
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByCatalogIdAndCatGroupId

public java.util.Enumeration findByCatalogIdAndCatGroupId(java.lang.Long argCatalogId,
                                                          java.lang.Long argCatGroupId)
                                                   throws java.rmi.RemoteException,
                                                          javax.ejb.FinderException,
                                                          javax.naming.NamingException

This method returns an enumeration of CatalogGroupTradingPositionRel Access Beans with the specified Catalog reference number and Catalog Group reference number.

SQL:
SELECT * FROM CATGRPTPC WHERE CATGRPTPC.CATALOG_ID = argCatalogId AND CATGRPTPC.CATGROUP_ID = argCatGroupId

Parameters:
argCatalogId - The Catalog reference number. java.lang.Long
argCatGroupId - The Catalog Group reference number. java.lang.Long
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByTradingPositionId

public java.util.Enumeration findByTradingPositionId(java.lang.Long argTradingPositionId)
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException

This method returns an enumeration of CatalogGroupTradingPositionRel Access Beans with the specified Trading Position Container reference number.

SQL:
SELECT * FROM CATGRPTPC WHERE CATGRPTPC.TRADEPOSCN_ID = argTradingPositionId

Parameters:
argTradingPositionId - The Trading Position Container reference number. java.lang.Long
Returns:
java.util.Enumeration
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

setInitKey_catalogGroupId

public void setInitKey_catalogGroupId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_catalogId

public void setInitKey_catalogId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_tradingPositionId

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

getCatalogGroupId

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

This method provides access to the CATGRPTPC.CATGROUP_ID column of DB2 type BIGINT NOT NULL DEFAULT 0.

The following is a description of this column:

Reserved for IBM internal use.

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

getCatalogGroupIdInEJBType

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

This method provides access to the CATGRPTPC.CATGROUP_ID column of DB2 type BIGINT NOT NULL DEFAULT 0.

The following is a description of this column:

Reserved for IBM internal use.

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

setCatalogGroupId

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

setCatalogGroupId

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

getTradingPositionId

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

This method provides access to the CATGRPTPC.TRADEPOSCN_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the trading position container.

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

getTradingPositionIdInEJBType

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

This method provides access to the CATGRPTPC.TRADEPOSCN_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the trading position container.

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

setTradingPositionId

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

setTradingPositionId

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

getCatalogId

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

This method provides access to the CATGRPTPC.CATALOG_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the catalog.

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

getCatalogIdInEJBType

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

This method provides access to the CATGRPTPC.CATALOG_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the catalog.

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

setCatalogId

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

setCatalogId

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

getStoreId

public java.lang.Integer getStoreId()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getStoreId in interface CatalogGroupTradingPositionRelAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setStoreId

public void setStoreId(java.lang.Integer newValue)
This method accesses a non-CMP field
Specified by:
setStoreId in interface CatalogGroupTradingPositionRelAccessBeanData

setInitKey_storeId

public void setInitKey_storeId(java.lang.String newValue)

findZeroLevelTPCByCatalogIdAndStoreId

public java.util.Enumeration findZeroLevelTPCByCatalogIdAndStoreId(java.lang.Long argCatalogId,
                                                                   java.lang.Integer argStoreId)
                                                            throws javax.naming.NamingException,
                                                                   javax.ejb.FinderException,
                                                                   java.rmi.RemoteException
Finds the records with a zero trading position container in the given catalog and store.
Parameters:
argCatalogId - The catalog id.
argStoreId - The store id.
Returns:
The records which meet the searching criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException.
javax.naming.NamingException
javax.ejb.FinderException

Feedback