public class PersistenceComponent extends DefaultComponent implements HibernateConfigurator, PersistenceProviderFactory
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,HibernateConfiguration> |
registry |
lastModified| Constructor and Description |
|---|
PersistenceComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPatchForTests(Properties hibernateProperties) |
int |
getApplicationStartedOrder()
The component notification order for
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext). |
HibernateConfiguration |
getHibernateConfiguration(String name) |
PersistenceProvider |
newProvider(String name) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
protected void |
registerHibernateContribution(HibernateConfiguration contribution,
ComponentName contributorName) |
protected static void |
registerOracle12DialectResolver()
Registers with Hibernate a dialect resolver to recognize Oracle 12.
|
void |
start(ComponentContext context)
Start the component.
|
activate, deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, stop, unregisterContribution, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStartedprotected final Map<String,HibernateConfiguration> registry
public PersistenceComponent()
protected static void registerOracle12DialectResolver()
public int getApplicationStartedOrder()
ComponentComponent.applicationStarted(org.nuxeo.runtime.model.ComponentContext).
Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.
getApplicationStartedOrder in interface Componentpublic void start(ComponentContext context)
Componentstart in interface Componentstart in class DefaultComponentpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentprotected void registerHibernateContribution(HibernateConfiguration contribution, ComponentName contributorName)
protected void doPatchForTests(Properties hibernateProperties)
public PersistenceProvider newProvider(String name)
newProvider in interface PersistenceProviderFactorypublic HibernateConfiguration getHibernateConfiguration(String name)
getHibernateConfiguration in interface HibernateConfiguratorCopyright © 2018 Nuxeo. All rights reserved.