|
Betty v1.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchristophedelory.ejb.AbstractEntityBean
christophedelory.betty.ejb.MetadataBean
public abstract class MetadataBean
The entity bean definition of a metadata field, attached to a base object
.
AbstractMetadataDetails
,
Serialized FormField Summary |
---|
Fields inherited from class christophedelory.ejb.AbstractEntityBean |
---|
context |
Constructor Summary | |
---|---|
MetadataBean()
|
Method Summary | |
---|---|
Object |
ejbCreate(LocalBase dbBase,
String type,
String localeName)
Creates an instance of this entity bean. |
void |
ejbPostCreate(LocalBase dbBase,
String type,
String localeName)
Allows this entity bean instance to fully initialize itself. |
abstract LocalBase |
getBase()
Returns the base EJB object attached to this EJB object. |
abstract Date |
getCreationDate()
Returns the creation date of this EJB object. |
abstract String |
getCreationUserId()
Returns the identifier of the user having created this EJB object. |
abstract String |
getLocaleName()
Returns the metadata locale. |
abstract String |
getType()
Returns the metadata type. |
abstract Date |
getUpdateDate()
Returns the update date of this EJB object. |
abstract String |
getUpdateUserId()
Returns the identifier of the user having performed the last update on this EJB object. |
abstract String |
getValue()
Returns the value of this metadata. |
abstract void |
setBase(LocalBase dbBase)
Initializes the associated EJB object. |
abstract void |
setCreationDate(Date date)
Initializes the creation date. |
abstract void |
setCreationUserId(String userId)
Initializes the identifier of the user having created this EJB object. |
abstract void |
setLocaleName(String localeName)
Initializes the metadata locale. |
abstract void |
setType(String type)
Initializes the metadata type. |
abstract void |
setUpdateDate(Date date)
Initializes the update date of this EJB object. |
abstract void |
setUpdateUserId(String userId)
Initializes the identifier of the user having performed the last update on this EJB object. |
abstract void |
setValue(String value)
Initializes the value of this metadata. |
Methods inherited from class christophedelory.ejb.AbstractEntityBean |
---|
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, setEntityContext, unsetEntityContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.EntityBean |
---|
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, setEntityContext, unsetEntityContext |
Constructor Detail |
---|
public MetadataBean()
Method Detail |
---|
public abstract String getType()
null
.
EJBException
- if any exception occured during the execution of this method.DescriptionDetails.METADATA_TYPE
,
LinkDetails.METADATA_TYPE
,
setType(String)
public abstract void setType(String type)
type
- a metadata type. Shall not be null
.
EJBException
- if any exception occured during the execution of this method.getType()
public abstract String getLocaleName()
null
.
EJBException
- if any exception occured during the execution of this method.setLocaleName(String)
public abstract void setLocaleName(String localeName)
localeName
- a locale name. May be empty, but not null
.
EJBException
- if any exception occured during the execution of this method.getLocaleName()
public abstract String getValue()
null
.
EJBException
- if any exception occured during the execution of this method.setValue(String)
public abstract void setValue(String value)
value
- a metadata value. Shall not be null
.
EJBException
- if any exception occured during the execution of this method.getValue()
public abstract Date getCreationDate()
DbEntity
getCreationDate
in interface DbEntity
null
.setCreationDate(java.util.Date)
public abstract void setCreationDate(Date date)
date
- a date. Shall not be null
.
EJBException
- if any exception occured during the execution of this method.getCreationDate()
public abstract String getCreationUserId()
DbEntity
getCreationUserId
in interface DbEntity
null
.setCreationUserId(String)
public abstract void setCreationUserId(String userId)
userId
- a user identifier. Shall not be null
.
EJBException
- if any exception occured during the execution of this method.getCreationUserId()
public abstract Date getUpdateDate()
DbEntity
getUpdateDate
in interface DbEntity
null
.DbEntity.setUpdateDate(java.util.Date)
,
DbEntity.getUpdateUserId()
public abstract void setUpdateDate(Date date)
DbEntity
setUpdateDate
in interface DbEntity
date
- a date. Shall not be null
.DbEntity.getUpdateDate()
,
DbEntity.setUpdateUserId(String)
public abstract String getUpdateUserId()
DbEntity
getUpdateUserId
in interface DbEntity
null
.DbEntity.setUpdateUserId(String)
,
DbEntity.getUpdateDate()
public abstract void setUpdateUserId(String userId)
DbEntity
setUpdateUserId
in interface DbEntity
userId
- a user identifier. Shall not be null
.DbEntity.getUpdateUserId()
,
DbEntity.setUpdateDate(java.util.Date)
public abstract LocalBase getBase()
DbEntity
getBase
in interface DbEntity
null
.DbEntity.setBase(christophedelory.interfaces.LocalBase)
public abstract void setBase(LocalBase dbBase)
DbEntity
setBase
in interface DbEntity
dbBase
- an EJB object. Shall not be null
.DbEntity.getBase()
public Object ejbCreate(LocalBase dbBase, String type, String localeName) throws CreateException
dbBase
- the EJB object owning this metadata. Shall not be null
.type
- the metadata type. Shall not be null
.localeName
- a locale name. May be empty, but not null
.
null
(as EJB 2.0 spec says for CMP ejbCreate()
methods).
NullPointerException
- if type
is null
.
CreateException
- the EJB object creation failed.
EJBException
- if any exception occured during the execution of this method.public void ejbPostCreate(LocalBase dbBase, String type, String localeName) throws CreateException
dbBase
- the EJB object owning this metadata. Shall not be null
.type
- the metadata type. Shall not be null
.localeName
- a locale name. May be empty, but not null
.
CreateException
- the EJB object creation failed.
EJBException
- if any exception occured during the execution of this method.
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |