com.submersion.jspshop.ejb
Class TypeBean

java.lang.Object
  |
  +--com.submersion.jspshop.ejb.TypeBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

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

Implementation of the Type Entity Bean using Container Managed Persistance (CMP)
 
 Each Property has one or more types.
 Each Type has one or more values.
 Every Object has a Class, which has properties, which have types.

Version:
$Revision$ Date Created: August 22, 2001 Last changed: $Date$ Changed by: $Author$
Author:
Jeff Davey (jeffdavey@submersion.com)
See Also:
TypeHome, Type, Serialized Form

Field Summary
 java.lang.String name
           
 java.lang.Long typeID
           
 
Constructor Summary
TypeBean()
           
 
Method Summary
 void ejbActivate()
           
 java.lang.Long ejbCreate()
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate()
           
 void ejbRemove()
           
 void ejbStore()
           
 java.lang.String getName()
          returns the name of the bean
 java.lang.Long getTypeID()
          Returns the primary key of the entity bean
 void setEntityContext(javax.ejb.EntityContext ctx)
           
 void setName(java.lang.String name)
          changes the name for the entity bean
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeID

public java.lang.Long typeID

name

public java.lang.String name
Constructor Detail

TypeBean

public TypeBean()
Method Detail

getTypeID

public java.lang.Long getTypeID()
Returns the primary key of the entity bean

getName

public java.lang.String getName()
returns the name of the bean

setName

public void setName(java.lang.String name)
changes the name for the entity bean
Parameters:
name -  

ejbCreate

public java.lang.Long ejbCreate()
                         throws javax.naming.NamingException,
                                java.rmi.RemoteException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException

ejbPostCreate

public void ejbPostCreate()

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
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

ejbRemove

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