Record Class DataDecl

java.lang.Object
java.lang.Record
guru.interlis.convconf.lm.DataDecl

public record DataDecl(String name, String sourceTable, String className, MappingDirection direction, String identColumn, Map<String,String> whereEquals, List<ConversionDecl> conversions, List<AliasDecl> aliases, List<WithBlock> withBlocks, List<String> annexeTargets, List<String> annexedSources, List<JoinDecl> joins, List<NestingDecl> nestings, List<ColumnMap> columns) extends Record
Data declaration for one source mapped to one KM class.
  • Constructor Details

    • DataDecl

      public DataDecl(String name, String sourceTable, String className, MappingDirection direction, String identColumn, Map<String,String> whereEquals, List<ConversionDecl> conversions, List<AliasDecl> aliases, List<WithBlock> withBlocks, List<String> annexeTargets, List<String> annexedSources, List<JoinDecl> joins, List<NestingDecl> nestings, List<ColumnMap> columns)
      Creates an instance of a DataDecl record class.
      Parameters:
      name - the value for the name record component
      sourceTable - the value for the sourceTable record component
      className - the value for the className record component
      direction - the value for the direction record component
      identColumn - the value for the identColumn record component
      whereEquals - the value for the whereEquals record component
      conversions - the value for the conversions record component
      aliases - the value for the aliases record component
      withBlocks - the value for the withBlocks record component
      annexeTargets - the value for the annexeTargets record component
      annexedSources - the value for the annexedSources record component
      joins - the value for the joins record component
      nestings - the value for the nestings record component
      columns - the value for the columns 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. 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
    • sourceTable

      public String sourceTable()
      Returns the value of the sourceTable record component.
      Returns:
      the value of the sourceTable record component
    • className

      public String className()
      Returns the value of the className record component.
      Returns:
      the value of the className record component
    • direction

      public MappingDirection direction()
      Returns the value of the direction record component.
      Returns:
      the value of the direction record component
    • identColumn

      public String identColumn()
      Returns the value of the identColumn record component.
      Returns:
      the value of the identColumn record component
    • whereEquals

      public Map<String,String> whereEquals()
      Returns the value of the whereEquals record component.
      Returns:
      the value of the whereEquals record component
    • conversions

      public List<ConversionDecl> conversions()
      Returns the value of the conversions record component.
      Returns:
      the value of the conversions record component
    • aliases

      public List<AliasDecl> aliases()
      Returns the value of the aliases record component.
      Returns:
      the value of the aliases record component
    • withBlocks

      public List<WithBlock> withBlocks()
      Returns the value of the withBlocks record component.
      Returns:
      the value of the withBlocks record component
    • annexeTargets

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

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

      public List<JoinDecl> joins()
      Returns the value of the joins record component.
      Returns:
      the value of the joins record component
    • nestings

      public List<NestingDecl> nestings()
      Returns the value of the nestings record component.
      Returns:
      the value of the nestings record component
    • columns

      public List<ColumnMap> columns()
      Returns the value of the columns record component.
      Returns:
      the value of the columns record component