Class JdbcQueryCreator
java.lang.Object
org.springframework.data.repository.query.parser.AbstractQueryCreator<ParametrizedQuery, Criteria>
org.springframework.data.relational.repository.query.RelationalQueryCreator<ParametrizedQuery>
org.springframework.data.jdbc.repository.query.JdbcQueryCreator
- Direct Known Subclasses:
JdbcCountQueryCreator
- Since:
- 2.0
- Author:
- Mark Paluch, Jens Schauder, Myeonghyeon Lee, Diego Krupitza
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcQueryCreator(RelationalMappingContext context, PartTree tree, JdbcConverter converter, Dialect dialect, RelationalEntityMetadata<?> entityMetadata, RelationalParameterAccessor accessor, boolean isSliceQuery, ReturnedType returnedType, Optional<Lock> lockMode, SqlGeneratorSource sqlGeneratorSource) Creates new instance of this class with the givenPartTree,JdbcConverter,Dialect,RelationalEntityMetadataandRelationalParameterAccessor.JdbcQueryCreator(PartTree tree, JdbcConverter converter, Dialect dialect, JdbcQueryMethod queryMethod, RelationalParameterAccessor accessor, ReturnedType returnedType) Creates new instance of this class with the givenPartTree,JdbcConverter,Dialect,JdbcQueryMethodandRelationalParameterAccessor. -
Method Summary
Methods inherited from class RelationalQueryCreator
and, create, getParameterMetadataProvider, or, validateMethods inherited from class AbstractQueryCreator
createQuery, createQuery
-
Constructor Details
-
JdbcQueryCreator
public JdbcQueryCreator(PartTree tree, JdbcConverter converter, Dialect dialect, JdbcQueryMethod queryMethod, RelationalParameterAccessor accessor, ReturnedType returnedType) Creates new instance of this class with the givenPartTree,JdbcConverter,Dialect,JdbcQueryMethodandRelationalParameterAccessor.- 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- theReturnedTypeto be returned by the query. Must not be null.- Since:
- 4.0
-
JdbcQueryCreator
public JdbcQueryCreator(RelationalMappingContext context, PartTree tree, JdbcConverter converter, Dialect dialect, RelationalEntityMetadata<?> entityMetadata, RelationalParameterAccessor accessor, boolean isSliceQuery, ReturnedType returnedType, Optional<Lock> lockMode, SqlGeneratorSource sqlGeneratorSource) Creates new instance of this class with the givenPartTree,JdbcConverter,Dialect,RelationalEntityMetadataandRelationalParameterAccessor.- 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 aSlice.returnedType- theReturnedTypeto 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
-
complete
- Specified by:
completein classAbstractQueryCreator<ParametrizedQuery, Criteria>- Parameters:
criteria-Criteriato be applied to querysort- sort option to be applied to query, must not be null.- Returns:
- instance of
ParametrizedQuery
-