Class Entity

java.lang.Object
overit.geocall.edm.model.Entity
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AccountEntity, AccountTypeEntity, AssetEntity, AssetTypeEntity, MaterialEntity, ResourceEntity, UserEntity, UserTypeEntity, WorkOrderHeaderEntity, WorkOrderOperationEntity, WorkOrderOperationTypeEntity, WorkOrderTypeEntity

public abstract class Entity extends Object implements Serializable
An abstract class representing a data entity model in the Entity-Data-Model (EDM).
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Useful annotation for marking an entity as anonymous, meaning without a primary key field.
    static @interface 
    Annotation used to set the field of the table containing a code capable of uniquely identifying each record (useful during the export of the system configuration).
    static @interface 
    Annotation used to set a description for the entity
    static @interface 
    Useful annotation for marking an entity as final, meaning it cannot be extended via the EDM framework.
    static @interface 
    Annotation used to set the name of the entity.
    static @interface 
    Annotation used to set the name of the pool.
    static @interface 
    Useful annotation to mark an entity as a system entity, meaning not segregated by company.
    static @interface 
    Annotation used to bind an entity to a specific table.
    static @interface 
    Annotation used to set the TimeZoneResolver.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Returns a String about the acronym value set for this entity.
    Returns a String about the field of the table containing a code capable of uniquely identifying each record (useful during the export of the system configuration).
    Returns a String about the field of the table in which is stored the company ID value associated with the entity model.
    Retrieves the description of the entity model.
    Retrieves the extension column associated with the entity model.
    Returns a String about the primary key field of the associated table.
    Retrieves the custom layer associated with the entity model.
    Retrieves the name of the entity model.
    Retrieves the pool associated with the entity model.
    Retrieves the table associated with the entity model.
    Class<? extends overit.geocall.timezone.service.TimeZoneResolver>
    Retrieves the Class<?
    int
     
    boolean
    Returns true in case this entity has been marked as anonymous; false otherwise.
    boolean
    Returns true in case this entity has been marked as final (meaning it cannot be extended via the EDM framework); false otherwise.
    boolean
    Returns true in case this entity has been marked as a system entity (meaning not segregated by company); false otherwise.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Entity

      protected Entity()
  • Method Details

    • getLayer

      public CustomLayer getLayer()
      Retrieves the custom layer associated with the entity model.
      Returns:
      The custom layer associated with the entity model.
    • getName

      public String getName()
      Retrieves the name of the entity model.
      Returns:
      The name of the entity model, or null if the name annotation is not present.
    • getDescription

      public String getDescription()
      Retrieves the description of the entity model.
      Returns:
      The description of the entity model, or null if the description annotation is not present.
    • getTable

      public String getTable()
      Retrieves the table associated with the entity model.
      Returns:
      The table associated with the entity model, or null if the table annotation is not present.
    • getExtensionColumn

      public String getExtensionColumn()
      Retrieves the extension column associated with the entity model.
      Returns:
      The extension column associated with the entity model, or null if the extension column annotation is not present.
    • getPool

      public String getPool()
      Retrieves the pool associated with the entity model.
      Returns:
      The pool associated with the entity model, or the default value "Pool" if the pool annotation is not present.
    • getTimeZoneResolver

      public Class<? extends overit.geocall.timezone.service.TimeZoneResolver> getTimeZoneResolver()
      Retrieves the Class<? extends TimeZoneResolver associated with the entity model.
      Returns:
      The Class<? extends TimeZoneResolver associated with the entity model.
    • getAcronym

      public String getAcronym()
      Returns a String about the acronym value set for this entity.
      Returns:
      a String about the acronym value set for this entity.
      See Also:
    • isAnonymous

      public boolean isAnonymous()
      Returns true in case this entity has been marked as anonymous; false otherwise.
      Returns:
      true in case this entity has been marked as anonymous; false otherwise.
      See Also:
    • isFinal

      public boolean isFinal()
      Returns true in case this entity has been marked as final (meaning it cannot be extended via the EDM framework); false otherwise.
      Returns:
      true in case this entity has been marked as final (meaning it cannot be extended via the EDM framework); false otherwise.
      See Also:
    • isSystem

      public boolean isSystem()
      Returns true in case this entity has been marked as a system entity (meaning not segregated by company); false otherwise.
      Returns:
      true in case this entity has been marked as a system entity (meaning not segregated by company); false otherwise.
      See Also:
    • getId

      public String getId()
      Returns a String about the primary key field of the associated table.
      Returns:
      a String about the primary key field of the associated table.
    • getCompanyIdField

      public String getCompanyIdField()
      Returns a String about the field of the table in which is stored the company ID value associated with the entity model.
      Returns:
      a String about the field of the table in which is stored the company ID value associated with the entity model.
    • getCode

      public String getCode()
      Returns a String about the field of the table containing a code capable of uniquely identifying each record (useful during the export of the system configuration).
      Returns:
      a String about the field of the table containing a code capable of uniquely identifying each record (useful during the export of the system configuration).
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object