1
2
3
4
5
6
7 package gov.bnl.gums;
8
9 /*** Represent a factory for all the classes that take care of the persistance of
10 * the AccountMappers, the UserGroups or any other components.
11 * <p>
12 * Implementing a new PersistanceFactory class allows to complete redefined how
13 * the user, group and accounting information is stored. This will allow to keep
14 * the information integrated in the site accounting system, being it any RDBMS,
15 * LDAP, or even a combination of these.
16 * <p>
17 * It also allow to use different mapping technologies, allowing to use either
18 * entity beans, simple JDBC, Hibernate or any other favourite technology.
19 *
20 * @author Gabriele Carcassi
21 */
22 public interface PersistenceFactory {
23 ManualAccountMapperDB retrieveManualAccountMapperDB(String name);
24 UserGroupDB retrieveUserGroupDB(String name);
25 ManualUserGroupDB retrieveManualUserGroupDB(String name);
26 AccountPoolMapperDB retrieveAccountPoolMapperDB(String name);
27 String getName();
28 }