Interface JDBCEncoder
- All Known Implementing Classes:
JDBCEncoderImpl
public interface JDBCEncoder
Represents for JDBC encoder from Java value to SQL value
The default encoder provides the best efforts to convert Java type to SQL type as JDBC 4.2 spec.
You can replace it to adapt to a specific SQL driver by creating your owns then includes in the SPI file
(META-INF/services/io.vertx.ext.jdbc.spi.JDBCEncoder)
- Since:
- 4.2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionencode(JsonArray input, int pos, JDBCColumnDescriptorProvider provider) Convert Java input value to SQL valueencode(Tuple input, int pos, JDBCColumnDescriptorProvider provider)
-
Method Details
-
encode
Convert Java input value to SQL value- Parameters:
input- array inputpos- column positionprovider- JDBCType provider- Returns:
- SQL value
- Throws:
SQLException- if any error when convert- See Also:
-
encode
- Throws:
SQLException
-