com.parsec.ejbs.portfolio
Class PortfolioEJB

java.lang.Object
  |
  +--com.parsec.ejbs.portfolio.PortfolioEJB
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

public class PortfolioEJB
extends java.lang.Object
implements javax.ejb.EntityBean

See Also:
Serialized Form

Constructor Summary
PortfolioEJB()
           
 
Method Summary
 void ejbActivate()
           
 ItemKey ejbCreate(java.lang.String customerId, java.lang.String shareId, int holding, float avgBuyingPrice)
           
 java.util.Collection ejbFindByCustomerId(java.lang.String customerId)
           
 ItemKey ejbFindByPrimaryKey(ItemKey primaryKey)
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(java.lang.String customerId, java.lang.String shareId, int holding, float avgBuyingPrice)
           
 void ejbRemove()
           
 void ejbStore()
           
 float getAvgBuyingPrice()
           
 java.lang.String getCustomerId()
           
 int getHolding()
           
 java.lang.String getShareId()
           
 void setAvgBuyingPrice(float a)
           
 void setCustomerId(java.lang.String a)
           
 void setEntityContext(javax.ejb.EntityContext context)
           
 void setHolding(int a)
           
 void setShareId(java.lang.String a)
           
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortfolioEJB

public PortfolioEJB()
Method Detail

getCustomerId

public java.lang.String getCustomerId()

getShareId

public java.lang.String getShareId()

getHolding

public int getHolding()

getAvgBuyingPrice

public float getAvgBuyingPrice()

setCustomerId

public void setCustomerId(java.lang.String a)

setShareId

public void setShareId(java.lang.String a)

setHolding

public void setHolding(int a)

setAvgBuyingPrice

public void setAvgBuyingPrice(float a)

ejbCreate

public ItemKey ejbCreate(java.lang.String customerId,
                         java.lang.String shareId,
                         int holding,
                         float avgBuyingPrice)
                  throws javax.ejb.CreateException

ejbFindByPrimaryKey

public ItemKey ejbFindByPrimaryKey(ItemKey primaryKey)
                            throws javax.ejb.FinderException

ejbFindByCustomerId

public java.util.Collection ejbFindByCustomerId(java.lang.String customerId)
                                         throws javax.ejb.FinderException

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.EntityBean

setEntityContext

public void setEntityContext(javax.ejb.EntityContext context)
Specified by:
setEntityContext in interface javax.ejb.EntityBean

unsetEntityContext

public void unsetEntityContext()
Specified by:
unsetEntityContext in interface javax.ejb.EntityBean

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.EntityBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.EntityBean

ejbLoad

public void ejbLoad()
Specified by:
ejbLoad in interface javax.ejb.EntityBean

ejbStore

public void ejbStore()
Specified by:
ejbStore in interface javax.ejb.EntityBean

ejbPostCreate

public void ejbPostCreate(java.lang.String customerId,
                          java.lang.String shareId,
                          int holding,
                          float avgBuyingPrice)