Top Interfaces Classes
module org.eclipse.persistence.core

Package org.eclipse.persistence.mappings


Interface Summary

Modifier and TypeInterface and Description
public interface
ContainerMapping

Interface used by clients to interact with the assorted mappings that use ContainerPolicy.

public interface
EmbeddableMapping

INTERNAL Common interface to those mappings that are used to map JPA Embedded objects.

public interface
RelationalMapping

INTERNAL All mappings which can be added to org.eclipse.persistence.mappings.Descriptor must implement this interface.

Class Summary

Modifier and TypeClass and Description
public class
AggregateCollectionMapping

Purpose: The aggregate collection mapping is used to represent the aggregate relationship between a single source object and a collection of target objects.

public abstract class
AggregateMapping

Purpose: Two objects can be considered to be related by aggregation if there is a strict 1:1 relationship between the objects.

public class
AggregateObjectMapping

Purpose:Two objects can be considered to be related by aggregation if there is a strict 1:1 relationship between the objects.

public class
Association

Purpose: Generic association object.

public abstract class
AttributeAccessor

Purpose: This provides an abstract class for setting and retrieving the attribute value for the mapping from an object.

public abstract class
CollectionMapping

Purpose: Abstract class for relationship mappings which store collection of objects

public abstract class
DatabaseMapping

Purpose: Defines how an attribute of an object maps to and from the database

Responsibilities:

  • Define type of relationship (1:1/1:M/M:M/etc.)
  • Define instance variable name and fields names required
  • Define any additional properties (ownership, indirection, read only, etc.)
  • Control building the value for the instance variable from the database row
  • Control building the database fields from the object
  • Control any pre/post updating/inserting/deleting required to maintain the relationship
  • Merges object changes for unit of work.
  • Clones objects for unit of work.
  • cache computed information to optimize performance
public class
DirectCollectionMapping

Purpose: This mapping is used to store a collection of simple types (String, Number, Date, etc.) into a single table.

public class
DirectMapMapping

Mapping for a collection of key-value pairs.

public class
DirectToFieldMapping

Purpose: Maps an attribute to the corresponding database field type.

public abstract class
ForeignReferenceMapping

Purpose: Abstract class for relationship mappings

public class
ManyToManyMapping

Purpose: Many to many mappings are used to represent the relationships between a collection of source objects and a collection of target objects.

public class
ManyToOneMapping

Purpose: Define the relationship to be a ManyToOne.

public class
MultitenantPrimaryKeyMapping

Purpose: Maps a multitenant property to the corresponding database field type.

public abstract class
ObjectReferenceMapping

Purpose: Abstract class for 1:1, variable 1:1 and reference mappings

public class
OneToManyMapping

Purpose: This mapping is used to represent the typical RDBMS relationship between a single source object and collection of target objects; where, on the database, the target objects have references (foreign keys) to the source object.

public class
OneToOneMapping

Purpose: One to one mappings are used to represent a pointer references between two java objects.

public class
PropertyAssociation

Purpose: Generic association object.

public class
RelationTableMechanism

Purpose: Contains relation table functionality that was originally defined in ManyToManyMapping and now is shared with OneToOneMapping.

public class
TransformationMapping

Purpose: A transformation mapping is used for a specialized translation between how a value is represented in Java and its representation on the databae.

public class
TypedAssociation

Purpose: Generic association object.

public class
UnidirectionalOneToManyMapping

Purpose: UnidirectionalOneToManyMapping doesn't have 1:1 back reference mapping.

public class
VariableOneToOneMapping

Purpose: Variable one to one mappings are used to represent a pointer references between a java object and an implementer of an interface.