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.jdbc |
Contains classes that handle JDBC interactions.
|
org.apache.cayenne.access.trans |
Provides translators for Cayenne queries.
|
org.apache.cayenne.ashwood | |
org.apache.cayenne.configuration | |
org.apache.cayenne.map |
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
|
org.apache.cayenne.merge | |
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 |
---|---|
ObjEntity |
PersistentObject.getObjEntity()
Deprecated.
since 3.1
Cayenne.getObjEntity(Persistent) is used |
static ObjEntity |
Cayenne.getObjEntity(Persistent p)
Returns mapped ObjEntity for object.
|
Modifier and Type | Field and Description |
---|---|
protected ObjEntity |
IncrementalFaultList.rootEntity |
Modifier and Type | Method and Description |
---|---|
void |
DbLoaderDelegate.objEntityAdded(ObjEntity ent) |
void |
DbLoaderDelegate.objEntityRemoved(ObjEntity ent) |
Modifier and Type | Field and Description |
---|---|
protected ObjEntity |
EJBQLPathTranslator.currentEntity |
Modifier and Type | Method and Description |
---|---|
ObjEntity |
QueryAssemblerHelper.getObjEntity() |
ObjEntity |
QueryAssembler.getRootEntity() |
Modifier and Type | Field and Description |
---|---|
protected Comparator<ObjEntity> |
AshwoodEntitySorter.objEntityComparator |
Modifier and Type | Method and Description |
---|---|
protected Comparator<ObjEntity> |
AshwoodEntitySorter.getObjEntityComparator(boolean dependantFirst) |
Modifier and Type | Method and Description |
---|---|
void |
AshwoodEntitySorter.sortObjectsForEntity(ObjEntity objEntity,
List<?> objects,
boolean deleteOrder) |
Modifier and Type | Method and Description |
---|---|
void |
AshwoodEntitySorter.sortObjEntities(List<ObjEntity> objEntities,
boolean deleteOrder) |
Modifier and Type | Method and Description |
---|---|
T |
BaseConfigurationNodeVisitor.visitObjEntity(ObjEntity entity) |
T |
ConfigurationNodeVisitor.visitObjEntity(ObjEntity entity) |
Modifier and Type | Field and Description |
---|---|
protected ObjEntity |
EntityInheritanceTree.entity |
Modifier and Type | Field and Description |
---|---|
protected Map<String,ObjEntity> |
EntityResolver.objEntityCache |
Modifier and Type | Method and Description |
---|---|
protected ObjEntity |
EntityResolver._lookupObjEntity(String key)
Internal usage only - provides the type-unsafe implementation which services the
three typesafe public lookupObjEntity methods Looks in the DataMap's that this
object was created with for the ObjEntity that maps to the specified object.
|
ObjEntity |
EntityInheritanceTree.entityMatchingRow(DataRow row)
Returns the deepest possible entity in the inheritance hierarchy that can be used
to create objects from a given DataRow.
|
ObjEntity |
ObjEntity.getClientEntity()
Returns an ObjEntity stripped of any server-side information, such as DbEntity
mapping.
|
ObjEntity |
EntityInheritanceTree.getEntity() |
ObjEntity |
DataMap.getObjEntity(String objEntityName)
Returns an ObjEntity for a given name.
|
ObjEntity |
EntityResolver.getObjEntity(String name) |
ObjEntity |
MappingNamespace.getObjEntity(String name)
Returns ObjEntity for a given name, or null if no such ObjEntity is found in the
MappingNamespace.
|
ObjEntity |
DataMap.getObjEntityForJavaClass(String javaClassName)
Returns an ObjEntity for a DataObject class name.
|
ObjEntity |
ObjEntity.getSuperEntity()
Returns a "super" entity in the entity inheritance hierarchy.
|
ObjEntity |
EntityResolver.lookupObjEntity(Class<?> aClass)
Looks in the DataMap's that this object was created with for the ObjEntity that
maps to the services the specified class
|
ObjEntity |
EntityResolver.lookupObjEntity(Object object)
Looks in the DataMap's that this object was created with for the ObjEntity that
services the specified data Object
|
Modifier and Type | Method and Description |
---|---|
Collection<ObjEntity> |
EntityInheritanceTree.allSubEntities()
Returns a collection containing this inheritance tree node entity and all its
subentities.
|
Collection<ObjEntity> |
DataMap.getMappedEntities(DbEntity dbEntity)
Returns all ObjEntities mapped to the given DbEntity.
|
Collection<ObjEntity> |
DataMap.getObjEntities()
Returns an unmodifiable collection of ObjEntities stored in this DataMap.
|
Collection<ObjEntity> |
EntityResolver.getObjEntities() |
Collection<ObjEntity> |
MappingNamespace.getObjEntities()
Returns all ObjEntities in the namespace.
|
SortedMap<String,ObjEntity> |
DataMap.getObjEntityMap()
Returns a sorted unmodifiable map of ObjEntities contained in this DataMap, keyed
by ObjEntity name.
|
Modifier and Type | Method and Description |
---|---|
void |
DataMap.addObjEntity(ObjEntity entity)
Adds a new ObjEntity to this DataMap.
|
Object |
EntityListenerFactory.createListener(EntityListener listenerMapping,
ObjEntity entity)
Creates an instance of entity listener of a given class.
|
Iterator<CayenneMapEntry> |
ObjAttribute.getDbPathIterator(ObjEntity entity) |
boolean |
ObjEntity.isSubentityOf(ObjEntity entity)
Returns true if this entity directly or indirectly inherits from a given entity,
false otherwise.
|
EntityInheritanceTree |
EntityResolver.lookupInheritanceTree(ObjEntity entity)
Deprecated.
since 3.1 use
EntityResolver.lookupInheritanceTree(String) . |
void |
EntitySorter.sortObjectsForEntity(ObjEntity entity,
List<?> objects,
boolean deleteOrder)
Sorts a list of objects belonging to the ObjEntity.
|
Modifier and Type | Method and Description |
---|---|
void |
EntitySorter.sortObjEntities(List<ObjEntity> objEntities,
boolean deleteOrder)
Sorts a list of ObjEntities.
|
Constructor and Description |
---|
EmbeddedAttribute(String name,
String type,
ObjEntity entity) |
EntityInheritanceTree(ObjEntity entity) |
ObjAttribute(String name,
String type,
ObjEntity entity) |
Modifier and Type | Method and Description |
---|---|
protected Collection<ObjEntity> |
AbstractToModelToken.objEntitiesMappedToDbEntity(DbEntity entity) |
Modifier and Type | Method and Description |
---|---|
void |
ModelMergeDelegate.objEntityAdded(ObjEntity ent) |
void |
ModelMergeDelegate.objEntityRemoved(ObjEntity ent) |
Modifier and Type | Method and Description |
---|---|
ObjEntity |
QueryMetadata.getObjEntity()
Returns an ObjEntity associated with a query or null if no such entity exists.
|
Constructor and Description |
---|
SelectQuery(ObjEntity root)
Creates a SelectQuery with null qualifier, for the specifed ObjEntity
|
SelectQuery(ObjEntity root,
Expression qualifier)
Creates a SelectQuery for the specified ObjEntity with the given qualifier.
|
SelectQuery(ObjEntity root,
Expression qualifier,
List<Ordering> orderings)
Creates a SelectQuery for the specified ObjEntity with the given
qualifier and orderings.
|
SQLTemplate(ObjEntity rootEntity,
String defaultTemplate) |
Modifier and Type | Field and Description |
---|---|
protected ObjEntity |
PersistentDescriptor.entity |
Modifier and Type | Method and Description |
---|---|
ObjEntity |
ClassDescriptor.getEntity()
Returns an ObjEntity associated with this descriptor.
|
ObjEntity |
LazyClassDescriptorDecorator.getEntity() |
ObjEntity |
PersistentDescriptor.getEntity() |
Modifier and Type | Method and Description |
---|---|
protected ClassDescriptor |
PersistentDescriptorFactory.getDescriptor(ObjEntity entity,
Class<?> entityClass) |
void |
PersistentDescriptor.setEntity(ObjEntity entity) |
Modifier and Type | Method and Description |
---|---|
protected ClassDescriptor |
DataObjectDescriptorFactory.getDescriptor(ObjEntity entity,
Class<?> entityClass) |
Modifier and Type | Method and Description |
---|---|
protected List<DbAttribute> |
EntityMergeSupport.getAttributesToAdd(ObjEntity objEntity)
Returns a list of attributes that exist in the DbEntity, but are missing from the
ObjEntity.
|
Collection<DbAttribute> |
EntityMergeSupport.getMeaningfulFKs(ObjEntity objEntity)
Returns a list of DbAttributes that are mapped to foreign keys.
|
protected List<DbRelationship> |
EntityMergeSupport.getRelationshipsToAdd(ObjEntity objEntity) |
boolean |
EntityMergeSupport.synchronizeWithDbEntity(ObjEntity entity)
Updates ObjEntity attributes and relationships based on the current state of its
DbEntity.
|
static void |
DeleteRuleUpdater.updateObjEntity(ObjEntity e)
Updates delete rules for all relationships in a objentity
|
Modifier and Type | Method and Description |
---|---|
boolean |
EntityMergeSupport.synchronizeWithDbEntities(Collection<ObjEntity> objEntities)
Updates each one of the collection of ObjEntities, adding attributes and
relationships based on the current state of its DbEntity.
|
Copyright © 2001–2018 Apache Cayenne. All rights reserved.