com.ibm.commerce.order.objects
Class TradingPositionContainerXMLDefinitionAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.order.objects.TradingPositionContainerXMLDefinitionAccessBean
All Implemented Interfaces:
TradingPositionContainerXMLDefinitionAccessBeanData
Direct Known Subclasses:
TradingPositionContainerXMLDefinitionDataBeanBase

public class TradingPositionContainerXMLDefinitionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements TradingPositionContainerXMLDefinitionAccessBeanData

This table is used to store the XML document for a given trading position container. This access bean corresponds to the database table 'TRDPSCNXML'.

See Also:
Serialized Form

Constructor Summary
TradingPositionContainerXMLDefinitionAccessBean()
Zero argument constructor used to initialize the access bean.
TradingPositionContainerXMLDefinitionAccessBean(javax.ejb.EJBObject o)
constructor
TradingPositionContainerXMLDefinitionAccessBean(java.lang.Long aTradingPositionContainerId, java.lang.Integer aSequence, java.lang.String aXMLDefinition)
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()
java.util.Enumeration findByTradingPositionContainer(java.lang.Long argTradingPositionContainerId)
Retrieves all the TradingPositionContainer XML Definitions that correspond to the specified TradingPositionContainer ID in order by sequence.
java.lang.String getField1()
This method accesses a non-CMP field
java.lang.Integer getField1InEJBType()
This method accesses a non-CMP field
java.lang.String getField2()
This method accesses a non-CMP field
java.lang.Integer getField2InEJBType()
This method accesses a non-CMP field
java.lang.String getSequence()
This method accesses a non-CMP field
java.lang.Integer getSequenceInEJBType()
This method accesses a non-CMP field
java.lang.String getTradingPositionContainerId()
This method accesses a non-CMP field
java.lang.Long getTradingPositionContainerIdInEJBType()
This method accesses a non-CMP field
java.lang.String getXMLDefinition()
This method accesses a non-CMP field
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setField1(java.lang.Integer 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_iSequence(java.lang.String newValue)
Set the primary key for this object
void setInitKey_iTradingPositionContainerId(java.lang.String newValue)
Set the primary key for this object
void setSequence(java.lang.Integer newValue)
This method accesses a non-CMP field
void setSequence(java.lang.String newValue)
This method accesses a non-CMP field
void setTradingPositionContainerId(java.lang.Long newValue)
This method accesses a non-CMP field
void setTradingPositionContainerId(java.lang.String newValue)
This method accesses a non-CMP field
void setXMLDefinition(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

TradingPositionContainerXMLDefinitionAccessBean

public TradingPositionContainerXMLDefinitionAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.order.objects.TradingPositionContainerXMLDefinition com.ibm.commerce.order.objimpl.TradingPositionContainerXMLDefinitionHomeBase.findByPrimaryKey(com.ibm.commerce.order.objects.TradingPositionContainerXMLDefinitionKey) 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_iTradingPositionContainerId( java.lang.Long ) setInitKey_iSequence( java.lang.Integer )

TradingPositionContainerXMLDefinitionAccessBean

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

TradingPositionContainerXMLDefinitionAccessBean

public TradingPositionContainerXMLDefinitionAccessBean(java.lang.Long aTradingPositionContainerId,
                                                       java.lang.Integer aSequence,
                                                       java.lang.String aXMLDefinition)
                                                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

Parameters:
aTradingPositionContainerId - The internal ID of the TradingPositionContainer.
aSequence - The sequence number of the TradingPositionContainer.
aXMLDefinition - The XML definition of the TradingPositionContainer.
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

findByTradingPositionContainer

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

Retrieves all the TradingPositionContainer XML Definitions that correspond to the specified TradingPositionContainer ID in order by sequence.

The SQL query used to fetch all the required rows from the TRDPSCNXML table is:

SELECT * FROM TRDPSCNXML T1 WHERE TRADEPOSCN_ID = ? ORDER BY SEQUENCE

Parameters:
argTradingPositionContainerId - The internal ID of the TradingPositionContainer
Returns:
An Enumeration of all the TradingPositionContainerXMLDefinitionAccessBean objects 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_iTradingPositionContainerId

public void setInitKey_iTradingPositionContainerId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_iSequence

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

getTradingPositionContainerId

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

getTradingPositionContainerIdInEJBType

public java.lang.Long getTradingPositionContainerIdInEJBType()
                                                      throws java.rmi.RemoteException,
                                                             javax.ejb.CreateException,
                                                             javax.ejb.FinderException,
                                                             javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setTradingPositionContainerId

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

setTradingPositionContainerId

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

getXMLDefinition

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

setXMLDefinition

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

getField2

public java.lang.String getField2()
                           throws java.rmi.RemoteException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getField2 in interface TradingPositionContainerXMLDefinitionAccessBeanData
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 accesses a non-CMP field
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 TradingPositionContainerXMLDefinitionAccessBeanData

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 accesses a non-CMP field
Specified by:
getField1 in interface TradingPositionContainerXMLDefinitionAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getField1InEJBType

public java.lang.Integer getField1InEJBType()
                                     throws java.rmi.RemoteException,
                                            javax.ejb.CreateException,
                                            javax.ejb.FinderException,
                                            javax.naming.NamingException
This method accesses a non-CMP field
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 TradingPositionContainerXMLDefinitionAccessBeanData

setField1

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

getSequence

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

getSequenceInEJBType

public java.lang.Integer getSequenceInEJBType()
                                       throws java.rmi.RemoteException,
                                              javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setSequence

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

setSequence

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

Feedback