1 9 package org.jboss.portal.setup.config; 10 11 12 import org.w3c.dom.Element ; 13 import org.jboss.portal.setup.PortalSetupException; 14 15 import java.util.Properties ; 16 import java.util.List ; 17 18 25 public interface HibernateConfig extends Configuration 26 { 27 28 29 32 void setDbAccessConfig(DbAccessConfig dbConfig); 33 34 37 DbAccessConfig getDbAccessConfig(); 38 39 40 44 void setSchemaClasses(Element classesElmt); 45 46 50 Element getSchemaClasses(); 51 52 55 void setCacheProvider(String cacheProvider); 56 57 60 String getCacheProvider(); 61 62 63 66 String getHibernateDialect() throws PortalSetupException; 67 68 71 void setHibernateDialect(String dialectClassName); 72 73 77 Properties getHibernateProperties() throws PortalSetupException; 78 79 83 void setHibernateProperties(Properties props); 84 85 90 void addPropery(String key, String value); 91 92 void setSchemaClasses(List classes); 93 94 void addSchemaClass(Class schemaClass); 95 96 List getSchemaClassesList(); 97 } 98 | Popular Tags |