Interface AdapterMapping<T>
- Type Parameters:
T
- the type of object to be adapted
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The AdapterMapping interface represents a functional interface used to map Java objects to a specific SQL data type
and perform the necessary conversions when binding the objects to a PreparedStatement.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(PreparedStatement stmt, int index, T value) Applies the given value to a PreparedStatement at the specified index using the provided mapping.
-
Method Details
-
apply
Applies the given value to a PreparedStatement at the specified index using the provided mapping.- Parameters:
stmt
- the PreparedStatement to apply the value toindex
- the index at which to apply the valuevalue
- the value to be applied- Throws:
SQLException
- if a database access error occurs
-