org.jcoderz.commons.config
Class ConfigEntityCMP

java.lang.Object
  extended by org.jcoderz.commons.config.ConfigEntityBean
      extended by org.jcoderz.commons.config.ConfigEntityCMP
All Implemented Interfaces:
Serializable, EnterpriseBean, EntityBean

public abstract class ConfigEntityCMP
extends ConfigEntityBean
implements EntityBean

CMP layer for ConfigEntity.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jcoderz.commons.config.ConfigEntityBean
TABLE_NAME
 
Constructor Summary
ConfigEntityCMP()
           
 
Method Summary
 void ejbActivate()
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 void ejbStore()
           
abstract  String getConfigKey()
          Returns the value of the ConfigKey field as String.
 ConfigEntityData getData()
          Returns the data of the entity.
abstract  String getValue()
          Returns the value of the Value field as String.
abstract  void setConfigKey(String configKey)
          Sets the value of the ConfigKey field.
 void setData(ConfigEntityData dataHolder)
          Sets the data of the entity except for the primary key field(s).
 void setEntityContext(EntityContext ctx)
           
abstract  void setValue(String value)
          Sets the value of the Value field.
 void unsetEntityContext()
           
 
Methods inherited from class org.jcoderz.commons.config.ConfigEntityBean
ejbCreate, ejbPostCreate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigEntityCMP

public ConfigEntityCMP()
Method Detail

getData

public ConfigEntityData getData()
Description copied from class: ConfigEntityBean
Returns the data of the entity.

Specified by:
getData in class ConfigEntityBean
Returns:
a data object representing the entity

setData

public void setData(ConfigEntityData dataHolder)
Description copied from class: ConfigEntityBean
Sets the data of the entity except for the primary key field(s).

Specified by:
setData in class ConfigEntityBean
Parameters:
dataHolder - data object representing the entity.

ejbLoad

public void ejbLoad()
Specified by:
ejbLoad in interface EntityBean

ejbStore

public void ejbStore()
Specified by:
ejbStore in interface EntityBean

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface EntityBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface EntityBean

setEntityContext

public void setEntityContext(EntityContext ctx)
Specified by:
setEntityContext in interface EntityBean

unsetEntityContext

public void unsetEntityContext()
Specified by:
unsetEntityContext in interface EntityBean

ejbRemove

public void ejbRemove()
               throws RemoveException
Specified by:
ejbRemove in interface EntityBean
Throws:
RemoveException

getConfigKey

public abstract String getConfigKey()
Description copied from class: ConfigEntityBean
Returns the value of the ConfigKey field as String. ConfigurationKey's string representation to identify a configuration value. Not types because the extra data layer that hides database or propertyfile uses string type only.

Specified by:
getConfigKey in class ConfigEntityBean
Returns:
the value of the ConfigKey field as String.

setConfigKey

public abstract void setConfigKey(String configKey)
Description copied from class: ConfigEntityBean
Sets the value of the ConfigKey field.

Specified by:
setConfigKey in class ConfigEntityBean
Parameters:
configKey - the value of the ConfigKey field

getValue

public abstract String getValue()
Description copied from class: ConfigEntityBean
Returns the value of the Value field as String. contains the current valid value, is delivered whenever the config service is asked for the value for a given config_key

Specified by:
getValue in class ConfigEntityBean
Returns:
the value of the Value field as String.

setValue

public abstract void setValue(String value)
Description copied from class: ConfigEntityBean
Sets the value of the Value field.

Specified by:
setValue in class ConfigEntityBean
Parameters:
value - the value of the Value field


Copyright 2007 The jCoderZ Project.