org.jcoderz.commons.config
Class ConfigEntityBean

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

public abstract class ConfigEntityBean
extends Object
implements EntityBean

ConfigEntity Entity Bean. Generated by Phoenix CMP Generator II $Revision: 1.9 $

Author:
fawkeZ (jCoderZ.org)
See Also:
Serialized Form
ejb.bean
name="ConfigEntity" type="CMP" jndi-name="ConfigEntity" cmp-version="2.x" use-soft-locking="false" schema="CfgConfig"
ejb.finder
signature="java.util.Collection findAll ()" query="SELECT OBJECT(a) FROM CfgConfig AS a"
ejb.persistence
table-name="cfg_config"
ejb.resource-ref
res-ref-name="jdbc/fawkez" res-type="javax.sql.DataSource" res-auth="Container" FIXME: please adapt the transaction xdoclet tag!
ejb.transaction
type="Required" Application Server Support
weblogic.cache
concurrency-strategy="Optimistic"
weblogic.data-source-name
"jdbc/fawkez"
weblogic.delay-database-insert-until
ejbCreate
weblogic.enable-call-by-reference
True
weblogic.persistence
verify-columns="Read" delay-updates-until-end-of-tx="True"

Field Summary
static String TABLE_NAME
          The name of the DB table which this entity represents.
 
Constructor Summary
ConfigEntityBean()
           
 
Method Summary
 ConfigEntityPK ejbCreate(ConfigEntityData data)
          Create this Entity bean from its data object.
 void ejbPostCreate(ConfigEntityData data)
          Post-Create this Entity bean from its data object.
abstract  String getConfigKey()
          Returns the value of the ConfigKey field as String.
abstract  ConfigEntityData getData()
          Returns the data of the entity.
abstract  String getValue()
          Returns the value of the Value field as String.
abstract  void setConfigKey(String value)
          Sets the value of the ConfigKey field.
abstract  void setData(ConfigEntityData data)
          Sets the data of the entity except for the primary key field(s).
abstract  void setValue(String value)
          Sets the value of the Value field.
 
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
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
The name of the DB table which this entity represents.

See Also:
Constant Field Values
Constructor Detail

ConfigEntityBean

public ConfigEntityBean()
Method Detail

ejbCreate

public ConfigEntityPK ejbCreate(ConfigEntityData data)
                         throws CreateException
Create this Entity bean from its data object.

Parameters:
data - data object containing the entity
Returns:
primary key
Throws:
CreateException - if the container encounters a problem during bean creation.
ejb.create-method

ejbPostCreate

public void ejbPostCreate(ConfigEntityData data)
Post-Create this Entity bean from its data object.

Parameters:
data - data object containing the entity

getConfigKey

public abstract String getConfigKey()
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.

Returns:
the value of the ConfigKey field as String.
ejb.interface-method
ejb.persistence
column-name="config_key"
ejb.persistent-field
ejb.pk-field

setConfigKey

public abstract void setConfigKey(String value)
Sets the value of the ConfigKey field.

Parameters:
value - the value of the ConfigKey field
ejb.interface-method

getValue

public abstract String getValue()
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

Returns:
the value of the Value field as String.
ejb.interface-method
ejb.persistence
column-name="value"
ejb.persistent-field

setValue

public abstract void setValue(String value)
Sets the value of the Value field.

Parameters:
value - the value of the Value field
ejb.interface-method

getData

public abstract ConfigEntityData getData()
Returns the data of the entity.

Returns:
a data object representing the entity
ejb.interface-method

setData

public abstract void setData(ConfigEntityData data)
Sets the data of the entity except for the primary key field(s).

Parameters:
data - data object representing the entity.
ejb.interface-method


Copyright 2007 The jCoderZ Project.