# Uses of Class
org.apache.cayenne.map.Entity

Packages that use Entity
Package
Description
org.apache.cayenne.exp.parser
Contains expression parser and other expression internals.
org.apache.cayenne.map
Contains O/R mapping classes that store relational database metadata information and map it to Java classes.
org.apache.cayenne.map.event

- ## Uses of Entity in org.apache.cayenne.exp.parser

  Methods in org.apache.cayenne.exp.parser with parameters of type Entity
  Modifier and Type
  Method
  Description
  `protected CayenneMapEntry`
  ASTDbIdPath.`evaluateEntityNode(Entity<?,?,?> entity)`
  `protected CayenneMapEntry`
  ASTDbPath.`evaluateEntityNode(Entity<?,?,?> entity)`
  Helper method to evaluate path expression with Cayenne Entity.
  `protected CayenneMapEntry`
  ASTPath.`evaluateEntityNode(Entity<?,?,?> entity)`
  Helper method to evaluate path expression with Cayenne Entity.

- ## Uses of Entity in org.apache.cayenne.map

  Classes in org.apache.cayenne.map with type parameters of type Entity
  Modifier and Type
  Class
  Description
  `class`
  `Attribute<E extends Entity<E,A,R>,A extends Attribute<E,A,R>,R extends Relationship<E,A,R>>`
  Defines a property descriptor that is a part of an Entity.
  `class`
  `Entity<E extends Entity<E,A,R>,A extends Attribute<E,A,R>,R extends Relationship<E,A,R>>`
  An Entity is an abstract descriptor for an entity mapping concept.
  `class`
  `Relationship<E extends Entity<E,A,R>,A extends Attribute<E,A,R>,R extends Relationship<E,A,R>>`
  Defines a relationship between two entities.
  Subclasses of Entity in org.apache.cayenne.map
  Modifier and Type
  Class
  Description
  `class`
  `DbEntity`
  A DbEntity is a mapping descriptor that defines a structure of a database table.
  `class`
  `ObjEntity`
  ObjEntity is a mapping descriptor for a Persistent Java class.
  Fields in org.apache.cayenne.map declared as Entity
  Modifier and Type
  Field
  Description
  `protected Entity<E,A,R>`
  Attribute.`entity`
  `protected E`
  Relationship.`sourceEntity`
  Methods in org.apache.cayenne.map that return Entity
  Modifier and Type
  Method
  Description
  `Entity<E,A,R>`
  Attribute.`getEntity()`
  Returns parent entity that holds this attribute.
  Methods in org.apache.cayenne.map with parameters of type Entity
  Modifier and Type
  Method
  Description
  `void`
  Attribute.`setEntity(Entity<E,A,R> entity)`
  Sets parent entity that holds this attribute.
  `void`
  Relationship.`setTargetEntityName(Entity<E,A,R> targetEntity)`
  Sets relationship target entity.

- ## Uses of Entity in org.apache.cayenne.map.event

  Fields in org.apache.cayenne.map.event declared as Entity
  Modifier and Type
  Field
  Description
  `protected Entity<?,?,?>`
  EntityEvent.`entity`
  Methods in org.apache.cayenne.map.event that return Entity
  Modifier and Type
  Method
  Description
  `Entity<?,?,?>`
  EntityEvent.`getEntity()`
  Returns entity object associated with this event.
  Methods in org.apache.cayenne.map.event with parameters of type Entity
  Modifier and Type
  Method
  Description
  `void`
  EntityEvent.`setEntity(Entity<?,?,?> entity)`
  Sets the entity.
  Constructors in org.apache.cayenne.map.event with parameters of type Entity
  Modifier
  Constructor
  Description
  ``
  `AttributeEvent(Object src, Attribute<?,?,?> attr, Entity<?,?,?> entity)`
  Creates a Attribute change event.
  ``
  `AttributeEvent(Object src, Attribute<?,?,?> attr, Entity<?,?,?> entity, int id)`
  Creates a Attribute event of a specified type.
  ``
  `AttributeEvent(Object src, Attribute<?,?,?> attr, Entity<?,?,?> entity, String oldName)`
  Creates a Attribute name change event.
  ``
  `EntityEvent(Object src, Entity<?,?,?> entity)`
  Creates a Entity change event.
  ``
  `EntityEvent(Object src, Entity<?,?,?> entity, int id)`
  Creates a Entity event of a specified type.
  ``
  `EntityEvent(Object src, Entity<?,?,?> entity, String oldName)`
  Creates a Entity name change event.
  ``
  `RelationshipEvent(Object src, Relationship<?,?,?> rel, Entity<?,?,?> entity)`
  Creates a Relationship change event.
  ``
  `RelationshipEvent(Object src, Relationship<?,?,?> rel, Entity<?,?,?> entity, int id)`
  Creates a Relationship event of a specified type.
  ``
  `RelationshipEvent(Object src, Relationship<?,?,?> rel, Entity<?,?,?> entity, String oldName)`
  Creates a Relationship name change event.