com.submersion.jspshop.ejb
Class TypeValueBean

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

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

Implementation of the TypeValue entity bean, using container managed persistance (CMP). This bean belongs to a property type, which has a property name. Basically links the values to the Object

See Also:
TypeValue, TypeValueHome, Serialized Form

Constructor Summary
TypeValueBean()
           
 
Method Summary
 void ejbActivate()
           
 java.lang.Long ejbCreate()
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate()
           
 void ejbRemove()
           
 void ejbStore()
           
 java.lang.Long getTypeID()
           
 java.lang.Long getTypeValueID()
          Returns the primary key of the bean.
 java.lang.String getValue()
          Returns the string value of the property type
 java.lang.Long getValueID()
          Returns the property value ID
 void setEntityContext(javax.ejb.EntityContext ctx)
           
 void setTypeID(java.lang.Long typeID)
           
 void setValue(java.lang.String value)
          sets the string value of the property type
 void setValueID(java.lang.Long valueID)
          sets the property value ID, should only be used during creation.
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeValueBean

public TypeValueBean()
Method Detail

getTypeValueID

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

getValueID

public java.lang.Long getValueID()
Returns the property value ID

setValueID

public void setValueID(java.lang.Long valueID)
sets the property value ID, should only be used during creation.
Parameters:
valueID -  

getValue

public java.lang.String getValue()
Returns the string value of the property type

setValue

public void setValue(java.lang.String value)
sets the string value of the property type
Parameters:
value -  

getTypeID

public java.lang.Long getTypeID()

setTypeID

public void setTypeID(java.lang.Long typeID)

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