Record Class StaticDataAttributeImpl

java.lang.Object
java.lang.Record
overit.geocall.edm.model.StaticDataAttributeImpl
Record Components:
name - String about the name of the static column of a table.
table - String about the name of the table related to this static data attribute.
All Implemented Interfaces:
Serializable, BaseDataAttribute

public record StaticDataAttributeImpl(String name, String table) extends Record implements BaseDataAttribute
BaseDataAttribute implementation about a static data attribute, i.e. a data attribute related to a static column of a table.
See Also:
  • Constructor Details

    • StaticDataAttributeImpl

      public StaticDataAttributeImpl(String name, String table)
      Creates an instance of a StaticDataAttributeImpl record class.
      Parameters:
      name - the value for the name record component
      table - the value for the table record component
  • Method Details

    • getName

      public String getName()
      Description copied from interface: BaseDataAttribute
      Retrieves the name of the data attribute.
      Specified by:
      getName in interface BaseDataAttribute
      Returns:
      The name of the attribute.
    • getType

      public overit.geocall.edm.model.datatypes.DataType<?,?> getType()
      Description copied from interface: BaseDataAttribute
      Retrieves the data type of the attribute.
      Specified by:
      getType in interface BaseDataAttribute
      Returns:
      The data type of the attribute.
    • isStatic

      public boolean isStatic()
      Description copied from interface: BaseDataAttribute
      Returns true in case this BaseDataAttribute is about a static data attribute; false otherwise.
      Specified by:
      isStatic in interface BaseDataAttribute
      Returns:
      true in case this BaseDataAttribute is about a static data attribute; false otherwise.
    • getTable

      public String getTable()
      Returns a String about the name of the table related to this static data attribute.
      Returns:
      String about the name of the table related to this static data attribute.
    • getFullName

      public String getFullName()
      Description copied from interface: BaseDataAttribute
      Returns a String about the full data attribute name, i.e. <extension column>.BaseDataAttribute.getName() in case of extended attribute, or <table>.BaseDataAttribute.getName() in case of {static data attribute}.
      Specified by:
      getFullName in interface BaseDataAttribute
      Returns:
      a String about the full data attribute name, i.e. <extension column>.BaseDataAttribute.getName() in case of extended attribute, or <table>.BaseDataAttribute.getName() in case of {static data attribute}.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • table

      public String table()
      Returns the value of the table record component.
      Returns:
      the value of the table record component