- 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.
-
Method Summary
-
Method Details
-
handle
Handles a duplicate column found in a result set.- Parameters:
query- the query being executedduplicateColumnName- the name of the duplicate column- Throws:
DuplicateColumnException- if the implementation chooses to reject duplicate columns
-