|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.reflect.PersistentDescriptorFactory
public abstract class PersistentDescriptorFactory
A convenience superclass for ClassDescriptorFactory
implementors.
Field Summary | |
---|---|
protected ClassDescriptorMap |
descriptorMap
|
Constructor Summary | |
---|---|
PersistentDescriptorFactory(ClassDescriptorMap descriptorMap)
|
Method Summary | |
---|---|
protected Accessor |
createAccessor(PersistentDescriptor descriptor,
String propertyName,
Class<?> propertyType)
Creates an accessor for the property. |
protected void |
createAttributeProperty(PersistentDescriptor descriptor,
ObjAttribute attribute)
|
protected PersistentDescriptor |
createDescriptor()
|
protected Accessor |
createEmbeddableAccessor(EmbeddableDescriptor descriptor,
String propertyName,
Class<?> propertyType)
Creates an accessor for the property of the embeddable class. |
protected EmbeddableDescriptor |
createEmbeddableDescriptor(EmbeddedAttribute embeddedAttribute)
Creates a descriptor of the embedded property. |
protected void |
createEmbeddedAttributeProperty(PersistentDescriptor descriptor,
EmbeddedAttribute embeddedAttribute,
ObjAttribute attribute)
|
protected Accessor |
createMapKeyAccessor(ObjRelationship relationship,
ClassDescriptor targetDescriptor)
Creates an accessor to read a map key for a given relationship. |
protected abstract void |
createToManyCollectionProperty(PersistentDescriptor descriptor,
ObjRelationship relationship)
|
protected abstract void |
createToManyListProperty(PersistentDescriptor descriptor,
ObjRelationship relationship)
|
protected abstract void |
createToManyMapProperty(PersistentDescriptor descriptor,
ObjRelationship relationship)
|
protected abstract void |
createToManySetProperty(PersistentDescriptor descriptor,
ObjRelationship relationship)
|
protected abstract void |
createToOneProperty(PersistentDescriptor descriptor,
ObjRelationship relationship)
|
protected ClassDescriptor |
getDescriptor(ObjEntity entity,
Class<?> entityClass)
|
ClassDescriptor |
getDescriptor(String entityName)
Returns a ClassDescriptor instance for a given symbolic entity name. |
protected void |
indexQualifiers(PersistentDescriptor descriptor,
EntityInheritanceTree inheritanceTree)
|
protected void |
indexRootDbEntities(PersistentDescriptor descriptor,
EntityInheritanceTree inheritanceTree)
|
protected void |
indexSubclassDescriptors(PersistentDescriptor descriptor,
EntityInheritanceTree inheritanceTree)
|
protected void |
indexSuperclassProperties(PersistentDescriptor descriptor)
Adds superclass properties to the descriptor, applying proper overrides. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ClassDescriptorMap descriptorMap
Constructor Detail |
---|
public PersistentDescriptorFactory(ClassDescriptorMap descriptorMap)
Method Detail |
---|
public ClassDescriptor getDescriptor(String entityName)
ClassDescriptorFactory
getDescriptor
in interface ClassDescriptorFactory
protected ClassDescriptor getDescriptor(ObjEntity entity, Class<?> entityClass)
protected PersistentDescriptor createDescriptor()
protected void createAttributeProperty(PersistentDescriptor descriptor, ObjAttribute attribute)
protected void createEmbeddedAttributeProperty(PersistentDescriptor descriptor, EmbeddedAttribute embeddedAttribute, ObjAttribute attribute)
protected abstract void createToOneProperty(PersistentDescriptor descriptor, ObjRelationship relationship)
protected abstract void createToManySetProperty(PersistentDescriptor descriptor, ObjRelationship relationship)
protected abstract void createToManyMapProperty(PersistentDescriptor descriptor, ObjRelationship relationship)
protected abstract void createToManyListProperty(PersistentDescriptor descriptor, ObjRelationship relationship)
protected abstract void createToManyCollectionProperty(PersistentDescriptor descriptor, ObjRelationship relationship)
protected void indexSubclassDescriptors(PersistentDescriptor descriptor, EntityInheritanceTree inheritanceTree)
protected void indexRootDbEntities(PersistentDescriptor descriptor, EntityInheritanceTree inheritanceTree)
protected void indexQualifiers(PersistentDescriptor descriptor, EntityInheritanceTree inheritanceTree)
protected void indexSuperclassProperties(PersistentDescriptor descriptor)
protected Accessor createAccessor(PersistentDescriptor descriptor, String propertyName, Class<?> propertyType) throws PropertyException
PropertyException
protected Accessor createMapKeyAccessor(ObjRelationship relationship, ClassDescriptor targetDescriptor)
protected Accessor createEmbeddableAccessor(EmbeddableDescriptor descriptor, String propertyName, Class<?> propertyType)
protected EmbeddableDescriptor createEmbeddableDescriptor(EmbeddedAttribute embeddedAttribute)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |