Interface MappingElement<T>

Type Parameters:
T - The type returned
All Superinterfaces:
TupleElement<T>
All Known Implementing Classes:
ColumnMapping, ConstructorMapping, EntityMapping

public sealed interface MappingElement<T> extends TupleElement<T> permits EntityMapping<T>, ColumnMapping<T>, ConstructorMapping<T>
Supertype of objects which map a column or columns of a JDBC ResultSet to a Java type returned by the query. In particular, a CompoundMapping or TupleMapping packages a list of MappingElements.
Since:
4.0
  • Method Details

    • withAlias

      @Nonnull MappingElement<T> withAlias(@Nonnull String alias)
      Specify an alias for this element of the result set.
      Parameters:
      alias - The alias