public class CayenneContextFactory extends Object implements ObjectContextFactory
| Modifier and Type | Field and Description |
|---|---|
protected DataChannel |
dataChannel |
protected Injector |
injector |
protected RuntimeProperties |
properties |
protected QueryCache |
queryCache |
| Constructor and Description |
|---|
CayenneContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
ObjectContext |
createContext()
Creates an ObjectContext attached to a default DataChannel.
|
ObjectContext |
createContext(DataChannel parent)
Creates an ObjectContext attached to a provided channel.
|
protected CayenneContext |
newInstance(DataChannel parent,
boolean changeEventsEnabled,
boolean lifecycleEventsEnabled) |
protected DataChannel dataChannel
protected RuntimeProperties properties
protected QueryCache queryCache
protected Injector injector
public ObjectContext createContext()
ObjectContextFactorycreateContext in interface ObjectContextFactorypublic ObjectContext createContext(DataChannel parent)
ObjectContextFactorycreateContext in interface ObjectContextFactoryprotected CayenneContext newInstance(DataChannel parent, boolean changeEventsEnabled, boolean lifecycleEventsEnabled)
Copyright © 2001–2023 Apache Cayenne. All rights reserved.