Interface JPAEdmReferentialConstraintRoleView

  • All Superinterfaces:
    JPAEdmBaseView

    public interface JPAEdmReferentialConstraintRoleView
    extends JPAEdmBaseView

    A view on Java Persistence Entity Join Column's "name" and "referenced column name" attributes and Entity Data Model Referential Constraint's dependent and principal roles respectively. Each java persistence entity with properties annotated with Join Columns are transformed into Referential constraints and Referential constraint roles.

    The implementation of the view provides access to EDM referential constraint roles created from Java Persistence Entity Join Columns. The implementation acts as a container for EDM referential constraint roles. A referential constraint role is consistent only if the principal role and dependent roles can be created from JPA Entity relationships.

    See Also:
    JPAEdmReferentialConstraintView
    • Method Detail

      • getJPAColumnName

        String getJPAColumnName()
        The method returns the name of JPA attribute's column name (annotated with @Column). The returned Column Name acts as the PRINCIPAL entity type.
        Returns:
        name of JPA Column name
      • getEdmEntityTypeName

        String getEdmEntityTypeName()
        The method returns the EDM entity type name that holds the relationship/referential constraint. The entity type that acts as a DEPENDENT entity type.
        Returns:
        name of EDM entity type
      • getEdmAssociationName

        String getEdmAssociationName()
        The method returns the EDM association name.
        Returns:
        name of EDM association
      • isExists

        boolean isExists()
        The method tells if there exists a valid referential constraint for a given association.
        Returns:
        true - if valid referential constraint exits else false