Uses of Interface
org.apache.cayenne.reflect.ClassDescriptor
Packages that use ClassDescriptor
Package
Description
Contains persistence APIs directly accessible by users.
Contains classes that make up Cayenne ORM stack.
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
General utility classes.
-
Uses of ClassDescriptor in org.apache.cayenne
Methods in org.apache.cayenne that return ClassDescriptorModifier and TypeMethodDescriptionstatic ClassDescriptor
Cayenne.getClassDescriptor
(Persistent object) Returns class descriptor for the object or null if the object is not registered with an ObjectContext or descriptor was not found. -
Uses of ClassDescriptor in org.apache.cayenne.access
Methods in org.apache.cayenne.access with parameters of type ClassDescriptorModifier and TypeMethodDescriptionDataContext.objectsFromDataRows
(ClassDescriptor descriptor, List<? extends DataRow> dataRows) Converts a list of DataRows to a List of DataObject registered with this DataContext. -
Uses of ClassDescriptor in org.apache.cayenne.access.translator.ejbql
Methods in org.apache.cayenne.access.translator.ejbql that return ClassDescriptorModifier and TypeMethodDescriptionEJBQLTranslationContext.getEntityDescriptor
(String id) Looks up entity descriptor for an identifier that can be a compiled expression id or one of the aliases. -
Uses of ClassDescriptor in org.apache.cayenne.ejbql
Methods in org.apache.cayenne.ejbql that return ClassDescriptorModifier and TypeMethodDescriptionEJBQLCompiledExpression.getEntityDescriptor
(String identifier) Returns a ClassDescriptor for the id variable.EJBQLCompiledExpression.getRootDescriptor()
Returns a descriptor of the root of this expression such as entity being fetched or updated. -
Uses of ClassDescriptor in org.apache.cayenne.map
Methods in org.apache.cayenne.map that return ClassDescriptorModifier and TypeMethodDescriptionDefaultEntityResultSegment.getClassDescriptor()
EntityResolver.getClassDescriptor
(String entityName) Returns ClassDescriptor for the ObjEntity matching the name.Constructors in org.apache.cayenne.map with parameters of type ClassDescriptorModifierConstructorDescriptionDefaultEntityResultSegment
(ClassDescriptor classDescriptor, Map<String, String> fields, int offset) -
Uses of ClassDescriptor in org.apache.cayenne.query
Methods in org.apache.cayenne.query that return ClassDescriptorModifier and TypeMethodDescriptionEntityResultSegment.getClassDescriptor()
QueryMetadata.getClassDescriptor()
QueryMetadataProxy.getClassDescriptor()
-
Uses of ClassDescriptor in org.apache.cayenne.reflect
Classes in org.apache.cayenne.reflect that implement ClassDescriptorModifier and TypeClassDescriptionclass
A ClassDescriptor wrapper that compiles decorated descriptor lazily on first access.class
A default ClassDescriptor implementation for persistent objects.Fields in org.apache.cayenne.reflect declared as ClassDescriptorModifier and TypeFieldDescriptionprotected ClassDescriptor
LazyClassDescriptorDecorator.descriptor
protected ClassDescriptor
BaseProperty.owner
protected ClassDescriptor
PersistentDescriptor.superclassDescriptor
protected ClassDescriptor
BaseArcProperty.targetDescriptor
Fields in org.apache.cayenne.reflect with type parameters of type ClassDescriptorModifier and TypeFieldDescriptionprotected Map
<String, ClassDescriptor> ClassDescriptorMap.descriptors
protected Map
<String, ClassDescriptor> PersistentDescriptor.subclassDescriptors
Methods in org.apache.cayenne.reflect that return ClassDescriptorModifier and TypeMethodDescriptionprotected ClassDescriptor
ClassDescriptorMap.createDescriptor
(String entityName) Creates a new descriptor.protected ClassDescriptor
ClassDescriptorMap.createProxyDescriptor
(String entityName) Creates a descriptor wrapper that will compile the underlying descriptor on demand.ClassDescriptorFactory.getDescriptor
(String entityName) Returns a ClassDescriptor instance for a given symbolic entity name.ClassDescriptorMap.getDescriptor
(String entityName) LazyClassDescriptorDecorator.getDescriptor()
Returns underlying descriptor used to delegate all processing, resolving it if needed.PersistentDescriptorFactory.getDescriptor
(String entityName) protected ClassDescriptor
PersistentDescriptorFactory.getDescriptor
(ObjEntity entity, Class<?> entityClass) ClassDescriptor.getSubclassDescriptor
(Class<?> objectClass) Returns the most "specialized" descriptor for a given class.LazyClassDescriptorDecorator.getSubclassDescriptor
(Class<?> objectClass) PersistentDescriptor.getSubclassDescriptor
(Class<?> objectClass) ClassDescriptor.getSuperclassDescriptor()
Returns a descriptor of the mapped superclass or null if the descriptor's entity sits at the top of inheritance hierarchy or no inheritance is mapped.LazyClassDescriptorDecorator.getSuperclassDescriptor()
PersistentDescriptor.getSuperclassDescriptor()
Returns a descriptor of the mapped superclass or null if the descriptor's entity sits at the top of inheritance hierarchy.ArcProperty.getTargetDescriptor()
Returns a ClassDescriptor for the type of graph nodes pointed to by this arc property.BaseArcProperty.getTargetDescriptor()
Methods in org.apache.cayenne.reflect with parameters of type ClassDescriptorModifier and TypeMethodDescriptionvoid
ClassDescriptorMap.addDescriptor
(String entityName, ClassDescriptor descriptor) Caches descriptor definition.void
PersistentDescriptor.addSubclassDescriptor
(String className, ClassDescriptor subclassDescriptor) Adds a subclass descriptor that maps to a given class name.protected Accessor
PersistentDescriptorFactory.createMapKeyAccessor
(ObjRelationship relationship, ClassDescriptor targetDescriptor) Creates an accessor to read a map key for a given relationship.void
PersistentDescriptor.setSuperclassDescriptor
(ClassDescriptor superclassDescriptor) Constructors in org.apache.cayenne.reflect with parameters of type ClassDescriptorModifierConstructorDescriptionBaseArcProperty
(ClassDescriptor owner, ClassDescriptor targetDescriptor, Accessor accessor, String reverseName) BaseProperty
(ClassDescriptor owner, Accessor accessor) BaseToManyProperty
(ClassDescriptor owner, ClassDescriptor targetDescriptor, Accessor accessor, String reverseName) BaseToOneProperty
(ClassDescriptor owner, ClassDescriptor targetDescriptor, Accessor accessor, String reverseName) SimpleAttributeProperty
(ClassDescriptor owner, Accessor accessor, ObjAttribute attribute) -
Uses of ClassDescriptor in org.apache.cayenne.reflect.generic
Methods in org.apache.cayenne.reflect.generic that return ClassDescriptorModifier and TypeMethodDescriptionprotected ClassDescriptor
DataObjectDescriptorFactory.getDescriptor
(ObjEntity entity, Class<?> entityClass) -
Uses of ClassDescriptor in org.apache.cayenne.util
Methods in org.apache.cayenne.util with parameters of type ClassDescriptorModifier and TypeMethodDescriptionObjectDetachOperation.detach
(Object object, ClassDescriptor descriptor, PrefetchTreeNode prefetchTree) "Detaches" an object from its context by creating an unattached copy.