Interface DuplicateColumnHandler

All Known Implementing Classes:
ThrowingDuplicateColumnHandler

public interface DuplicateColumnHandler
A handler for columns that are duplicated in a result set.

This interface defines how to handle situations where the same column name appears multiple times in a result set. Implementations can choose to ignore duplicates, throw exceptions, or handle them in custom ways.

The default implementation does nothing, effectively ignoring duplicate columns.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    handle(Query query, String duplicateColumnName)
    Handles a duplicate column found in a result set.
  • Method Details

    • handle

      default void handle(Query query, String duplicateColumnName)
      Handles a duplicate column found in a result set.
      Parameters:
      query - the query being executed
      duplicateColumnName - the name of the duplicate column
      Throws:
      DuplicateColumnException - if the implementation chooses to reject duplicate columns