|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.kernel.ComponentBase
com.jcorporate.expresso.kernel.ContainerComponentBase
com.jcorporate.expresso.core.dataobjects.PersistenceManager
This is the persistence manager class. It currently contains a type mapper and a configuration engine. Other components such as Transaction Manager, etc are to be added at later dates.
| Constructor Summary | |
PersistenceManager()
Default constructor |
|
| Method Summary | |
void |
configure(Configuration newConfig)
Lifecycle event for configuration. |
void |
destroy()
Event Handler for the destruction of this component. |
String |
getConfigName()
Retrieve the db configuration name |
String |
getDataContext()
Read only property that tells what data context we're a part of. |
String |
getDataURL()
Get the database connection url |
DBConfig |
getDBConfig()
Get the DBConfig Class |
String |
getPassword()
Retrieve the password for this data connection |
TypeMapper |
getTypeMapper()
Retrieve the TypeMapper associated with this persistence connection. |
String |
getUserName()
Retrieve the user name for this db connection |
void |
initialize()
Init lifecycle event |
void |
reconfigure(Configuration newConfig)
Lifecycle event for reconfiguration. |
void |
setConfigName(String configName)
Set the db configuration name |
void |
setDataURL(String dataURL)
Set the database connection URL |
void |
setPassword(String password)
Set the password for this data connection |
void |
setUserName(String userName)
Set the user name for the db connection |
| 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 |
public PersistenceManager()
| Method Detail |
public void initialize()
initialize in interface ComponentLifecycle
public void configure(Configuration newConfig)
throws ConfigurationException
configure in interface ComponentLifecyclenewConfig - Configuration read-only 'bean'
ConfigurationException - upon receiving invalid configuration values
public void reconfigure(Configuration newConfig)
throws ConfigurationException
reconfigure in interface ComponentLifecyclenewConfig - Configuration read-only 'bean'
ConfigurationException - upon receiving invalid configuration valuespublic void destroy()
destroy in interface ComponentLifecyclepublic TypeMapper getTypeMapper()
public DBConfig getDBConfig()
public String getDataContext()
public void setConfigName(String configName)
configName - the name of the database configuration to use.public String getConfigName()
public void setDataURL(String dataURL)
dataURL - a new URL formatted datbase URLpublic String getDataURL()
public void setUserName(String userName)
userName - An alphanumeric user namepublic String getUserName()
public void setPassword(String password)
password - The password for the JDBC connection.public String getPassword()
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||