KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > setup > pm > PersistenceManager


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.setup.pm;
10
11 import org.jboss.portal.setup.config.Configuration;
12 import org.jboss.portal.setup.config.HibernateConfig;
13 import org.jboss.portal.setup.PortalSetupException;
14
15 import java.util.List JavaDoc;
16
17
18 /**
19  * @author <a HREF="mailto:palber@novell.com">Polina Alber</a>
20  * Date: Apr 25, 2005; Time: 3:59:18 PM
21  * @since JBoss portal 2.0
22  * Interface org.jboss.portal.setup.pm.PersistenceManager
23  */

24 public interface PersistenceManager
25 {
26
27
28    void initialize(Configuration config, List JavaDoc schemaUris) throws PersistenceException, PortalSetupException;
29
30    PersistenceSession getSession() throws PersistenceException;
31
32    void closeSession(PersistenceSession ps) throws PersistenceException;
33
34    void destroy() throws PersistenceException;
35
36    boolean loadPersistenceSchema() throws PersistenceException;
37
38    boolean destroyPersistenceSchema() throws PersistenceException;
39
40 }
41
Popular Tags