Class NavigationPropertyAbstract<P>

java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.model.property.PropertyAbstract<P>
de.fraunhofer.iosb.ilt.frostclient.model.property.NavigationPropertyAbstract<P>
Type Parameters:
P - The entityType of the value of the property.
All Implemented Interfaces:
Annotatable, Property<P>, NavigationProperty<P>, Comparable<Property<?>>
Direct Known Subclasses:
NavigationPropertyEntity, NavigationPropertyEntitySet

public abstract class NavigationPropertyAbstract<P> extends PropertyAbstract<P> implements NavigationProperty<P>
  • Constructor Details

    • NavigationPropertyAbstract

      protected NavigationPropertyAbstract(String propertyName, boolean isSet)
  • Method Details

    • setEntityType

      public void setEntityType(EntityType entityType)
    • getInverse

      public NavigationPropertyAbstract getInverse()
      Description copied from interface: NavigationProperty
      Get the inverse of this NavigationProperty.
      Specified by:
      getInverse in interface NavigationProperty<P>
      Returns:
      The inverse of this NavigationProperty, or null if no inverse exists.
    • setInverse

      public final void setInverse(NavigationPropertyAbstract inverse)
      Set the inverse to the given NP. Does not set the inverse of the given NP to this.
      Parameters:
      inverse - The inverse to set.
    • setInverses

      public final void setInverses(NavigationPropertyAbstract inverse)
      Set the inverse of this NP to to given NP, and set the inverse of the given NP to this NP.
      Parameters:
      inverse - The inverse to set.
    • getEntityType

      public EntityType getEntityType()
      Description copied from interface: NavigationProperty
      The entity type this property links to.
      Specified by:
      getEntityType in interface NavigationProperty<P>
      Returns:
      The entity type this property links to.
    • isEntitySet

      public boolean isEntitySet()
      Description copied from interface: NavigationProperty
      flag indicating this navigation property is a Set.
      Specified by:
      isEntitySet in interface NavigationProperty<P>
      Returns:
      true if this navigation property is a Set.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object