public PartTreeNeo4jQuery(GraphQueryMethod graphQueryMethod, MetaData metaData, Session session) { super(graphQueryMethod, metaData, session); Class<?> domainType = graphQueryMethod.getEntityInformation().getJavaType(); this.graphQueryMethod = graphQueryMethod; this.tree = new PartTree(graphQueryMethod.getName(), domainType); this.queryTemplate = new TemplatedQueryCreator(this.tree, domainType).createQuery(); }
public AbstractArangoQuery(final ArangoQueryMethod method, final ArangoOperations operations) { Assert.notNull(method, "ArangoQueryMethod must not be null!"); Assert.notNull(operations, "ArangoOperations must not be null!"); this.method = method; this.operations = operations; this.domainClass = method.getEntityInformation().getJavaType(); }
public AbstractArangoQuery(final ArangoQueryMethod method, final ArangoOperations operations) { Assert.notNull(method, "ArangoQueryMethod must not be null!"); Assert.notNull(operations, "ArangoOperations must not be null!"); this.method = method; this.operations = operations; this.domainClass = method.getEntityInformation().getJavaType(); }
String getKeySpace() { KeySpace keySpace = getEntityInformation().getJavaType().getAnnotation(KeySpace.class); String queryString = (keySpace != null ? (String) AnnotationUtils.getValue(keySpace) : null); return (StringUtils.hasText(queryString) ? queryString : null); }
@Override protected FacetPage<?> executeFind(Query query) { Assert.isInstanceOf(FacetQuery.class, query, "Query must be instance of FacetQuery!"); EntityMetadata<?> metadata = solrQueryMethod.getEntityInformation(); return solrOperations.queryForFacetPage(collection, (FacetQuery) query, metadata.getJavaType()); }
@Override protected FacetAndHighlightPage<?> executeFind(Query query) { Assert.isInstanceOf(FacetAndHighlightQuery.class, query, "Query must be instance of FacetAndHighlightQuery!"); EntityMetadata<?> metadata = solrQueryMethod.getEntityInformation(); return solrOperations.queryForFacetAndHighlightPage(collection, (FacetAndHighlightQuery) query, metadata.getJavaType()); } }
@Override protected HighlightPage<?> executeFind(Query query) { Assert.isInstanceOf(HighlightQuery.class, query, "Query must be instanceof HighlightQuery!"); EntityMetadata<?> metadata = solrQueryMethod.getEntityInformation(); return solrOperations.queryForHighlightPage(collection, (HighlightQuery) query, metadata.getJavaType()); } }
protected Object execute(ViewQuery query) { if (LOG.isDebugEnabled()) { LOG.debug("Executing view query: " + query.toString()); } return operations.findByView(query, method.getEntityInformation().getJavaType()); }
protected Page<?> executeFind(Query query) { EntityMetadata<?> metadata = solrQueryMethod.getEntityInformation(); return solrOperations.queryForPage(collection, query, metadata.getJavaType()); } }
public OrientQueryCreator(PartTree tree, OrientQueryMethod method, OrientParameterAccessor parameters, ParamType paramType) { super(tree, parameters); this.method = method; this.context = DSL.using(SQLDialect.MYSQL); this.tree = tree; this.accessor = parameters; this.paramType = paramType; this.domainClass = method.getEntityInformation().getJavaType(); }
protected Object execute(ViewQuery query) { if (LOG.isDebugEnabled()) { LOG.debug("Executing view query: " + query.toString()); } return operations.findByView(query, method.getEntityInformation().getJavaType()); }
public OrientQueryCreator(PartTree tree, OrientQueryMethod method, OrientParameterAccessor parameters, ParamType paramType) { super(tree, parameters); this.method = method; this.context = DSL.using(SQLDialect.MYSQL); this.tree = tree; this.accessor = parameters; this.paramType = paramType; this.domainClass = method.getEntityInformation().getJavaType(); }
protected Class<?> getTypeValue() { return getQueryMethod().getEntityInformation().getJavaType(); }
@Override public Object execute(Query query) { EntityMetadata<?> metadata = solrQueryMethod.getEntityInformation(); Optional<?> result = solrOperations.queryForObject(collection, query, metadata.getJavaType()); return solrQueryMethod.returnsOptional() ? result : result.orElse(null); } }
protected Class<?> getTypeValue() { return getQueryMethod().getEntityInformation().getJavaType(); }
protected Class<?> getTypeValue() { return getQueryMethod().getEntityInformation().getJavaType(); }
protected Object execute(ViewQuery query) { if (LOG.isDebugEnabled()) { LOG.debug("Executing view query: " + query.toString()); } return ReactiveWrapperConverters.toWrapper(operations.findByView(query, method.getEntityInformation().getJavaType()), Flux.class); }
protected Object execute(ViewQuery query) { if (LOG.isDebugEnabled()) { LOG.debug("Executing view query: " + query.toString()); } return ReactiveWrapperConverters.toWrapper(operations.findByView(query, method.getEntityInformation().getJavaType()), Flux.class); }
public ReactivePartTreeN1qlBasedQuery(CouchbaseQueryMethod queryMethod, RxJavaCouchbaseOperations operations) { super(queryMethod, operations); this.partTree = new PartTree(queryMethod.getName(), queryMethod.getEntityInformation().getJavaType()); }
/** * Creates a new {@link PartTreeGemfireRepositoryQuery} using the given {@link GemfireQueryMethod} and * {@link GemfireTemplate}. * * @param method must not be {@literal null}. * @param template must not be {@literal null}. */ public PartTreeGemfireRepositoryQuery(GemfireQueryMethod method, GemfireTemplate template) { super(method); Class<?> domainClass = method.getEntityInformation().getJavaType(); this.method = method; this.template = template; this.tree = new PartTree(method.getName(), domainClass); }