BEA Systems, Inc.

examples.buybeans.item
Class CoffeeBeanImpl

java.lang.Object
  |
  +--theory.smart.foundation.EntityImpl
        |
        +--theory.smart.foundation.ConfigurableEntityImpl
              |
              +--theory.smart.ebusiness.item.ItemImpl
                    |
                    +--examples.buybeans.item.BasicBeanImpl
                          |
                          +--examples.buybeans.item.CoffeeBeanImpl

public class CoffeeBeanImpl
extends BasicBeanImpl

This is an item that has the special characteristics of a coffee bean.

 Primary Key = examples.buybeans.item.CoffeeBeanPk
 

See Also:
CoffeeBean, CoffeeBeanHome, CoffeeBeanValue, Serialized Form

Field Summary
 java.lang.String country
           country [CoffeeBean] <*>------> [String]
 boolean gourmet
           gourmet [CoffeeBean] <*>------> [boolean]
 
Fields inherited from class examples.buybeans.item.BasicBeanImpl
customerRating, fullDescription
 
Fields inherited from class theory.smart.ebusiness.item.ItemImpl
description, identifier, price, qualities, supplier, version
 
Fields inherited from class theory.smart.foundation.EntityImpl
ctx, isDirty, isLoaded
 
Constructor Summary
CoffeeBeanImpl()
           
 
Method Summary
 void ejbActivate()
          ejbActivate method.
 CoffeeBeanPk ejbCreate(CoffeeBeanPk coffeeBeanPk)
           
 java.util.Enumeration ejbFindAll()
           
 CoffeeBeanPk ejbFindByPrimaryKey(CoffeeBeanPk pk)
           
 void ejbLoad()
          ejbLoad method.
 void ejbPassivate()
          ejbPassivate method.
 void ejbPostCreate(CoffeeBeanPk coffeeBeanPk)
           
 void ejbRemove()
          ejbRemove method.
 void ejbStore()
          ejbStore method.
 CoffeeBeanValue getCoffeeBeanByValue()
          Get all of CoffeeBean's attributes.
 java.lang.String getCountry()
          Get the value of country
 boolean getGourmet()
          Get the value of gourmet
 void setCoffeeBeanByValue(CoffeeBeanValue value)
          Set all of CoffeeBean's attributes to the passed in value.
 void setCountry(java.lang.String country)
          Set the value of country
 void setEntityContext(javax.ejb.EntityContext ctx)
          setEntityContext method.
 void setGourmet(boolean gourmet)
          Set the value of gourmet
 void unsetEntityContext()
          unsetEntityContext method.
 
Methods inherited from class examples.buybeans.item.BasicBeanImpl
ejbCreate, ejbFindByPrimaryKey, ejbPostCreate, getBasicBeanByValue, getCustomerRating, getFullDescription, setBasicBeanByValue, setCustomerRating, setFullDescription
 
Methods inherited from class theory.smart.ebusiness.item.ItemImpl
addFirstQuality, addLastQuality, addQualities, addQualities, addQuality, addQuality, calculatePrice, calculatePrice, containsQuality, ejbCreate, ejbFindByPrimaryKey, ejbPostCreate, getDefaultItemPriceCalculationPolicy, getDescription, getFirstQuality, getIdentifier, getItemByValue, getLastQuality, getNumberOfQualities, getPrice, getQualities, getQualities, getQuality, getSupplier, getVersion, indexOfQuality, isQualitiesEmtpy, lastIndexOfQuality, removeAllQualities, removeFirstQuality, removeLastQuality, removeQuality, removeQuality, setDefaultItemPriceCalculationPolicy, setDescription, setItemByValue, setPrice, setQuality
 
Methods inherited from class theory.smart.foundation.ConfigurableEntityImpl
addBusinessPolicy, addProperty, ejbCreate, ejbPostCreate, getBusinessPolicy, getProperty, removeBusinessPolicy, removeProperty, setSuccessorAtClassLevel, setSuccessorAtInstanceLevel
 
