com.opensymphony.module.propertyset.ejb.types
Class DateEntityEJB
java.lang.Object
com.opensymphony.module.propertyset.ejb.types.DateEntityEJB
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable
- Direct Known Subclasses:
- PropertyDateCMP
- public abstract class DateEntityEJB
- extends java.lang.Object
- implements javax.ejb.EntityBean
AbstractValueEntityEJB concrete implementation optimized for storing Dates.
- Version:
- $Revision: 1.2 $
- Author:
- Joe Walnes
- See Also:
PropertyStoreEJB,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateEntityEJB
public DateEntityEJB()
setDate
public abstract void setDate(java.sql.Timestamp date)
getDate
public abstract java.sql.Timestamp getDate()
setId
public abstract void setId(java.lang.Long id)
getId
public abstract java.lang.Long getId()
setEntityContext
public void setEntityContext(javax.ejb.EntityContext context)
- Specified by:
setEntityContext in interface javax.ejb.EntityBean
setValue
public void setValue(int type,
java.sql.Timestamp value)
- Set the value. Only java.util.Timestamp can be supplied.
getValue
public java.sql.Timestamp getValue(int type)
- Return Date
ejbActivate
public void ejbActivate()
- Specified by:
ejbActivate in interface javax.ejb.EntityBean
ejbCreate
public java.lang.Long ejbCreate(int type,
long id)
throws javax.ejb.CreateException
- Throws:
javax.ejb.CreateException
ejbLoad
public void ejbLoad()
- Specified by:
ejbLoad in interface javax.ejb.EntityBean
ejbPassivate
public void ejbPassivate()
- Specified by:
ejbPassivate in interface javax.ejb.EntityBean
ejbPostCreate
public void ejbPostCreate(int type,
long id)
throws javax.ejb.CreateException
- Throws:
javax.ejb.CreateException
ejbRemove
public void ejbRemove()
throws javax.ejb.RemoveException
- Specified by:
ejbRemove in interface javax.ejb.EntityBean
- Throws:
javax.ejb.RemoveException
ejbStore
public void ejbStore()
- Specified by:
ejbStore in interface javax.ejb.EntityBean
unsetEntityContext
public void unsetEntityContext()
- Specified by:
unsetEntityContext in interface javax.ejb.EntityBean
allowedTypes
protected int[] allowedTypes()
- Returns { PropertySet.DATE }
|