Codota Logo
Neo4jItemReader.setMatchStatement
Code IndexAdd Codota to your IDE (free)

How to use
setMatchStatement
method
in
org.springframework.batch.item.data.Neo4jItemReader

Best Java code snippets using org.springframework.batch.item.data.Neo4jItemReader.setMatchStatement (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-batch

reader.setMatchStatement(this.matchStatement);
reader.setOrderByStatement(this.orderByStatement);
reader.setPageSize(this.pageSize);
origin: spring-projects/spring-batch

@SuppressWarnings("serial")
@Test
public void testResultsWithMatchAndWhereWithSession() throws Exception {
  Neo4jItemReader<String> itemReader = buildSessionBasedReader();
  itemReader.setMatchStatement("n -- m");
  itemReader.setWhereStatement("has(n.name)");
  itemReader.setReturnStatement("m");
  itemReader.afterPropertiesSet();
  when(this.sessionFactory.openSession()).thenReturn(this.session);
  when(this.session.query(String.class, "START n=node(*) MATCH n -- m WHERE has(n.name) RETURN m ORDER BY n.age SKIP 0 LIMIT 50", null)).thenReturn(result);
  when(result.iterator()).thenReturn(Arrays.asList("foo", "bar", "baz").iterator());
  assertTrue(itemReader.doPageRead().hasNext());
}
origin: spring-projects/spring-batch

  @SuppressWarnings("serial")
  @Test
  public void testResultsWithMatchAndWhereWithParametersWithSession() throws Exception {
    Neo4jItemReader<String> itemReader = buildSessionBasedReader();
    Map<String, Object> params = new HashMap<>();
    params.put("foo", "bar");
    itemReader.setParameterValues(params);
    itemReader.setMatchStatement("n -- m");
    itemReader.setWhereStatement("has(n.name)");
    itemReader.setReturnStatement("m");
    itemReader.afterPropertiesSet();

    when(this.sessionFactory.openSession()).thenReturn(this.session);
    when(this.session.query(String.class, "START n=node(*) MATCH n -- m WHERE has(n.name) RETURN m ORDER BY n.age SKIP 0 LIMIT 50", params)).thenReturn(result);
    when(result.iterator()).thenReturn(Arrays.asList("foo", "bar", "baz").iterator());

    assertTrue(itemReader.doPageRead().hasNext());
  }
}
origin: apache/servicemix-bundles

reader.setMatchStatement(this.matchStatement);
reader.setOrderByStatement(this.orderByStatement);
reader.setPageSize(this.pageSize);
org.springframework.batch.item.dataNeo4jItemReadersetMatchStatement

Popular methods of Neo4jItemReader

  • <init>
  • setOrderByStatement
  • setPageSize
  • setParameterValues
  • setReturnStatement
  • setSessionFactory
  • setStartStatement
  • setTargetType
  • setWhereStatement
  • generateLimitCypherQuery
  • getParameterValues
  • getSessionFactory
  • getParameterValues,
  • getSessionFactory,
  • getTargetType,
  • setCurrentItemCount,
  • setMaxItemCount,
  • setName,
  • setSaveState,
  • afterPropertiesSet,
  • doPageRead

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • getSystemService (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now