use of org.apache.ignite.internal.jdbc.thin.JdbcThinParameterMetadata in project ignite by apache.
the class JdbcPreparedStatement method parameterMetaData.
/**
* Fetches parameters metadata of the specified query.
*/
private ParameterMetaData parameterMetaData() throws SQLException {
SqlFieldsQueryEx qry = new SqlFieldsQueryEx(sql, null);
setupQuery(qry);
try {
List<JdbcParameterMeta> params = conn.ignite().context().query().getIndexing().parameterMetaData(conn.schemaName(), qry);
return new JdbcThinParameterMetadata(params);
} catch (IgniteSQLException ex) {
throw ex.toJdbcException();
}
}
Aggregations