Expresso 5-6

com.jcorporate.expresso.core.dataobjects.jdbc
Class JdbcPersistenceManager

java.lang.Object
  extended bycom.jcorporate.expresso.kernel.ComponentBase
      extended bycom.jcorporate.expresso.kernel.ContainerComponentBase
          extended bycom.jcorporate.expresso.core.dataobjects.jdbc.JdbcPersistenceManager
All Implemented Interfaces:
ComponentLifecycle, Containable, Describable, ExpressoComponent, Serializable

public class JdbcPersistenceManager
extends ContainerComponentBase
implements ComponentLifecycle

Author:
Michael Rimov
See Also:
Serialized Form

Constructor Summary
JdbcPersistenceManager()
           
 
Method Summary
 void configure(Configuration newConfig)
          Configure the service.
 void destroy()
          Called upon destruction of the service.
 String getConfigName()
           
 String getDataURL()
           
 String getPassword()
           
 String getUserName()
           
 void initialize()
          Initialize the component, this is called before the component receives any configuration information.
 void reconfigure(Configuration newConfig)
          Reconfigures the service during runtime without having to restart the container.
 void setConfigName(String configName)
           
 void setDataURL(String dataURL)
           
 void setPassword(String password)
           
 void setUserName(String userName)
           
 
Methods inherited from class com.jcorporate.expresso.kernel.ContainerComponentBase
getContainerImplementation, locateComponent, setContainerImplementation
 
Methods inherited from class com.jcorporate.expresso.kernel.ComponentBase
getMetaData, getMetadataLocation, getParent, setMetaData, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jcorporate.expresso.kernel.ExpressoComponent
getMetaData, getParent, setParent
 

Constructor Detail

JdbcPersistenceManager

public JdbcPersistenceManager()
Method Detail

initialize

public void initialize()
Description copied from interface: ComponentLifecycle
Initialize the component, this is called before the component receives any configuration information.

Specified by:
initialize in interface ComponentLifecycle

configure

public void configure(Configuration newConfig)
               throws ConfigurationException
Description copied from interface: ComponentLifecycle
Configure the service. This is where any parameter settings will take place.

Specified by:
configure in interface ComponentLifecycle
Parameters:
newConfig - a read only dynabean containing all the needed configuration.
Throws:
ConfigurationException - if for some reason the Component cannot cope with the configuration sent to it. If this exception is thrown then ZERO reconfiguration takes place. Configure() must be an all or nothing 'transaction'

reconfigure

public void reconfigure(Configuration newConfig)
                 throws ConfigurationException
Description copied from interface: ComponentLifecycle

Reconfigures the service during runtime without having to restart the container.

Reconfigure is done this way vs. bean/property setters because sometimes components need special property setting orders and it is not easily possible to determine what order to set things in. This is the responsibility of the component

reConfigure() should be done in a transactional manner.... by that, we mean that if the reconfiguration fails, the component should revert to its previous state and continue operation

Specified by:
reconfigure in interface ComponentLifecycle
Parameters:
newConfig - a read only dynabean containing all the needed configuration.
Throws:
ConfigurationException - if for some reason the Component cannot cope with the configuration sent to it. If this exception is thrown then ZERO reconfiguration takes place. Configure() must be an all or nothing 'transaction'

destroy

public void destroy()
Description copied from interface: ComponentLifecycle
Called upon destruction of the service. This may or may not have anything to do with container shutdown or reloading.

Specified by:
destroy in interface ComponentLifecycle

setDataURL

public void setDataURL(String dataURL)

getDataURL

public String getDataURL()

setUserName

public void setUserName(String userName)

getUserName

public String getUserName()

setPassword

public void setPassword(String password)

getPassword

public String getPassword()

setConfigName

public void setConfigName(String configName)

getConfigName

public String getConfigName()

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.