@Test public void testToCypherFilter() { String cypherFilter = this.docId.toCypherFilter(); Assert.assertEquals("id: 10, type: 'artist'", cypherFilter); }
@Override public String toCypherFilter() { StringBuilder sb = new StringBuilder(); sb.append(ID); sb.append(": "); sb.append(this.id.toCypher()); sb.append(", "); sb.append(TYPE); sb.append(": "); sb.append(this.type.toCypher()); return sb.toString(); }
DocumentIdTypeId implements DocumentId { @Override public String toCypherFilter() { StringBuilder sb = new StringBuilder(); sb.append(ID); sb.append(": "); sb.append(this.id.toCypher()); sb.append(", "); sb.append(TYPE); sb.append(": "); sb.append(this.type.toCypher()); return sb.toString(); } }
DocumentIdTypeId implements DocumentId { @Override public String toCypherFilter() { StringBuilder sb = new StringBuilder(); sb.append(ID); sb.append(": "); sb.append(this.id.toCypher()); sb.append(", "); sb.append(TYPE); sb.append(": "); sb.append(this.type.toCypher()); return sb.toString(); } DocumentIdTypeId(Object type, Object id); }
DocumentIdTypeId implements DocumentId { @Override public String toCypherFilter() { StringBuilder sb = new StringBuilder(); sb.append(ID); sb.append(": "); sb.append(this.id.toCypher()); sb.append(", "); sb.append(TYPE); sb.append(": "); sb.append(this.type.toCypher()); return sb.toString(); } DocumentIdTypeId(Object type, Object id); @Override Map<String, String> getFields(); @Override String toCypherFilter(); }
DocumentIdTypeId implements DocumentId { @Override public String toCypherFilter() { StringBuilder sb = new StringBuilder(); sb.append(ID); sb.append(": "); sb.append(this.id.toCypher()); sb.append(", "); sb.append(TYPE); sb.append(": "); sb.append(this.type.toCypher()); return sb.toString(); } DocumentIdTypeId(Object type, Object id); @Override Map<String, String> getFields(); @Override String toCypherFilter(); static final String ID; static final String TYPE; }