Interface JPAEdmReferentialConstraintView

All Superinterfaces:
JPAEdmBaseView

public interface JPAEdmReferentialConstraintView extends JPAEdmBaseView

A view on Java Persistence Entity Join Columns and Entity Data Model Referential Constraint. Each java persistence entity with properties annotated with Join Columns are transformed into Referential constraints.

The implementation of the view provides access to EDM referential constraint created from Java Persistence Entity Join Columns. The implementation acts as a container for EDM referential constraint. A referential constraint is said to be consistent only if referential constraint role is consistent.


@org.apache.olingo.odata2.DoNotImplement
See Also:
  • Method Details

    • getEdmReferentialConstraint

      ReferentialConstraint getEdmReferentialConstraint()
      The method returns EDM referential constraint created from Java persistence Entity Join Columns.
      Returns:
      an instance of type ReferentialConstraint
    • isExists

      boolean isExists()
      The method returns if a valid referential constraint exists for a given EDM association. If there exists a JPA entity relationship with join column having a valid "Name" and "ReferenceColumnName", that can be mapped to EDM properties in dependent and source EDM entities respectively then a valid EDM referential constraint exists.
      Returns:
      true if there exists a valid referential constraint else false.
    • getEdmRelationShipName

      String getEdmRelationShipName()
      The method returns the name of EDM Association.
      Returns:
      name of an EDM association