Class ValueHolderDescriptorFactory
java.lang.Object
org.apache.cayenne.reflect.PersistentDescriptorFactory
org.apache.cayenne.reflect.valueholder.ValueHolderDescriptorFactory
- All Implemented Interfaces:
ClassDescriptorFactory
A
ClassDescriptorFactory for Persistent objects that implement relationship
faulting via ValueHolder.- Since:
- 3.0
-
Field Summary
Fields inherited from class PersistentDescriptorFactory
descriptorMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Methods inherited from class PersistentDescriptorFactory
createAccessor, createAttributeProperty, createDescriptor, createEmbeddableAccessor, createEmbeddableDescriptor, createEmbeddedAttributeProperty, createMapKeyAccessor, getDescriptor, getDescriptor, indexAdditionalDbEntities, indexQualifiers, indexRootDbEntities, indexSubclassDescriptors, indexSuperclassPropertiesModifier 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.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.
-
Constructor Details
-
ValueHolderDescriptorFactory
-
-
Method Details
-
createToManyCollectionProperty
protected void createToManyCollectionProperty(PersistentDescriptor descriptor, ObjRelationship relationship) - Specified by:
createToManyCollectionPropertyin 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
-
createToOneProperty
- Specified by:
createToOnePropertyin classPersistentDescriptorFactory
-