com.submersion.jspshop.ejb
Class ClassBean
java.lang.Object
|
+--com.submersion.jspshop.ejb.ClassBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable
- public class ClassBean
- extends java.lang.Object
- implements javax.ejb.EntityBean
Implementation of the Class entity bean using CMP (Container managed persistance).
Classes can stand alone.
Classes can inherit properties and types from other classes
Classes define Objects.
Class Context is described like this:
|-Object (Has properties of A and B)
| |-Container (Inherits properties A and B, has Properties C)
| | |-Container A (Inherits properties A, B, and C, has Property E)
| |-Product (Inherits properties A and B, has Properties D)
|-ObjectB (Has properties of F)
The context each Class is this:
Object = -1 (No inheritance)
Container = .Object (Inherits Object properties)
ContainerA = .Container.Object (Inherits Container AND Object)
Product = .Object (Inherits Object properties)
ObjectB = -1 (No inheritance)
- See Also:
Class
,
ClassHome
, Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
className
public java.lang.String className
parentName
public java.lang.String parentName
context
public java.lang.String context
description
public java.lang.String description
ClassBean
public ClassBean()
getClassName
public java.lang.String getClassName()
- Returns the primary key ClassName
getParentName
public java.lang.String getParentName()
- Returns the primary key of the parent object
setParentName
public void setParentName(java.lang.String parentName)
- Changes the parent object for this class. Would only be used during creation
- Parameters:
parentName
-
getContext
public java.lang.String getContext()
- Returns a sort key which contains the inheritance line for this class
setContext
public void setContext(java.lang.String context)
- Changes the sort key containing inheritance information. Would only be used during a create.
- Parameters:
context
-
getDescription
public java.lang.String getDescription()
- Returns the description for this Class
setDescription
public void setDescription(java.lang.String description)
- Changes the description for this class.
- Parameters:
description
-
ejbCreate
public java.lang.String ejbCreate(java.lang.String className)
ejbPostCreate
public void ejbPostCreate(java.lang.String className)
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