Package org.apache.cayenne.reflect
Class PersistentDescriptorFactory
java.lang.Object
org.apache.cayenne.reflect.PersistentDescriptorFactory
- All Implemented Interfaces:
- ClassDescriptorFactory
- Direct Known Subclasses:
- PersistentObjectDescriptorFactory,- ValueHolderDescriptorFactory
A convenience superclass for 
ClassDescriptorFactory implementors.- Since:
- 3.0
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected AccessorcreateAccessor(PersistentDescriptor descriptor, String propertyName, Class<?> propertyType) Creates an accessor for the property.protected voidcreateAttributeProperty(PersistentDescriptor descriptor, ObjAttribute attribute) protected PersistentDescriptorprotected AccessorcreateEmbeddableAccessor(EmbeddableDescriptor descriptor, String propertyName, Class<?> propertyType) Creates an accessor for the property of the embeddable class.protected EmbeddableDescriptorcreateEmbeddableDescriptor(EmbeddedAttribute embeddedAttribute) Creates a descriptor of the embedded property.protected voidcreateEmbeddedAttributeProperty(PersistentDescriptor descriptor, EmbeddedAttribute embeddedAttribute, ObjAttribute attribute) protected AccessorcreateMapKeyAccessor(ObjRelationship relationship, ClassDescriptor targetDescriptor) Creates an accessor to read a map key for a given relationship.protected abstract voidcreateToManyCollectionProperty(PersistentDescriptor descriptor, ObjRelationship relationship) protected abstract voidcreateToManyListProperty(PersistentDescriptor descriptor, ObjRelationship relationship) protected abstract voidcreateToManyMapProperty(PersistentDescriptor descriptor, ObjRelationship relationship) protected abstract voidcreateToManySetProperty(PersistentDescriptor descriptor, ObjRelationship relationship) protected abstract voidcreateToOneProperty(PersistentDescriptor descriptor, ObjRelationship relationship) getDescriptor(String entityName) Returns a ClassDescriptor instance for a given symbolic entity name.protected ClassDescriptorgetDescriptor(ObjEntity entity, Class<?> entityClass) protected voidindexAdditionalDbEntities(PersistentDescriptor descriptor) protected voidindexQualifiers(PersistentDescriptor descriptor, EntityInheritanceTree inheritanceTree) protected voidindexRootDbEntities(PersistentDescriptor descriptor, EntityInheritanceTree inheritanceTree) protected voidindexSubclassDescriptors(PersistentDescriptor descriptor, EntityInheritanceTree inheritanceTree) protected voidindexSuperclassProperties(PersistentDescriptor descriptor) Adds superclass properties to the descriptor, applying proper overrides.
- 
Field Details- 
descriptorMap
 
- 
- 
Constructor Details- 
PersistentDescriptorFactory
 
- 
- 
Method Details- 
getDescriptorDescription copied from interface:ClassDescriptorFactoryReturns a ClassDescriptor instance for a given symbolic entity name. Returns null if this factory doesn't support this type of entity.- Specified by:
- getDescriptorin interface- ClassDescriptorFactory
 
- 
getDescriptor
- 
createDescriptor
- 
createAttributeProperty
- 
createEmbeddedAttributePropertyprotected void createEmbeddedAttributeProperty(PersistentDescriptor descriptor, EmbeddedAttribute embeddedAttribute, ObjAttribute attribute) 
- 
createToOnePropertyprotected abstract void createToOneProperty(PersistentDescriptor descriptor, ObjRelationship relationship) 
- 
createToManySetPropertyprotected abstract void createToManySetProperty(PersistentDescriptor descriptor, ObjRelationship relationship) 
- 
createToManyMapPropertyprotected abstract void createToManyMapProperty(PersistentDescriptor descriptor, ObjRelationship relationship) 
- 
createToManyListPropertyprotected abstract void createToManyListProperty(PersistentDescriptor descriptor, ObjRelationship relationship) 
- 
createToManyCollectionPropertyprotected abstract void createToManyCollectionProperty(PersistentDescriptor descriptor, ObjRelationship relationship) 
- 
indexSubclassDescriptorsprotected void indexSubclassDescriptors(PersistentDescriptor descriptor, EntityInheritanceTree inheritanceTree) 
- 
indexRootDbEntitiesprotected void indexRootDbEntities(PersistentDescriptor descriptor, EntityInheritanceTree inheritanceTree) 
- 
indexQualifiersprotected void indexQualifiers(PersistentDescriptor descriptor, EntityInheritanceTree inheritanceTree) 
- 
indexSuperclassPropertiesAdds superclass properties to the descriptor, applying proper overrides.
- 
indexAdditionalDbEntities
- 
createAccessorprotected Accessor createAccessor(PersistentDescriptor descriptor, String propertyName, Class<?> propertyType) throws PropertyException Creates an accessor for the property.- Throws:
- PropertyException
 
- 
createMapKeyAccessorprotected Accessor createMapKeyAccessor(ObjRelationship relationship, ClassDescriptor targetDescriptor) Creates an accessor to read a map key for a given relationship.
- 
createEmbeddableAccessorprotected Accessor createEmbeddableAccessor(EmbeddableDescriptor descriptor, String propertyName, Class<?> propertyType) Creates an accessor for the property of the embeddable class.
- 
createEmbeddableDescriptorCreates a descriptor of the embedded property.
 
-