|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.gums.persistence.PersistenceFactory
public abstract class PersistenceFactory
Represent a factory for all the classes that take care of the persistance of the AccountMappers, the UserGroups or any other components.
Implementing a new PersistanceManager class allows to complete redefined how the user, group and accounting information is stored. This will allow to keep the information integrated in the site accounting system, being it any RDBMS, LDAP, or even a combination of these.
It also allow to use different mapping technologies, allowing to use either entity beans, simple JDBC, Hibernate or any other favourite technology.
Constructor Summary | |
---|---|
PersistenceFactory()
Create a persistence factory. |
|
PersistenceFactory(Configuration configuration)
Create a persistence factory with a configuration. |
|
PersistenceFactory(Configuration configuration,
java.lang.String name)
Create a persistence factory with a configuration and a name. |
Method Summary | |
---|---|
abstract PersistenceFactory |
clone(Configuration configuration)
Create a clone of itself |
Configuration |
getConfiguration()
Getter for property configuration. |
java.lang.String |
getDescription()
Getter for property description. |
java.lang.String |
getName()
Getter for property name. |
java.util.Properties |
getProperties()
Getter for the list of properties for the particular technology deployed by the inhereted classes. |
java.lang.String |
getType()
|
static java.lang.String |
getTypeStatic()
|
abstract AccountPoolMapperDB |
retrieveAccountPoolMapperDB(java.lang.String name)
|
abstract ManualAccountMapperDB |
retrieveManualAccountMapperDB(java.lang.String name)
|
abstract ManualUserGroupDB |
retrieveManualUserGroupDB(java.lang.String name)
|
abstract UserGroupDB |
retrieveUserGroupDB(java.lang.String name)
|
void |
setConfiguration(Configuration configuration)
Setter for property configuration. |
void |
setDescription(java.lang.String description)
Setter for property description. |
void |
setName(java.lang.String name)
Setter for property name. |
void |
setProperties(java.util.Properties properties)
Setter for the list of properties for the particular technology deployed by the inhereted classes. |
abstract java.lang.String |
toXML()
Get XML representation of this object for writing to gums.config |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistenceFactory()
public PersistenceFactory(Configuration configuration)
configuration
- public PersistenceFactory(Configuration configuration, java.lang.String name)
configuration
- name
- Method Detail |
---|
public static java.lang.String getTypeStatic()
public abstract PersistenceFactory clone(Configuration configuration)
configuration
-
public Configuration getConfiguration()
public java.lang.String getDescription()
public java.lang.String getName()
public java.util.Properties getProperties()
public java.lang.String getType()
public abstract AccountPoolMapperDB retrieveAccountPoolMapperDB(java.lang.String name)
public abstract ManualAccountMapperDB retrieveManualAccountMapperDB(java.lang.String name)
public abstract ManualUserGroupDB retrieveManualUserGroupDB(java.lang.String name)
public abstract UserGroupDB retrieveUserGroupDB(java.lang.String name)
public void setConfiguration(Configuration configuration)
configuration.
- public void setDescription(java.lang.String description)
description.
- public void setName(java.lang.String name)
name.
- public void setProperties(java.util.Properties properties)
properties.
- public abstract java.lang.String toXML()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |