com.submersion.jspshop.ejb
Class PropertyBean
java.lang.Object
|
+--com.submersion.jspshop.ejb.PropertyBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable
- public class PropertyBean
- extends java.lang.Object
- implements javax.ejb.EntityBean
Implementation of the Property entity bean, using Contaner Managed Persistance (CMP)
Properties are used to define an Object.
Properties belong to a class, as does an Object.
Properties can have multiple types.
- Version:
- $Revision$
Date Created: August 22, 2001
Last changed: $Date$
Changed by: $Author$
- Author:
- Jeff Davey (jeffdavey@submersion.com)
- See Also:
PropertyHome
,
Property
, Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
propertyID
public java.lang.Long propertyID
name
public java.lang.String name
className
public java.lang.String className
PropertyBean
public PropertyBean()
getPropertyID
public java.lang.Long getPropertyID()
- Returns the primary key of the property
getName
public java.lang.String getName()
- Returns the name of the property
setName
public void setName(java.lang.String name)
- sets the name of the property
- Parameters:
name
-
getClassName
public java.lang.String getClassName()
- Returns the class of which the property belongs to
setClassName
public void setClassName(java.lang.String className)
- changes the class which the property belongs to. Would only use this during creation.
- Parameters:
className
-
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