Class FieldColumnSpecBuilderTerminalImpl

java.lang.Object
org.litebridgedb.orm.api.register.FieldColumnSpecBuilderTerminalImpl
All Implemented Interfaces:
FieldColumnSpecBuilderTerminal

public final class FieldColumnSpecBuilderTerminalImpl extends Object implements FieldColumnSpecBuilderTerminal
Final implementation of the FieldColumnSpecBuilderTerminal interface, used to build a FieldColumnSpec instance representing the mapping between a DTO field and its corresponding database column or relationship specification.

This class serves as the terminal step in a fluent API for defining field-to-column mappings within the ORM framework. It combines a FieldSpec, representing the DTO field, with a ColumnMapping, detailing the mapping relationship or column specification.

The build method finalizes the configuration and returns a FieldColumnSpec instance, which encapsulates the field and its corresponding column mapping. Instances of this class are immutable once created.

Constructor: - Requires a FieldSpec defining the DTO field to be mapped. - Requires a ColumnMapping specifying how the field maps to the database.

Implements: - FieldColumnSpecBuilderTerminal, as the final step in the builder pattern for field-to-column mappings.

Thread Safety: - Immutable and thread-safe, as all fields are final and this class performs no mutable operations.

Usage: - This class should only be used as part of the ORM builder framework and not instantiated directly.

  • Constructor Details

    • FieldColumnSpecBuilderTerminalImpl

      public FieldColumnSpecBuilderTerminalImpl(FieldSpec fieldSpec, ColumnMapping columnMapping)
  • Method Details