1 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 ; 16 17 18 24 public interface PersistenceManager 25 { 26 27 28 void initialize(Configuration config, List 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 |