@Test public void optimizeQuerySVG() { CypherQuery cypherQuery = CypherHttpMessageConverter .optimizeQueryForType(new CypherQuery("bla bal limit 10"), new ResultFormatterSVG()); assertThat(cypherQuery.getQuery(), Is.is ("bla bal limit 1")); }
static CypherQuery optimizeQueryForType(CypherQuery cypherQuery, ResultFormatter formatter) { if (formatter instanceof ResultFormatterSVG) { cypherQuery = attemptQueryRewrite(cypherQuery, " LIMIT "); cypherQuery = attemptQueryRewrite(cypherQuery, " limit "); } return cypherQuery; }
CypherHttpMessageConverter extends AbstractHttpMessageConverter<CypherQuery> { static CypherQuery optimizeQueryForType(CypherQuery cypherQuery, ResultFormatter formatter) { if (formatter instanceof ResultFormatterSVG) { cypherQuery = attemptQueryRewrite(cypherQuery, " LIMIT "); cypherQuery = attemptQueryRewrite(cypherQuery, " limit "); } return cypherQuery; } }
CypherHttpMessageConverter extends AbstractHttpMessageConverter<CypherQuery> { static CypherQuery optimizeQueryForType(CypherQuery cypherQuery, ResultFormatter formatter) { if (formatter instanceof ResultFormatterSVG) { cypherQuery = attemptQueryRewrite(cypherQuery, " LIMIT "); cypherQuery = attemptQueryRewrite(cypherQuery, " limit "); } return cypherQuery; } CypherHttpMessageConverter(); }
CypherHttpMessageConverter extends AbstractHttpMessageConverter<CypherQuery> { static CypherQuery optimizeQueryForType(CypherQuery cypherQuery, ResultFormatter formatter) { if (formatter instanceof ResultFormatterSVG) { cypherQuery = attemptQueryRewrite(cypherQuery, " LIMIT "); cypherQuery = attemptQueryRewrite(cypherQuery, " limit "); } return cypherQuery; } CypherHttpMessageConverter();  }
CypherHttpMessageConverter extends AbstractHttpMessageConverter<CypherQuery> { static CypherQuery optimizeQueryForType(CypherQuery cypherQuery, ResultFormatter formatter) { if (formatter instanceof ResultFormatterSVG) { cypherQuery = attemptQueryRewrite(cypherQuery, " LIMIT "); cypherQuery = attemptQueryRewrite(cypherQuery, " limit "); } return cypherQuery; } CypherHttpMessageConverter();   }