public class DataContextFactory extends Object implements ObjectContextFactory
| Modifier and Type | Field and Description |
|---|---|
protected DataDomain |
dataDomain |
protected DataRowStoreFactory |
dataRowStoreFactory |
protected EventManager |
eventManager |
protected ObjectStoreFactory |
objectStoreFactory |
protected QueryCache |
queryCache |
protected TransactionFactory |
transactionFactory |
| Constructor and Description |
|---|
DataContextFactory() |
| 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 ObjectContext |
createdFromDataDomain(DataDomain parent) |
protected ObjectContext |
createFromDataContext(DataContext parent) |
protected ObjectContext |
createFromGenericChannel(DataChannel parent) |
protected DataContext |
newInstance(DataChannel parent,
ObjectStore objectStore) |
protected DataDomain dataDomain
protected EventManager eventManager
protected DataRowStoreFactory dataRowStoreFactory
protected ObjectStoreFactory objectStoreFactory
protected QueryCache queryCache
protected TransactionFactory transactionFactory
public ObjectContext createContext()
ObjectContextFactorycreateContext in interface ObjectContextFactorypublic ObjectContext createContext(DataChannel parent)
ObjectContextFactorycreateContext in interface ObjectContextFactoryprotected ObjectContext createFromGenericChannel(DataChannel parent)
protected ObjectContext createFromDataContext(DataContext parent)
protected ObjectContext createdFromDataDomain(DataDomain parent)
protected DataContext newInstance(DataChannel parent, ObjectStore objectStore)
Copyright © 2001–2023 Apache Cayenne. All rights reserved.