Class JdbcQueryCreator

java.lang.Object
org.springframework.data.repository.query.parser.AbstractQueryCreator<ParametrizedQuery, org.springframework.data.relational.core.query.Criteria>
org.springframework.data.relational.repository.query.RelationalQueryCreator<ParametrizedQuery>
org.springframework.data.jdbc.repository.query.JdbcQueryCreator
Direct Known Subclasses:
JdbcCountQueryCreator

public class JdbcQueryCreator extends org.springframework.data.relational.repository.query.RelationalQueryCreator<ParametrizedQuery>
Implementation of RelationalQueryCreator that creates ParametrizedQuery from a PartTree.
Since:
2.0
Author:
Mark Paluch, Jens Schauder, Myeonghyeon Lee, Diego Krupitza, Jin Hyuk Cho
  • Constructor Details

    • JdbcQueryCreator

      public JdbcQueryCreator(PartTree tree, JdbcConverter converter, org.springframework.data.relational.core.dialect.Dialect dialect, JdbcQueryMethod queryMethod, org.springframework.data.relational.repository.query.RelationalParameterAccessor accessor, ReturnedType returnedType)
      Creates new instance of this class with the given PartTree, JdbcConverter, Dialect, JdbcQueryMethod and RelationalParameterAccessor.
      Parameters:
      tree - part tree, must not be null.
      converter - must not be null.
      dialect - must not be null.
      accessor - parameter metadata provider, must not be null.
      returnedType - the ReturnedType to be returned by the query. Must not be null.
      Since:
      4.0
    • JdbcQueryCreator

      public JdbcQueryCreator(org.springframework.data.relational.core.mapping.RelationalMappingContext context, PartTree tree, JdbcConverter converter, org.springframework.data.relational.core.dialect.Dialect dialect, org.springframework.data.relational.repository.query.RelationalEntityMetadata<?> entityMetadata, org.springframework.data.relational.repository.query.RelationalParameterAccessor accessor, boolean isSliceQuery, ReturnedType returnedType, Optional<org.springframework.data.relational.repository.Lock> lockMode, SqlGeneratorSource sqlGeneratorSource)
      Creates new instance of this class with the given PartTree, JdbcConverter, Dialect, RelationalEntityMetadata and RelationalParameterAccessor.
      Parameters:
      context - the mapping context. Must not be null.
      tree - part tree, must not be null.
      converter - must not be null.
      dialect - must not be null.
      entityMetadata - relational entity metadata, must not be null.
      accessor - parameter metadata provider, must not be null.
      isSliceQuery - flag denoting if the query returns a Slice.
      returnedType - the ReturnedType to be returned by the query. Must not be null.
      lockMode - lock mode to be used for the query.
      sqlGeneratorSource - the source providing SqlGenerator instances for generating SQL. Must not be null
      Since:
      4.0
  • Method Details