Class EntityType

java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.model.EntityType
All Implemented Interfaces:
Comparable<EntityType>

public class EntityType extends Object implements Comparable<EntityType>
The types of entities.
  • Field Details

    • entityName

      public final String entityName
      The entityName of this entity type as used in URLs.
    • plural

      public final String plural
      The entityName of collections of this entity type as used in URLs.
  • Constructor Details

    • EntityType

      public EntityType(String singular, String plural)
  • Method Details

    • registerProperty

      public EntityType registerProperty(Property property)
    • init

      public void init()
    • getPrimaryKey

      public PrimaryKey getPrimaryKey()
    • getEntityName

      public String getEntityName()
    • getPluralName

      public String getPluralName()
    • getProperty

      public Property getProperty(String name)
    • getEntityProperty

      public EntityPropertyMain getEntityProperty(String name)
    • getNavigationPropertyEntity

      public NavigationPropertyEntity getNavigationPropertyEntity(String name)
    • getNavigationPropertySet

      public NavigationPropertyEntitySet getNavigationPropertySet(String name)
    • getNavigationProperty

      public NavigationPropertyAbstract getNavigationProperty(String name)
    • getPropertySet

      public Set<Property> getPropertySet()
      The Set of PROPERTIES that Entities of this type have.
      Returns:
      The Set of PROPERTIES that Entities of this type have.
    • getEntityProperties

      public Set<EntityPropertyMain> getEntityProperties()
      Get the set of Entity properties.
      Returns:
      The set of Entity properties.
    • hasProperty

      public boolean hasProperty(Property property)
    • getNavigationProperties

      public Set<NavigationProperty> getNavigationProperties()
      Get the set of Navigation properties.
      Returns:
      The set of Navigation properties.
    • getNavigationEntities

      public Set<NavigationPropertyEntity> getNavigationEntities()
      Get the set of Navigation properties pointing to single entities.
      Returns:
      The set of Navigation properties pointing to single entities.
    • getNavigationSets

      public Set<NavigationPropertyEntitySet> getNavigationSets()
      Get the set of Navigation properties pointing to entity sets.
      Returns:
      The set of Navigation properties pointing to entity sets.
    • getModelRegistry

      public ModelRegistry getModelRegistry()
      The ModelRegistry this EntityType is registered on.
      Returns:
      the modelRegistry
    • setModelRegistry

      public void setModelRegistry(ModelRegistry modelRegistry)
      The ModelRegistry this EntityType is registered on.
      Parameters:
      modelRegistry - the modelRegistry to set
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(EntityType o)
      Specified by:
      compareTo in interface Comparable<EntityType>
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object