Package guru.interlis.convconf.lm
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 Summary
ConstructorsConstructorDescriptionDataDecl(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 aDataDeclrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the value of thealiasesrecord component.Returns the value of theannexedSourcesrecord component.Returns the value of theannexeTargetsrecord component.Returns the value of theclassNamerecord component.columns()Returns the value of thecolumnsrecord component.Returns the value of theconversionsrecord component.Returns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidentColumnrecord component.joins()Returns the value of thejoinsrecord component.name()Returns the value of thenamerecord component.nestings()Returns the value of thenestingsrecord component.Returns the value of thesourceTablerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewhereEqualsrecord component.Returns the value of thewithBlocksrecord component.
-
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 aDataDeclrecord class.- Parameters:
name- the value for thenamerecord componentsourceTable- the value for thesourceTablerecord componentclassName- the value for theclassNamerecord componentdirection- the value for thedirectionrecord componentidentColumn- the value for theidentColumnrecord componentwhereEquals- the value for thewhereEqualsrecord componentconversions- the value for theconversionsrecord componentaliases- the value for thealiasesrecord componentwithBlocks- the value for thewithBlocksrecord componentannexeTargets- the value for theannexeTargetsrecord componentannexedSources- the value for theannexedSourcesrecord componentjoins- the value for thejoinsrecord componentnestings- the value for thenestingsrecord componentcolumns- the value for thecolumnsrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
sourceTable
Returns the value of thesourceTablerecord component.- Returns:
- the value of the
sourceTablerecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
identColumn
Returns the value of theidentColumnrecord component.- Returns:
- the value of the
identColumnrecord component
-
whereEquals
Returns the value of thewhereEqualsrecord component.- Returns:
- the value of the
whereEqualsrecord component
-
conversions
Returns the value of theconversionsrecord component.- Returns:
- the value of the
conversionsrecord component
-
aliases
Returns the value of thealiasesrecord component.- Returns:
- the value of the
aliasesrecord component
-
withBlocks
Returns the value of thewithBlocksrecord component.- Returns:
- the value of the
withBlocksrecord component
-
annexeTargets
Returns the value of theannexeTargetsrecord component.- Returns:
- the value of the
annexeTargetsrecord component
-
annexedSources
Returns the value of theannexedSourcesrecord component.- Returns:
- the value of the
annexedSourcesrecord component
-
joins
Returns the value of thejoinsrecord component.- Returns:
- the value of the
joinsrecord component
-
nestings
Returns the value of thenestingsrecord component.- Returns:
- the value of the
nestingsrecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-