Class Entity

java.lang.Object
skadistats.clarity.model.Entity

public class Entity extends Object
  • Constructor Details

    • Entity

      public Entity(int index, int serial, int handle, DTClass dtClass)
  • Method Details

    • getIndex

      public int getIndex()
    • getSerial

      public int getSerial()
    • getHandle

      public int getHandle()
    • getDtClass

      public DTClass getDtClass()
    • isExistent

      public boolean isExistent()
    • setExistent

      public void setExistent(boolean existent)
    • isActive

      public boolean isActive()
    • setActive

      public void setActive(boolean active)
    • getState

      public EntityState getState()
    • setState

      public void setState(EntityState state)
    • hasProperty

      public boolean hasProperty(String property)
      Check if this entity contains the given property.
      Parameters:
      property - Name of the property
      Returns:
      True, if and only if the given property is present in this entity
    • hasProperties

      public boolean hasProperties(String... properties)
      Check if this entity contains all of the given properties.
      Parameters:
      properties - Names of the properties
      Returns:
      True, if and only if the given properties are present in this entity
    • getProperty

      public <T> T getProperty(String property)
    • getPropertyForFieldPath

      public <T> T getPropertyForFieldPath(FieldPath fp)
    • toString

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

      public long getUid()
    • uid

      public static long uid(int dtClassId, int handle)