Interface SqlJsonColumnReader<S>

Type Parameters:
S - the result set type
All Superinterfaces:
JsonColumnReader<S>

public interface SqlJsonColumnReader<S> extends JsonColumnReader<S>
The SQL json column reader. If some dialect has specific logic for reading and converting JSON columns then it can extend this class and be injected into the context and SQL operations.
Since:
4.0.0
Author:
radovanradic
  • Field Summary

    Fields inherited from interface io.micronaut.data.runtime.mapper.JsonColumnReader

    NULL_VALUE
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    supportsRead(SqlPreparedQuery<?,?> sqlPreparedQuery)
    Gets an indicator telling whether reader can interpret results from the SQL prepared query.
    default boolean
    supportsResultSetType(Class<S> resultSetType)
    Gets an indicator telling whether SQL json column reader can read from given result set.

    Methods inherited from interface io.micronaut.data.runtime.mapper.JsonColumnReader

    getJsonMapper, readJsonColumn
  • Method Details

    • supportsRead

      default boolean supportsRead(SqlPreparedQuery<?,?> sqlPreparedQuery)
      Gets an indicator telling whether reader can interpret results from the SQL prepared query.
      Parameters:
      sqlPreparedQuery - the SQL prepared query
      Returns:
      true if reader can interpret results from the query
    • supportsResultSetType

      default boolean supportsResultSetType(Class<S> resultSetType)
      Gets an indicator telling whether SQL json column reader can read from given result set. The default one should as it reads using ResultReader that should match with parametrized result set type.
      Parameters:
      resultSetType - the result set type
      Returns:
      true if it can read from given result set type