Examples of from()


Examples of org.infinispan.query.dsl.QueryFactory.from()

   public void testSampleDomainQuery4() throws Exception {
      QueryFactory qf = Search.getQueryFactory(remoteCache);

      // all users ordered descendingly by name
      Query q = qf.from(User.class)
            .orderBy("name", SortOrder.DESC)
            .build();

      List<User> list = q.list();
      assertEquals(3, list.size());
View Full Code Here

Examples of org.infinispan.query.dsl.QueryFactory.from()

   public void testSampleDomainQuery5() throws Exception {
      QueryFactory qf = Search.getQueryFactory(remoteCache);

      // name projection of all users ordered descendingly by name
      Query q = qf.from(User.class)
            .orderBy("name", SortOrder.DESC)
            .setProjection("name")
            .build();

      List<Object[]> list = q.list();
View Full Code Here

Examples of org.infinispan.query.dsl.QueryFactory.from()

   public void testSampleDomainQuery6() throws Exception {
      QueryFactory qf = Search.getQueryFactory(remoteCache);

      // all users with a given name and surname
      Query q = qf.from(User.class)
            .having("name").eq("John")
            .and().having("surname").eq("Doe")
            .toBuilder().build();

      List<User> list = q.list();
View Full Code Here

Examples of org.infinispan.query.dsl.QueryFactory.from()

   public void testSampleDomainQuery7() throws Exception {
      QueryFactory qf = Search.getQueryFactory(remoteCache);

      // all rent payments made from a given account
      Query q = qf.from(Transaction.class)
            .having("accountId").eq(1)
            .and().having("description").like("%rent%")
            .toBuilder().build();

      List<Transaction> list = q.list();
View Full Code Here

Examples of org.jboss.dna.graph.request.CopyBranchRequest.from()

                                            Location to ) {
        Request request = executedRequests.poll();
        assertThat(request, is(instanceOf(CopyBranchRequest.class)));
        CopyBranchRequest copy = (CopyBranchRequest)request;
        assertThat(copy.fromWorkspace(), is(fromWorkspace));
        assertThat(copy.from(), is(from));
        assertThat(copy.into(), is(to));
    }

    protected void assertNextRequestIsDelete( Location at ) {
        Request request = executedRequests.poll();
View Full Code Here

Examples of org.jboss.dna.graph.request.MoveBranchRequest.from()

    protected void assertNextRequestIsMove( Location from,
                                            Location to ) {
        Request request = executedRequests.poll();
        assertThat(request, is(instanceOf(MoveBranchRequest.class)));
        MoveBranchRequest move = (MoveBranchRequest)request;
        assertThat(move.from(), is(from));
        assertThat(move.into(), is(to));
    }

    protected void assertNextRequestIsCopy( Location from,
                                            Location to ) {
View Full Code Here

Examples of org.jclouds.compute.domain.TemplateBuilder.from()

   @BeforeClass(groups = { "integration", "live" }, dependsOnMethods = "setupContext")
   public void createNodes() throws RunNodesException {
      try {
         TemplateBuilder builder = computeContext.getComputeService().templateBuilder();
         if (template != null)
            builder.from(template);
         nodes = computeContext.getComputeService().createNodesInGroup(group, 2, builder.build());
      } catch (RunNodesException e) {
         nodes = e.getSuccessfulNodes();
         throw e;
      }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.operation.graph2d.PipelineActivityEdge.from()

    }
   
    private DropBehavior getEdgeDropBehavior(GraphEdge edge) {
        if (edge instanceof PipelineActivityEdge) {
            PipelineActivityEdge ae = (PipelineActivityEdge) edge;
            return new ActivityConnectionDropBehavior(controller, ae.from().getParent(), ae.asConnectionPoint());
        }
        return new NullDropBehavior();
    }

}
View Full Code Here

Examples of org.jitterbit.ui.graph.edge.GraphEdge.from()

    @Override
    public void nodesConnected(NodesConnectedEvent evt) {
        GraphEdge edge = evt.getNewEdge();
        updateEdge(edge);
        super.fireLayoutChanged(Arrays.asList(edge.from(), edge.to()));
    }

    @Override
    public void nodesInserted(NodesInsertedEvent evt) {
        // XXX: The current implementation takes advantage of what is really implementation details
View Full Code Here

Examples of org.jnetpcap.packet.annotate.Bind.from()

      try {

        Bind bind = boundMethod.getMethod().getAnnotation(Bind.class);
        target = bind.to();
        Class<? extends JHeader> source = bind.from();
        Class<? extends JHeader>[] dependencies = bind.dependencies();

        list.add(new AnnotatedBinding(c, source, target, boundMethod,
            dependencies));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.