Package | Description |
---|---|
org.apache.cayenne |
Contains persistence APIs directly accessible by users.
|
org.apache.cayenne.access |
Contains classes that make up Cayenne ORM stack.
|
org.apache.cayenne.access.translator.ejbql | |
org.apache.cayenne.ejbql | |
org.apache.cayenne.map |
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
|
org.apache.cayenne.query |
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
|
org.apache.cayenne.reflect | |
org.apache.cayenne.reflect.generic | |
org.apache.cayenne.util |
General utility classes.
|
Modifier and Type | Method and Description |
---|---|
static 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.
|
Modifier and Type | Method and Description |
---|---|
List |
DataContext.objectsFromDataRows(ClassDescriptor descriptor,
List<? extends DataRow> dataRows)
Converts a list of DataRows to a List of DataObject registered with this
DataContext.
|
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
EJBQLTranslationContext.getEntityDescriptor(String id)
Looks up entity descriptor for an identifier that can be a compiled expression id
or one of the aliases.
|
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
EJBQLCompiledExpression.getEntityDescriptor(String identifier)
Returns a ClassDescriptor for the id variable.
|
ClassDescriptor |
EJBQLCompiledExpression.getRootDescriptor()
Returns a descriptor of the root of this expression such as entity being fetched or
updated.
|
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
EntityResolver.getClassDescriptor(String entityName)
Returns ClassDescriptor for the ObjEntity matching the name.
|
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
QueryMetadata.getClassDescriptor() |
ClassDescriptor |
EntityResultSegment.getClassDescriptor() |
Modifier and Type | Class and Description |
---|---|
class |
LazyClassDescriptorDecorator
A ClassDescriptor wrapper that compiles decorated descriptor lazily on first access.
|
class |
PersistentDescriptor
A default ClassDescriptor implementation for persistent objects.
|
Modifier and Type | Field and Description |
---|---|
protected ClassDescriptor |
LazyClassDescriptorDecorator.descriptor |
protected ClassDescriptor |
BaseProperty.owner |
protected ClassDescriptor |
PersistentDescriptor.superclassDescriptor |
protected ClassDescriptor |
BaseArcProperty.targetDescriptor |
Modifier and Type | Field and Description |
---|---|
protected Map<String,ClassDescriptor> |
ClassDescriptorMap.descriptors |
protected Map<String,ClassDescriptor> |
PersistentDescriptor.subclassDescriptors |
Modifier and Type | Method and Description |
---|---|
protected 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.
|
ClassDescriptor |
LazyClassDescriptorDecorator.getDescriptor()
Returns underlying descriptor used to delegate all processing, resolving it if
needed.
|
protected ClassDescriptor |
PersistentDescriptorFactory.getDescriptor(ObjEntity entity,
Class<?> entityClass) |
ClassDescriptor |
PersistentDescriptorFactory.getDescriptor(String entityName) |
ClassDescriptor |
ClassDescriptorMap.getDescriptor(String entityName) |
ClassDescriptor |
ClassDescriptorFactory.getDescriptor(String entityName)
Returns a ClassDescriptor instance for a given symbolic entity name.
|
ClassDescriptor |
PersistentDescriptor.getSubclassDescriptor(Class<?> objectClass) |
ClassDescriptor |
LazyClassDescriptorDecorator.getSubclassDescriptor(Class<?> objectClass) |
ClassDescriptor |
ClassDescriptor.getSubclassDescriptor(Class<?> objectClass)
Returns the most "specialized" descriptor for a given class.
|
ClassDescriptor |
PersistentDescriptor.getSuperclassDescriptor()
Returns a descriptor of the mapped superclass or null if the descriptor's entity
sits at the top of inheritance hierarchy.
|
ClassDescriptor |
LazyClassDescriptorDecorator.getSuperclassDescriptor() |
ClassDescriptor |
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.
|
ClassDescriptor |
BaseArcProperty.getTargetDescriptor() |
ClassDescriptor |
ArcProperty.getTargetDescriptor()
Returns a ClassDescriptor for the type of graph nodes pointed to by this
arc property.
|
Modifier and Type | Method and Description |
---|---|
void |
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) |
Constructor and Description |
---|
BaseArcProperty(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) |
Modifier and Type | Method and Description |
---|---|
protected ClassDescriptor |
DataObjectDescriptorFactory.getDescriptor(ObjEntity entity,
Class<?> entityClass) |
Modifier and Type | Method and Description |
---|---|
Object |
ObjectDetachOperation.detach(Object object,
ClassDescriptor descriptor,
PrefetchTreeNode prefetchTree)
"Detaches" an object from its context by creating an unattached copy.
|
Copyright © 2001–2015 Apache Cayenne. All rights reserved.