Class DataObjectDescriptorFactory
java.lang.Object
org.apache.cayenne.reflect.PersistentDescriptorFactory
org.apache.cayenne.reflect.generic.DataObjectDescriptorFactory
- All Implemented Interfaces:
ClassDescriptorFactory
A
ClassDescriptorFactory
that creates descriptors for classes implementing
DataObject
.- Since:
- 3.0
-
Field Summary
Fields inherited from class org.apache.cayenne.reflect.PersistentDescriptorFactory
descriptorMap
-
Constructor Summary
ConstructorDescriptionDataObjectDescriptorFactory
(ClassDescriptorMap descriptorMap, FaultFactory faultFactory, ValueComparisonStrategyFactory valueComparisonStrategyFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected Accessor
createAccessor
(PersistentDescriptor descriptor, String propertyName, Class<?> propertyType) Creates an accessor for the property.protected void
createAttributeProperty
(PersistentDescriptor descriptor, ObjAttribute attribute) protected PersistentDescriptor
protected void
createToManyCollectionProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected void
createToManyListProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected void
createToManyMapProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected void
createToManySetProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected void
createToOneProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected ClassDescriptor
getDescriptor
(ObjEntity entity, Class<?> entityClass) Methods inherited from class org.apache.cayenne.reflect.PersistentDescriptorFactory
createEmbeddableAccessor, createEmbeddableDescriptor, createEmbeddedAttributeProperty, createMapKeyAccessor, getDescriptor, indexAdditionalDbEntities, indexQualifiers, indexRootDbEntities, indexSubclassDescriptors, indexSuperclassProperties
-
Field Details
-
faultFactory
-
valueComparisonStrategyFactory
-
-
Constructor Details
-
DataObjectDescriptorFactory
public DataObjectDescriptorFactory(ClassDescriptorMap descriptorMap, FaultFactory faultFactory, ValueComparisonStrategyFactory valueComparisonStrategyFactory)
-
-
Method Details
-
getDescriptor
- Overrides:
getDescriptor
in classPersistentDescriptorFactory
-
createDescriptor
- Overrides:
createDescriptor
in classPersistentDescriptorFactory
-
createAttributeProperty
- Overrides:
createAttributeProperty
in classPersistentDescriptorFactory
-
createToManyListProperty
protected void createToManyListProperty(PersistentDescriptor descriptor, ObjRelationship relationship) - Specified by:
createToManyListProperty
in classPersistentDescriptorFactory
-
createToManyMapProperty
protected void createToManyMapProperty(PersistentDescriptor descriptor, ObjRelationship relationship) - Specified by:
createToManyMapProperty
in classPersistentDescriptorFactory
-
createToManySetProperty
protected void createToManySetProperty(PersistentDescriptor descriptor, ObjRelationship relationship) - Specified by:
createToManySetProperty
in classPersistentDescriptorFactory
-
createToManyCollectionProperty
protected void createToManyCollectionProperty(PersistentDescriptor descriptor, ObjRelationship relationship) - Specified by:
createToManyCollectionProperty
in classPersistentDescriptorFactory
-
createToOneProperty
- Specified by:
createToOneProperty
in classPersistentDescriptorFactory
-
createAccessor
protected Accessor createAccessor(PersistentDescriptor descriptor, String propertyName, Class<?> propertyType) throws PropertyException Description copied from class:PersistentDescriptorFactory
Creates an accessor for the property.- Overrides:
createAccessor
in classPersistentDescriptorFactory
- Throws:
PropertyException
-