public class OpenSpacesPersistenceProvider extends Object implements javax.persistence.spi.PersistenceProvider
Constructor and Description |
---|
OpenSpacesPersistenceProvider() |
Modifier and Type | Method and Description |
---|---|
javax.persistence.EntityManagerFactory |
createContainerEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfo pui,
Map properties) |
javax.persistence.EntityManagerFactory |
createEntityManagerFactory(String persistenceUnitName,
IJSpace space)
Creates an
EntityManagerFactory instance and injects the provided space instance to it. |
javax.persistence.EntityManagerFactory |
createEntityManagerFactory(String persistenceUnitName,
IJSpace space,
Map properties)
Creates an
EntityManagerFactory instance and injects the provided space instance to it. |
javax.persistence.EntityManagerFactory |
createEntityManagerFactory(String persistenceUnitName,
Map properties) |
javax.persistence.spi.ProviderUtil |
getProviderUtil() |
void |
setSpace(IJSpace space)
Sets the space instance which will be injected to the
EntityManagerFactory instance. |
public javax.persistence.EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, IJSpace space, Map properties)
EntityManagerFactory
instance and injects the provided space instance to it.persistenceUnitName
- The persistence unit name.space
- The space instance to inject.properties
- Properties map.EntityManagerFactory
instance.public javax.persistence.EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, IJSpace space)
EntityManagerFactory
instance and injects the provided space instance to it.persistenceUnitName
- The persistence unit name.space
- The space instance to inject.EntityManagerFactory
instance.public javax.persistence.EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, Map properties)
createEntityManagerFactory
in interface javax.persistence.spi.PersistenceProvider
public javax.persistence.EntityManagerFactory createContainerEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfo pui, Map properties)
createContainerEntityManagerFactory
in interface javax.persistence.spi.PersistenceProvider
public void setSpace(IJSpace space)
EntityManagerFactory
instance.space
- The space instance to inject.public javax.persistence.spi.ProviderUtil getProviderUtil()
getProviderUtil
in interface javax.persistence.spi.PersistenceProvider
Copyright © GigaSpaces.