Class DataContextFactory
java.lang.Object
org.apache.cayenne.configuration.server.DataContextFactory
- All Implemented Interfaces:
ObjectContextFactory
public class DataContextFactory extends Object implements ObjectContextFactory
- Since:
- 3.1
-
Field Summary
Fields Modifier and Type Field Description protected DataDomain
dataDomain
protected DataRowStoreFactory
dataRowStoreFactory
protected EventManager
eventManager
protected ObjectStoreFactory
objectStoreFactory
protected QueryCache
queryCache
protected TransactionFactory
transactionFactory
-
Constructor Summary
Constructors Constructor Description DataContextFactory()
-
Method Summary
Modifier and Type Method Description ObjectContext
createContext()
Creates an ObjectContext attached to a default DataChannel.ObjectContext
createContext(DataChannel parent)
Creates an ObjectContext attached to a provided channel.protected ObjectContext
createdFromDataDomain(DataDomain parent)
protected ObjectContext
createFromDataContext(DataContext parent)
protected ObjectContext
createFromGenericChannel(DataChannel parent)
protected DataContext
newInstance(DataChannel parent, ObjectStore objectStore)
-
Field Details
-
dataDomain
-
eventManager
-
dataRowStoreFactory
-
objectStoreFactory
-
queryCache
-
transactionFactory
-
-
Constructor Details
-
DataContextFactory
public DataContextFactory()
-
-
Method Details
-
createContext
Description copied from interface:ObjectContextFactory
Creates an ObjectContext attached to a default DataChannel.- Specified by:
createContext
in interfaceObjectContextFactory
-
createContext
Description copied from interface:ObjectContextFactory
Creates an ObjectContext attached to a provided channel. This is often used for nested context creation.- Specified by:
createContext
in interfaceObjectContextFactory
-
createFromGenericChannel
-
createFromDataContext
-
createdFromDataDomain
-
newInstance
-