Interface JPAEdmPropertyView

  • All Superinterfaces:
    JPAEdmBaseView

    public interface JPAEdmPropertyView
    extends JPAEdmBaseView
    A view on Java Persistence Entity Attributes and EDM properties. Java Persistence Attributes of type
    1. embedded ID - are converted into EDM keys
    2. ID - are converted into EDM keys
    3. attributes - are converted into EDM properties
    4. embeddable type - are converted into EDM complex properties
    5. relationships - are converted into Associations/Navigation properties

    The implementation of the view provides access to EDM properties for a given JPA EDM entity type. The view acts as a container for consistent list of EDM properties of an EDM entity type. EDM property is consistent only if there exists at least one property in the entity type and there is at least one key property.

    @org.apache.olingo.odata2.DoNotImplement

    See Also:
    JPAEdmKeyView, JPAEdmNavigationPropertyView
    • Method Detail

      • getEdmSimpleProperty

        SimpleProperty getEdmSimpleProperty()
        The method returns a simple EDM property.
        Returns:
        an instance of type SimpleProperty
      • getJPAEdmKeyView

        JPAEdmKeyView getJPAEdmKeyView()
        The method returns a JPA EDM key view.
        Returns:
        an instance of type JPAEdmKeyView
      • getEdmPropertyList

        List<Property> getEdmPropertyList()
        The method returns a list of Properties for the given Entity Type.
        Returns:
        a list of Property
      • getJPAAttribute

        javax.persistence.metamodel.Attribute<?,​?> getJPAAttribute()
        The method returns a JPA Attribute for the given JPA entity type.
        Returns:
        an instance of type <?, ?>
      • getJPAReferencedAttribute

        javax.persistence.metamodel.Attribute<?,​?> getJPAReferencedAttribute()
        The method returns a JPA Attribute referenced by a JPA Attribute in the JoinColumn annotation for the given JPA entity type .
        Returns:
        an instance of type <?, ?>
      • getJPAJoinColumns

        List<String[]> getJPAJoinColumns()
        The method returns a list of JPA Join Column Annotations for the given JPA Attribute
        Returns:
        a list of Array of Strings. First element in the Array represents the join column name and the second element in the array represents the referencedColumn name