Record Class CatalogDescriptor

java.lang.Object
java.lang.Record
com.onec.metadata.CatalogDescriptor

public record CatalogDescriptor(String logicalName, String displayTitle, String tableName, Class<?> javaClass, int codeLength, boolean hierarchical, boolean autoNumber, String codePrefix, String context, List<String> readRoles, List<String> writeRoles, List<AttributeDescriptor> attributes, List<String> previousNames) extends Record
  • Constructor Details

    • CatalogDescriptor

      public CatalogDescriptor(String logicalName, String displayTitle, String tableName, Class<?> javaClass, int codeLength, boolean hierarchical, boolean autoNumber, String codePrefix, String context, List<String> readRoles, List<String> writeRoles, List<AttributeDescriptor> attributes)
      Backward-compatible constructor for callers predating previousNames.
    • CatalogDescriptor

      public CatalogDescriptor(String logicalName, String displayTitle, String tableName, Class<?> javaClass, int codeLength, boolean hierarchical, boolean autoNumber, String codePrefix, String context, List<String> readRoles, List<String> writeRoles, List<AttributeDescriptor> attributes, List<String> previousNames)
      Creates an instance of a CatalogDescriptor record class.
      Parameters:
      logicalName - the value for the logicalName record component
      displayTitle - the value for the displayTitle record component
      tableName - the value for the tableName record component
      javaClass - the value for the javaClass record component
      codeLength - the value for the codeLength record component
      hierarchical - the value for the hierarchical record component
      autoNumber - the value for the autoNumber record component
      codePrefix - the value for the codePrefix record component
      context - the value for the context record component
      readRoles - the value for the readRoles record component
      writeRoles - the value for the writeRoles record component
      attributes - the value for the attributes record component
      previousNames - the value for the previousNames record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • logicalName

      public String logicalName()
      Returns the value of the logicalName record component.
      Returns:
      the value of the logicalName record component
    • displayTitle

      public String displayTitle()
      Returns the value of the displayTitle record component.
      Returns:
      the value of the displayTitle record component
    • tableName

      public String tableName()
      Returns the value of the tableName record component.
      Returns:
      the value of the tableName record component
    • javaClass

      public Class<?> javaClass()
      Returns the value of the javaClass record component.
      Returns:
      the value of the javaClass record component
    • codeLength

      public int codeLength()
      Returns the value of the codeLength record component.
      Returns:
      the value of the codeLength record component
    • hierarchical

      public boolean hierarchical()
      Returns the value of the hierarchical record component.
      Returns:
      the value of the hierarchical record component
    • autoNumber

      public boolean autoNumber()
      Returns the value of the autoNumber record component.
      Returns:
      the value of the autoNumber record component
    • codePrefix

      public String codePrefix()
      Returns the value of the codePrefix record component.
      Returns:
      the value of the codePrefix record component
    • context

      public String context()
      Returns the value of the context record component.
      Returns:
      the value of the context record component
    • readRoles

      public List<String> readRoles()
      Returns the value of the readRoles record component.
      Returns:
      the value of the readRoles record component
    • writeRoles

      public List<String> writeRoles()
      Returns the value of the writeRoles record component.
      Returns:
      the value of the writeRoles record component
    • attributes

      public List<AttributeDescriptor> attributes()
      Returns the value of the attributes record component.
      Returns:
      the value of the attributes record component
    • previousNames

      public List<String> previousNames()
      Returns the value of the previousNames record component.
      Returns:
      the value of the previousNames record component