org.springframework.data.jpa.provider.QueryExtractor Java Examples

The following examples show how to use org.springframework.data.jpa.provider.QueryExtractor. 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: GenericQueryLookupStrategy.java    From genericdao with Artistic License 2.0 5 votes vote down vote up
public GenericQueryLookupStrategy(EntityManager entityManager, SqlSessionTemplate sqlSessionTemplate  ,
                                  Key key, QueryExtractor extractor, EvaluationContextProvider evaluationContextProvider) {
    this.jpaQueryLookupStrategy = JpaQueryLookupStrategy.create(entityManager, key, extractor, evaluationContextProvider);
    this.extractor = extractor;
    this.entityManager = entityManager;
    this.sqlSessionTemplate = sqlSessionTemplate ;
}
 
Example #2
Source File: EntityGraphAwareJpaQueryMethod.java    From spring-data-jpa-entity-graph with MIT License 5 votes vote down vote up
protected EntityGraphAwareJpaQueryMethod(
    Method method,
    RepositoryMetadata metadata,
    ProjectionFactory factory,
    QueryExtractor extractor) {
  super(method, metadata, factory, extractor);
}
 
Example #3
Source File: TemplateQueryLookupStrategy.java    From spring-data-jpa-extra with Apache License 2.0 4 votes vote down vote up
public TemplateQueryLookupStrategy(EntityManager entityManager, Key key, QueryExtractor extractor,
                                   EvaluationContextProvider evaluationContextProvider) {
    this.jpaQueryLookupStrategy = JpaQueryLookupStrategy.create(entityManager, key, extractor, evaluationContextProvider);
    this.extractor = extractor;
    this.entityManager = entityManager;
}
 
Example #4
Source File: TemplateQueryLookupStrategy.java    From spring-data-jpa-extra with Apache License 2.0 4 votes vote down vote up
public static QueryLookupStrategy create(EntityManager entityManager, Key key, QueryExtractor extractor,
                                         EvaluationContextProvider evaluationContextProvider) {
    return new TemplateQueryLookupStrategy(entityManager, key, extractor, evaluationContextProvider);
}
 
Example #5
Source File: GenericQueryLookupStrategy.java    From genericdao with Artistic License 2.0 4 votes vote down vote up
public static QueryLookupStrategy create(EntityManager entityManager, SqlSessionTemplate sqlSessionTemplate  ,
                                         Key key, QueryExtractor extractor, EvaluationContextProvider evaluationContextProvider) {
    return new GenericQueryLookupStrategy(entityManager , sqlSessionTemplate ,
            key , extractor , evaluationContextProvider);
}
 
Example #6
Source File: EntityGraphAwareJpaQueryMethodFactory.java    From spring-data-jpa-entity-graph with MIT License 4 votes vote down vote up
public EntityGraphAwareJpaQueryMethodFactory(QueryExtractor extractor) {
  this.extractor = extractor;
}