Package org.tarantool.facade

Examples of org.tarantool.facade.TarantoolTemplate.call()


  public void testCall() throws MalformedURLException {
    Mapping<User> mapping = new Mapping<User>(User.class, 126, "id", "phone");
    SocketChannelPooledConnectionFactory connectionFactory = new SocketChannelPooledConnectionFactory("localhost", 33313, 1, 10);
    TarantoolTemplate template = new TarantoolTemplate(connectionFactory);
    template.addMapping(mapping);
    template.call(User.class, "box.delete", "126", 4321).callForOne();
    assertNotNull(template.call(User.class, "box.insert", "126", 4321, 323323L).callForOne());
    assertNull(template.call(User.class, "box.select", 126, 0, 4321).luaMode(true).callForOne());
    template.call(User.class, "box.delete", "126", 4321).callForOne();
  }
}
View Full Code Here


    Mapping<User> mapping = new Mapping<User>(User.class, 126, "id", "phone");
    SocketChannelPooledConnectionFactory connectionFactory = new SocketChannelPooledConnectionFactory("localhost", 33313, 1, 10);
    TarantoolTemplate template = new TarantoolTemplate(connectionFactory);
    template.addMapping(mapping);
    template.call(User.class, "box.delete", "126", 4321).callForOne();
    assertNotNull(template.call(User.class, "box.insert", "126", 4321, 323323L).callForOne());
    assertNull(template.call(User.class, "box.select", 126, 0, 4321).luaMode(true).callForOne());
    template.call(User.class, "box.delete", "126", 4321).callForOne();
  }
}
View Full Code Here

    SocketChannelPooledConnectionFactory connectionFactory = new SocketChannelPooledConnectionFactory("localhost", 33313, 1, 10);
    TarantoolTemplate template = new TarantoolTemplate(connectionFactory);
    template.addMapping(mapping);
    template.call(User.class, "box.delete", "126", 4321).callForOne();
    assertNotNull(template.call(User.class, "box.insert", "126", 4321, 323323L).callForOne());
    assertNull(template.call(User.class, "box.select", 126, 0, 4321).luaMode(true).callForOne());
    template.call(User.class, "box.delete", "126", 4321).callForOne();
  }
}
View Full Code Here

    TarantoolTemplate template = new TarantoolTemplate(connectionFactory);
    template.addMapping(mapping);
    template.call(User.class, "box.delete", "126", 4321).callForOne();
    assertNotNull(template.call(User.class, "box.insert", "126", 4321, 323323L).callForOne());
    assertNull(template.call(User.class, "box.select", 126, 0, 4321).luaMode(true).callForOne());
    template.call(User.class, "box.delete", "126", 4321).callForOne();
  }
}
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.