Module spring.data.jdbc
Class AbstractJdbcQuery
java.lang.Object
org.springframework.data.jdbc.repository.query.AbstractJdbcQuery
- All Implemented Interfaces:
RepositoryQuery
- Direct Known Subclasses:
PartTreeJdbcQuery,StringBasedJdbcQuery
Base class for queries based on a repository method. It holds the infrastructure for executing a query and knows how
to execute a query based on the return type of the method. How to construct the query is left to subclasses.
- Since:
- 2.0
- Author:
- Jens Schauder, Kazuki Shimizu, Oliver Gierke, Maciej Walkowiak, Mark Paluch, Dennis Effing, Mikhail Polivakha
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic interfaceFactory to create aRowMapperfor a given class. -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>resolveTypeToRead(ResultProcessor resultProcessor) Obtain the result type to read fromResultProcessor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.repository.query.RepositoryQuery
execute
-
Method Details
-
getQueryMethod
- Specified by:
getQueryMethodin interfaceRepositoryQuery
-
resolveTypeToRead
Obtain the result type to read fromResultProcessor.- Parameters:
resultProcessor- theResultProcessorused to determine the result type. Must not be null.- Returns:
- the type that should get loaded from the database before it gets converted into the actual return type of a method. Guaranteed to be not null.
-