Class DataObjectDescriptorFactory
- java.lang.Object
-
- org.apache.cayenne.reflect.PersistentDescriptorFactory
-
- org.apache.cayenne.reflect.generic.DataObjectDescriptorFactory
-
- All Implemented Interfaces:
ClassDescriptorFactory
public class DataObjectDescriptorFactory extends PersistentDescriptorFactory
AClassDescriptorFactorythat creates descriptors for classes implementingDataObject.- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description protected FaultFactoryfaultFactory-
Fields inherited from class org.apache.cayenne.reflect.PersistentDescriptorFactory
descriptorMap
-
-
Constructor Summary
Constructors Constructor Description DataObjectDescriptorFactory(ClassDescriptorMap descriptorMap, FaultFactory faultFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AccessorcreateAccessor(PersistentDescriptor descriptor, String propertyName, Class<?> propertyType)Creates an accessor for the property.protected voidcreateAttributeProperty(PersistentDescriptor descriptor, ObjAttribute attribute)protected PersistentDescriptorcreateDescriptor()protected voidcreateToManyCollectionProperty(PersistentDescriptor descriptor, ObjRelationship relationship)protected voidcreateToManyListProperty(PersistentDescriptor descriptor, ObjRelationship relationship)protected voidcreateToManyMapProperty(PersistentDescriptor descriptor, ObjRelationship relationship)protected voidcreateToManySetProperty(PersistentDescriptor descriptor, ObjRelationship relationship)protected voidcreateToOneProperty(PersistentDescriptor descriptor, ObjRelationship relationship)protected ClassDescriptorgetDescriptor(ObjEntity entity, Class<?> entityClass)-
Methods inherited from class org.apache.cayenne.reflect.PersistentDescriptorFactory
createEmbeddableAccessor, createEmbeddableDescriptor, createEmbeddedAttributeProperty, createMapKeyAccessor, getDescriptor, indexAdditionalDbEntities, indexQualifiers, indexRootDbEntities, indexSubclassDescriptors, indexSuperclassProperties
-
-
-
-
Field Detail
-
faultFactory
protected FaultFactory faultFactory
-
-
Constructor Detail
-
DataObjectDescriptorFactory
public DataObjectDescriptorFactory(ClassDescriptorMap descriptorMap, FaultFactory faultFactory)
-
-
Method Detail
-
getDescriptor
protected ClassDescriptor getDescriptor(ObjEntity entity, Class<?> entityClass)
- Overrides:
getDescriptorin classPersistentDescriptorFactory
-
createDescriptor
protected PersistentDescriptor createDescriptor()
- Overrides:
createDescriptorin classPersistentDescriptorFactory
-
createAttributeProperty
protected void createAttributeProperty(PersistentDescriptor descriptor, ObjAttribute attribute)
- Overrides:
createAttributePropertyin classPersistentDescriptorFactory
-
createToManyListProperty
protected void createToManyListProperty(PersistentDescriptor descriptor, ObjRelationship relationship)
- Specified by:
createToManyListPropertyin classPersistentDescriptorFactory
-
createToManyMapProperty
protected void createToManyMapProperty(PersistentDescriptor descriptor, ObjRelationship relationship)
- Specified by:
createToManyMapPropertyin classPersistentDescriptorFactory
-
createToManySetProperty
protected void createToManySetProperty(PersistentDescriptor descriptor, ObjRelationship relationship)
- Specified by:
createToManySetPropertyin classPersistentDescriptorFactory
-
createToManyCollectionProperty
protected void createToManyCollectionProperty(PersistentDescriptor descriptor, ObjRelationship relationship)
- Specified by:
createToManyCollectionPropertyin classPersistentDescriptorFactory
-
createToOneProperty
protected void createToOneProperty(PersistentDescriptor descriptor, ObjRelationship relationship)
- Specified by:
createToOnePropertyin classPersistentDescriptorFactory
-
createAccessor
protected Accessor createAccessor(PersistentDescriptor descriptor, String propertyName, Class<?> propertyType) throws PropertyException
Description copied from class:PersistentDescriptorFactoryCreates an accessor for the property.- Overrides:
createAccessorin classPersistentDescriptorFactory- Throws:
PropertyException
-
-