@Test public void testEntitiesWithValidArgument(){ Entity.ID newEntityID = Entity.ID.valueOf("urn:entity:" + TartanImplTestConstants.ATTR_PARENT_ID.getName() + "." + TartanImplTestConstants.ATTR_PARENT_ID.getName() + "/" + UUID.randomUUID()); GraphVisitor repository = new MockGraphVisitor(); GraphLookUpQuery graphLookupQuery = new GraphLookUpQuery(repository); Projection entities = graphLookupQuery.entities(newEntityID); assertNotNull(entities); }
@Override public Queries.Projection entities(Entity.ID... entityIDs) { Preconditions.argumentNotNull(entityIDs, "entityIDs"); OperationPipeline pipeline = new OperationPipeline(); pipeline.add(new GetBatchEntityByID(Arrays.asList(entityIDs))); return new GraphProjection(repository, pipeline); }
GraphLookUpQuery implements Queries.LookupQuery { @Override public Queries.Projection entities(Entity.ID... entityIDs) { Preconditions.argumentNotNull(entityIDs, "entityIDs"); OperationPipeline pipeline = new OperationPipeline(); pipeline.add(new GetBatchEntityByID(Arrays.asList(entityIDs))); return new GraphProjection(repository, pipeline); } }
GraphLookUpQuery implements Queries.LookupQuery { @Override public Queries.Projection entities(Entity.ID... entityIDs) { Preconditions.argumentNotNull(entityIDs, "entityIDs"); OperationPipeline pipeline = new OperationPipeline(); pipeline.add(new GetBatchEntityByID(Arrays.asList(entityIDs))); return new GraphProjection(repository, pipeline); } GraphLookUpQuery(final GraphVisitor repository); }
GraphLookUpQuery implements Queries.LookupQuery { @Override public Queries.Projection entities(Entity.ID... entityIDs) { Preconditions.argumentNotNull(entityIDs, "entityIDs"); OperationPipeline pipeline = new OperationPipeline(); pipeline.add(new GetBatchEntityByID(Arrays.asList(entityIDs))); return new GraphProjection(repository, pipeline); } GraphLookUpQuery(final GraphVisitor repository); @Override Queries.Projection entities(Entity.ID... entityIDs); @Override Queries.Projection entity(Entity.ID entityID); @Override ValueSpecifier<Projection> entityBy(Name name); }
GraphLookUpQuery implements Queries.LookupQuery { @Override public Queries.Projection entities(Entity.ID... entityIDs) { Preconditions.argumentNotNull(entityIDs, "entityIDs"); OperationPipeline pipeline = new OperationPipeline(); pipeline.add(new GetBatchEntityByID(Arrays.asList(entityIDs))); return new GraphProjection(repository, pipeline); } GraphLookUpQuery(final GraphVisitor repository); @Override Queries.Projection entities(Entity.ID... entityIDs); @Override Queries.Projection entity(Entity.ID entityID); @Override ValueSpecifier<Projection> entityBy(Name name);  }