T
- Type of objects.@FunctionalInterface public interface Conversion<T>
The convert(T)
method defines a mapping
of objects to database column values.
Given an object, the
method should return an array
of objects, such that
each array position defines a value for a database column.
The types of objects in the array must be compliant
with the JDBC constraints for mapping Java to SQL types
(JDBC 4.x Specification,
Appendix B / "Data Type Conversion Tables"), and any
additional conventions for the database driver in use.
Modifier and Type | Method and Description |
---|---|
Object[] |
convert(T object)
Convert object to row format.
|
Copyright © 2016–2021 JDBDT. All rights reserved.