Class DataDomainProvider
java.lang.Object
org.apache.cayenne.configuration.runtime.DataDomainProvider
- All Implemented Interfaces:
Provider<DataDomain>
A
DataChannel provider that provides a single instance of DataDomain
configured per configuration supplied via injected
DataChannelDescriptorLoader.- Since:
- 3.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DataNodeDescriptorsprotected DataNodeFactoryprotected DataChannelDescriptorMergerprotected EntitySorterFactoryprotected EventManagerprotected DataDomainFlushActionFactoryprotected Injectorprotected DataChannelDescriptorLoaderprotected AdhocObjectFactoryprotected QueryCacheprotected List<DataChannelQueryFilter> protected ResourceLocatorprotected RuntimePropertiesstatic final Stringstatic final Stringprotected List<DataChannelSyncFilter> protected TransactionFactoryprotected TransactionManagerstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDataNode(DataDomain domain, DataNodeDescriptor descriptor, Set<String> mapNames) protected voidaddDefaultDataNode(DataDomain domain, DataNodeDescriptor descriptor) protected EntityResolvercreateEntityResolver(DataChannelDescriptor descriptor) protected DataRowStorecreateSharedSnapshotCache(DataChannelDescriptor descriptor) Returns a snapshot cache shared by all DataContexts of the domain, or null if the descriptor turns the shared cache off, and each DataContext is to use a cache of its own.get()protected DataChannelDescriptor
-
Field Details
-
SHARED_CACHE_ENABLED_PROPERTY
- See Also:
-
SHARED_CACHE_ENABLED_DEFAULT
- See Also:
-
VALIDATING_OBJECTS_ON_COMMIT_PROPERTY
- See Also:
-
VALIDATING_OBJECTS_ON_COMMIT_DEFAULT
- See Also:
-
resourceLocator
-
descriptorMerger
-
loader
-
queryFilters
- Since:
- 4.1
-
syncFilters
- Since:
- 4.1
-
listeners
-
locations
-
injector
-
queryCache
-
runtimeProperties
-
dataNodeFactory
-
transactionManager
-
transactionFactory
-
flushActionFactory
-
objectFactory
-
eventManager
-
entitySorterFactory
-
dataNodeDescriptors
-
-
Constructor Details
-
DataDomainProvider
public DataDomainProvider()
-
-
Method Details
-
get
- Specified by:
getin interfaceProvider<DataDomain>
-
addDataNode
-
addDefaultDataNode
-
createEntityResolver
-
loadDescriptor
- Since:
- 4.0
-