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()
ObjectContextFactory
createContext
in interface ObjectContextFactory
public ObjectContext createContext(DataChannel parent)
ObjectContextFactory
createContext
in interface ObjectContextFactory
protected CayenneContext newInstance(DataChannel parent, boolean changeEventsEnabled, boolean lifecycleEventsEnabled)
Copyright © 2001–2019 Apache Cayenne. All rights reserved.