WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

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.

Field Summary
 double price
           
 java.lang.String symbol
           
 long volume
           
 double yearHigh
           
 double yearLow
           
 
Constructor Summary
StockBean()
           
 
Method Summary
 void ejbActivate()
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 void ejbStore()
           
 double get52weekHigh()
           
 double get52weekLow()
           
 double getPrice()
           
 java.lang.String getSymbol()
           
 long getVolume()
           
 void setEntityContext(javax.ejb.EntityContext c)
           
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

price

public double price

symbol

public java.lang.String symbol

volume

public long volume

yearHigh

public double yearHigh

yearLow

public double yearLow
Constructor Detail

StockBean

public StockBean()
Method Detail

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

Documentation is available at
http://e-docs.bea.com/wls/docs60

Copyright © 2000 BEA Systems, Inc. All Rights Reserved.