Methods inherited from class theory.smart.foundation.EntityImpl
getEntityContext, isModified
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gourmet

public boolean gourmet
                  gourmet
 [CoffeeBean] <*>------> [boolean]

 

country

public java.lang.String country
                  country
 [CoffeeBean] <*>------> [String]

 
Constructor Detail

CoffeeBeanImpl

public CoffeeBeanImpl()
               throws javax.ejb.CreateException
Method Detail

getCoffeeBeanByValue

public CoffeeBeanValue getCoffeeBeanByValue()
                                     throws java.rmi.RemoteException
Get all of CoffeeBean's attributes.
Returns:
CoffeeBeanValue the CoffeeBean value object

setCoffeeBeanByValue

public void setCoffeeBeanByValue(CoffeeBeanValue value)
                          throws java.rmi.RemoteException
Set all of CoffeeBean's attributes to the passed in value. Note: Primary key attributes are not set.
Parameters:
CoffeeBeanValue - the CoffeeBean value object

ejbCreate

public CoffeeBeanPk ejbCreate(CoffeeBeanPk coffeeBeanPk)
                       throws javax.ejb.CreateException,
                              java.rmi.RemoteException

ejbPostCreate

public void ejbPostCreate(CoffeeBeanPk coffeeBeanPk)
                   throws javax.ejb.CreateException,
                          java.rmi.RemoteException

ejbLoad

public void ejbLoad()
             throws java.rmi.RemoteException
Description copied from class: EntityImpl
ejbLoad method.
Overrides:
ejbLoad in class BasicBeanImpl

ejbStore

public void ejbStore()
              throws java.rmi.RemoteException
Description copied from class: EntityImpl
ejbStore method.
Overrides:
ejbStore in class BasicBeanImpl

ejbRemove

public void ejbRemove()
               throws java.rmi.RemoteException,
                      javax.ejb.RemoveException
Description copied from class: EntityImpl
ejbRemove method.
Overrides:
ejbRemove in class BasicBeanImpl

ejbActivate

public void ejbActivate()
                 throws java.rmi.RemoteException
Description copied from class: EntityImpl
ejbActivate method.
Overrides:
ejbActivate in class BasicBeanImpl

ejbPassivate

public void ejbPassivate()
                  throws java.rmi.RemoteException
Description copied from class: EntityImpl
ejbPassivate method.
Overrides:
ejbPassivate in class BasicBeanImpl

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
                      throws java.rmi.RemoteException
Description copied from class: EntityImpl
setEntityContext method.
Overrides:
setEntityContext in class BasicBeanImpl

unsetEntityContext

public void unsetEntityContext()
                        throws java.rmi.RemoteException
Description copied from class: EntityImpl
unsetEntityContext method.
Overrides:
unsetEntityContext in class BasicBeanImpl

ejbFindByPrimaryKey

public CoffeeBeanPk ejbFindByPrimaryKey(CoffeeBeanPk pk)
                                 throws javax.ejb.FinderException,
                                        java.rmi.RemoteException

ejbFindAll

public java.util.Enumeration ejbFindAll()
                                 throws javax.ejb.FinderException,
                                        java.rmi.RemoteException
Overrides:
ejbFindAll in class BasicBeanImpl

getGourmet

public boolean getGourmet()
                   throws java.rmi.RemoteException
Get the value of gourmet
Returns:
gourmet.

setGourmet

public void setGourmet(boolean gourmet)
                throws java.rmi.RemoteException
Set the value of gourmet
Parameters:
gourmet - gourmet to be added

getCountry

public java.lang.String getCountry()
                            throws java.rmi.RemoteException
Get the value of country
Returns:
country.

setCountry

public void setCountry(java.lang.String country)
                throws java.rmi.RemoteException
Set the value of country
Parameters:
country - country to be added

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved