examples.ejb.extensions.readMostly
Class StockBean
java.lang.Object
|
+--examples.ejb.extensions.readMostly.StockBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable
- Direct Known Subclasses:
- StockWriterBean
- public class StockBean
- extends java.lang.Object
- implements javax.ejb.EntityBean
StockBean is a read-only EntityBean. This EJBean is used along with the
StockWriterBean to illustrate how to provide "read-mostly" access to data.
- Author:
- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
price
public double price
symbol
public java.lang.String symbol
volume
public long volume
yearHigh
public double yearHigh
yearLow
public double yearLow
StockBean
public StockBean()
ejbActivate
public void ejbActivate()
- Specified by:
ejbActivate
in interface javax.ejb.EntityBean
ejbLoad
public void ejbLoad()
- Specified by:
ejbLoad
in interface javax.ejb.EntityBean
ejbPassivate
public void ejbPassivate()
- Specified by:
ejbPassivate
in interface javax.ejb.EntityBean
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemove
in interface javax.ejb.EntityBean
ejbStore
public void ejbStore()
- Specified by:
ejbStore
in interface javax.ejb.EntityBean
get52weekHigh
public double get52weekHigh()
get52weekLow
public double get52weekLow()
getPrice
public double getPrice()
getSymbol
public java.lang.String getSymbol()
getVolume
public long getVolume()
setEntityContext
public void setEntityContext(javax.ejb.EntityContext c)
- Specified by:
setEntityContext
in interface javax.ejb.EntityBean
unsetEntityContext
public void unsetEntityContext()
- Specified by:
unsetEntityContext
in interface javax.ejb.EntityBean
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.