com.submersion.jspshop.ejb
Class ValueBean

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

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

Implementation of the Value entity bean using Container Managed Persistance (CMP)
 
 Values are linked to objects and properties.

See Also:
Value, ValueHome, Serialized Form

Field Summary
 java.lang.Long objectID
           
 java.lang.Long propertyID
           
 java.lang.String value
           
 java.lang.Long valueID
           
 
Constructor Summary
ValueBean()
           
 
Method Summary
 void ejbActivate()
           
 java.lang.Long ejbCreate()
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate()
           
 void ejbRemove()
           
 void ejbStore()
           
 java.lang.Long getObjectID()
          returns the objectID that the value is linked to.
 java.lang.Long getPropertyID()
          returns the propertyID that the value belongs to
 java.lang.String getValue()
          returns the String value of the property
 java.lang.Long getValueID()
          returns the primary key of the entity bean
 void setEntityContext(javax.ejb.EntityContext ctx)
           
 void setObjectID(java.lang.Long objectID)
          changes the objectID that the value is linked to.
 void setPropertyID(java.lang.Long propertyID)
          changes the propertyID that the value belongs to.
 void setValue(java.lang.String value)
          changes the String value of the property
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueID

public java.lang.Long valueID

propertyID

public java.lang.Long propertyID

objectID

public java.lang.Long objectID

value

public java.lang.String value
Constructor Detail

ValueBean

public ValueBean()
Method Detail

getValueID

public java.lang.Long getValueID()
returns the primary key of the entity bean

getPropertyID

public java.lang.Long getPropertyID()
returns the propertyID that the value belongs to

setPropertyID

public void setPropertyID(java.lang.Long propertyID)
changes the propertyID that the value belongs to. Should only be used during create.
Parameters:
propertyID -  

getObjectID

public java.lang.Long getObjectID()
returns the objectID that the value is linked to.

setObjectID

public void setObjectID(java.lang.Long objectID)
changes the objectID that the value is linked to. Should only be used during creation.
Parameters:
objectID -  

getValue

public java.lang.String getValue()
returns the String value of the property

setValue

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

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