Skip to contentPackage: PersistenceFactory
PersistenceFactory
Coverage
1: package cz.cvut.kbss.jopa.test.environment;
2:
3: import cz.cvut.kbss.jopa.model.EntityManager;
4:
5: import java.util.Map;
6:
7: public interface PersistenceFactory {
8:
9: /**
10: * Builds persistence unit and acquires an entity manager instance.
11: *
12: * @param repositoryName Repository name, used to create physical and logical URI of the storage
13: * @param cacheEnabled Whether to enable second-level cache
14: * @param properties Additional configuration properties
15: * @return Entity manager instance
16: */
17: EntityManager getEntityManager(String repositoryName, boolean cacheEnabled, Map<String, String> properties);
18: }