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)

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

Field Summary
 java.lang.String className
           
 java.lang.String context
           
 java.lang.String description
           
 java.lang.String parentName
           
 
Constructor Summary
ClassBean()
           
 
Method Summary
 void ejbActivate()
           
 java.lang.String ejbCreate(java.lang.String className)
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(java.lang.String className)
           
 void ejbRemove()
           
 void ejbStore()
           
 java.lang.String getClassName()
          Returns the primary key ClassName
 java.lang.String getContext()
          Returns a sort key which contains the inheritance line for this class
 java.lang.String getDescription()
          Returns the description for this Class
 java.lang.String getParentName()
          Returns the primary key of the parent object
 void setContext(java.lang.String context)
          Changes the sort key containing inheritance information.
 void setDescription(java.lang.String description)
          Changes the description for this class.
 void setEntityContext(javax.ejb.EntityContext ctx)
           
 void setParentName(java.lang.String parentName)
          Changes the parent object for this class.
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

public java.lang.String className

parentName

public java.lang.String parentName

context

public java.lang.String context

description

public java.lang.String description
Constructor Detail

ClassBean

public ClassBean()
Method Detail

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