Uses of Interface
jakarta.persistence.sql.MappingElement
Packages that use MappingElement
Package
Description
Defines an API for the programmatic definition of SQL result set
mappings to Java classes.
-
Uses of MappingElement in jakarta.persistence.sql
Classes in jakarta.persistence.sql that implement MappingElementModifier and TypeClassDescriptionfinal recordMaps a column of a JDBCResultSetto a scalar value in the result returned by the query.final recordMaps columns of a JDBCResultSetto parameters of the constructor of a Java class.final recordMethods in jakarta.persistence.sql that return MappingElementModifier and TypeMethodDescriptionMappingElement<?>[]ConstructorMapping.arguments()Returns the value of theargumentsrecord component.MappingElement<?>[]CompoundMapping.elements()Returns the value of theelementsrecord component.MappingElement<?>[]TupleMapping.elements()Returns the value of theelementsrecord component.Specify an alias for this element of the result set.Methods in jakarta.persistence.sql with parameters of type MappingElementModifier and TypeMethodDescriptionstatic CompoundMappingResultSetMapping.compound(MappingElement<?>... elements) Construct a mapping which packages a tuple of values as a Java array.static <T> ConstructorMapping<T> ResultSetMapping.constructor(Class<T> targetClass, MappingElement<?>... arguments) Construct a mapping to a constructor of a Java class.static CompoundMappingCompoundMapping.of(MappingElement<?>... elements) Construct a new instance.static <T> ConstructorMapping<T> ConstructorMapping.of(Class<T> targetClass, MappingElement<?>... arguments) Construct a new instance.static TupleMappingTupleMapping.of(MappingElement<?>... elements) Construct a new instance.static TupleMappingResultSetMapping.tuple(MappingElement<?>... elements) Construct a mapping which packages a tuple of values as an instance ofTuple.Constructors in jakarta.persistence.sql with parameters of type MappingElementModifierConstructorDescriptionCompoundMapping(MappingElement<?>[] elements) Creates an instance of aCompoundMappingrecord class.ConstructorMapping(Class<T> targetClass, MappingElement<?>[] arguments, String alias) Creates an instance of aConstructorMappingrecord class.TupleMapping(MappingElement<?>[] elements) Creates an instance of aTupleMappingrecord class.