Java Code Examples for org.springframework.data.repository.query.SpelQueryContext.SpelExtractor#getQueryString()
The following examples show how to use
org.springframework.data.repository.query.SpelQueryContext.SpelExtractor#getQueryString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReactiveStringBasedNeo4jQuery.java From sdn-rx with Apache License 2.0 | 5 votes |
private ReactiveStringBasedNeo4jQuery(ReactiveNeo4jOperations neo4jOperations, Neo4jMappingContext mappingContext, QueryMethodEvaluationContextProvider evaluationContextProvider, Neo4jQueryMethod queryMethod, String cypherTemplate, Neo4jQueryType queryType) { super(neo4jOperations, mappingContext, queryMethod, queryType); SpelExtractor spelExtractor = SPEL_QUERY_CONTEXT.parse(cypherTemplate); this.spelEvaluator = new SpelEvaluator(evaluationContextProvider, queryMethod.getParameters(), spelExtractor); this.cypherQuery = spelExtractor.getQueryString(); }
Example 2
Source File: StringBasedNeo4jQuery.java From sdn-rx with Apache License 2.0 | 5 votes |
private StringBasedNeo4jQuery(Neo4jOperations neo4jOperations, Neo4jMappingContext mappingContext, QueryMethodEvaluationContextProvider evaluationContextProvider, Neo4jQueryMethod queryMethod, String cypherTemplate, Neo4jQueryType queryType) { super(neo4jOperations, mappingContext, queryMethod, queryType); SpelExtractor spelExtractor = SPEL_QUERY_CONTEXT.parse(cypherTemplate); this.spelEvaluator = new SpelEvaluator(evaluationContextProvider, queryMethod.getParameters(), spelExtractor); this.cypherQuery = spelExtractor.getQueryString(); }