public interface JDBCEncoder
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
)
JDBCEncoderImpl
,
JDBCType
,
SQLType
Modifier and Type | Method and Description |
---|---|
Object |
encode(JsonArray input,
int pos,
JDBCColumnDescriptorProvider provider)
Convert Java input value to SQL value
|
Object |
encode(Tuple input,
int pos,
JDBCColumnDescriptorProvider provider) |
Object encode(JsonArray input, int pos, JDBCColumnDescriptorProvider provider) throws SQLException
input
- array inputpos
- column positionprovider
- JDBCType providerSQLException
- if any error when convertJDBCColumnDescriptorProvider
Object encode(Tuple input, int pos, JDBCColumnDescriptorProvider provider) throws SQLException
SQLException
Copyright © 2023 Eclipse. All rights reserved.