Examples of bind()


Examples of com.cloudhopper.smpp.impl.DefaultSmppClient.bind()

        sessionConfig0.setBindTimeout(30000);

        long start = System.currentTimeMillis();
        try {
            // this should fail
            SmppSession session0 = client0.bind(sessionConfig0);
            Assert.fail();
        } catch (SmppChannelException e) {
            long stop = System.currentTimeMillis();
            Assert.assertNotNull(e);
            logger.info("Expected exception: " + e.getMessage());
View Full Code Here

Examples of com.datastax.driver.core.BoundStatement.bind()

                PreparedStatement statement = session.prepare("INSERT INTO " + keys + "." + table + "(id, colname, colvalue) VALUES (?, ?, ?)");
                BoundStatement boundStatement = new BoundStatement(statement);
                String colName = StandardConverters.convertToString(c.getName());
                checkIfRowExsits(table, rowkey, colName);
                if (c.getValue() != null && c.getValue().length != 0) {
                    session.execute(boundStatement.bind(ByteBuffer.wrap(rowkey), colName, ByteBuffer.wrap(c.getValue())));
                } else {
                    session.execute(boundStatement.bind(ByteBuffer.wrap(rowkey), colName, ByteBuffer.wrap(new byte[0])));
                }

            } catch (Exception e) {
View Full Code Here

Examples of com.datastax.driver.core.PreparedStatement.bind()

            "SELECT schedule_id, time, type, value " +
            "FROM " + MetricsTable.AGGREGATE + " " +
            "WHERE schedule_id = ? AND bucket = ? " +
            "ORDER BY time, type";
        PreparedStatement statement = session.prepare(cql);
        BoundStatement boundStatement = statement.bind(scheduleId, bucket.toString());

        return new SimplePagedResult<AggregateNumericMetric>(boundStatement, new AggregateNumericMetricMapper(),
            storageSession);
    }
View Full Code Here

Examples of com.dianping.cat.message.TaggedTransaction.bind()

    if (t != null) {
      MessageTree tree = getThreadLocalMessageTree();

      if (tree != null) {
        t.start();
        t.bind(tag, tree.getMessageId(), title);
      }
    }
  }

  @Override
View Full Code Here

Examples of com.esotericsoftware.kryonet.Server.bind()

    final SomeData data = new SomeData();
    data.text = "some text here aaaaaaabbbbbccccc";
    data.stuff = new short[] {1, 2, 3, 4, 5, 6, 7, 8};

    startEndPoint(server);
    server.bind(tcpPort, udpPort);
    server.addListener(new Listener() {
      public void connected (Connection connection) {
        data.stuff[3] = 4;
        server.sendToAllTCP(data);
View Full Code Here

Examples of com.et.mvc.binding.DataBinder.bind()

                bc.setParameterName(f.getName());
                bc.setParameterType(f.getType());
                bc.setRequest(ctx.getRequest());
                bc.setPrefix(ctx.getPrefix());

                Object value = binder.bind(bc);
                if (value != null) {
                  bindCount ++;
                }
                f.setAccessible(true);
                f.set(obj, value);
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.BarDataProvider.bind()

    model.setScaleProvider(ScaleProvider.ROUNDED_NEAREST_SCALE_PROVIDER);

    BarChart bar = new BarChart(BarStyle.GLASS);
    bar.setColour("#00aa00");
    BarDataProvider barProvider = new BarDataProvider("alphasales", "month");
    barProvider.bind(store);
    bar.setDataProvider(barProvider);
    bar.addChartListener(listener);
    model.addChartConfig(bar);

    bar = new BarChart(BarStyle.GLASS);
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.LineDataProvider.bind()

    LineChart line = new LineChart();
    line.setAnimateOnShow(true);
    line.setText("Average");
    line.setColour("#FF0000");
    LineDataProvider lineProvider = new LineDataProvider("avgsales");
    lineProvider.bind(store);
    line.setDataProvider(lineProvider);
    model.addChartConfig(line);

    chart.setChartModel(model);
View Full Code Here

Examples of com.extjs.gxt.ui.client.binding.FieldBinding.bind()

      initDataBindings();
  }
  protected void initDataBindings() {
   
    FieldBinding fieldBinding = new FieldBinding(txtfldCustomerName, "customerName");
    fieldBinding.bind(customer);
    //
    FieldBinding fieldBinding_1 = new FieldBinding(txtrAddress, "address");
    fieldBinding_1.bind(customer);
    //
    FieldBinding fieldBinding_2 = new FieldBinding(txtfldPhoneTextfield, "phoneNumber");
View Full Code Here

Examples of com.extjs.gxt.ui.client.binding.FormBinding.bind()

    FormBinding binding = new FormBinding(formPanel);

    //Auto binding fields
    binding.autoBind();
    binding.bind(ficheStDto);
  }

  public void setModel(FicheStDto ficheStDto) {
    if(ficheStDto == null) {
      return;
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.