Class FirestoreQueryLookupStrategy
java.lang.Object
com.google.cloud.spring.data.firestore.repository.support.FirestoreQueryLookupStrategy
- All Implemented Interfaces:
org.springframework.data.repository.query.QueryLookupStrategy
public class FirestoreQueryLookupStrategy
extends Object
implements org.springframework.data.repository.query.QueryLookupStrategy
The class that decides what type of Query Method to use. For Firestore it is always just
PartTree.
- Since:
- 1.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.repository.query.QueryLookupStrategy
org.springframework.data.repository.query.QueryLookupStrategy.Key
-
Constructor Summary
ConstructorDescriptionFirestoreQueryLookupStrategy
(FirestoreTemplate firestoreTemplate) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.repository.query.RepositoryQuery
resolveQuery
(Method method, org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata, org.springframework.data.projection.ProjectionFactory projectionFactory, org.springframework.data.repository.core.NamedQueries namedQueries)
-
Constructor Details
-
FirestoreQueryLookupStrategy
Constructor.- Parameters:
firestoreTemplate
- the template that will be used to execute queries.
-
-
Method Details
-
resolveQuery
public org.springframework.data.repository.query.RepositoryQuery resolveQuery(Method method, org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata, org.springframework.data.projection.ProjectionFactory projectionFactory, org.springframework.data.repository.core.NamedQueries namedQueries) - Specified by:
resolveQuery
in interfaceorg.springframework.data.repository.query.QueryLookupStrategy
-