@Test(expected = IllegalArgumentException.class) public void testEmptySetNotAccepted() { underTest.execute(db, emptySet()); }
@Nullable public List<T> execute(final ODatabaseDocumentTx db, final Set<?> values) { checkNotNull(db); checkArgument(!values.isEmpty()); String q = query + buildIn(values); List<ODocument> results = db.command(new OSQLSynchQuery<>(q)).execute(values); return newArrayList(results.stream().map(adapter::readEntity).collect(toList())); }
ReadEntitiesByPropertyAction extends ComponentSupport { @Nullable public List<T> execute(final ODatabaseDocumentTx db, final Set<?> values) { checkNotNull(db); checkArgument(!values.isEmpty()); String q = query + buildIn(values); List<ODocument> results = db.command(new OSQLSynchQuery<>(q)).execute(values); return newArrayList(results.stream().map(adapter::readEntity).collect(toList())); } }
ReadEntitiesByPropertyAction extends ComponentSupport { @Nullable public List<T> execute(final ODatabaseDocumentTx db, final Set<?> values) { checkNotNull(db); checkArgument(!values.isEmpty()); String q = query + buildIn(values); List<ODocument> results = db.command(new OSQLSynchQuery<>(q)).execute(values); return newArrayList(results.stream().map(adapter::readEntity).collect(toList())); } ReadEntitiesByPropertyAction(final EntityAdapter<T> adapter, final String property); }
ReadEntitiesByPropertyAction extends ComponentSupport { @Nullable public List<T> execute(final ODatabaseDocumentTx db, final Set<?> values) { checkNotNull(db); checkArgument(!values.isEmpty()); String q = query + buildIn(values); List<ODocument> results = db.command(new OSQLSynchQuery<>(q)).execute(values); return newArrayList(results.stream().map(adapter::readEntity).collect(toList())); } ReadEntitiesByPropertyAction(final EntityAdapter<T> adapter, final String property); @Nullable List<T> execute(final ODatabaseDocumentTx db, final Set<?> values); @Override String toString(); }
ReadEntitiesByPropertyAction extends ComponentSupport { @Nullable public List<T> execute(final ODatabaseDocumentTx db, final Set<?> values) { checkNotNull(db); checkArgument(!values.isEmpty()); String q = query + buildIn(values); List<ODocument> results = db.command(new OSQLSynchQuery<>(q)).execute(values); return newArrayList(results.stream().map(adapter::readEntity).collect(toList())); } ReadEntitiesByPropertyAction(final EntityAdapter<T> adapter, final String property); @Nullable List<T> execute(final ODatabaseDocumentTx db, final Set<?> values); @Override String toString();  }