Examples of query()


Examples of com.alibaba.otter.canal.parse.driver.mysql.MysqlQueryExecutor.query()

        return connector.isConnected();
    }

    public ResultSetPacket query(String cmd) throws IOException {
        MysqlQueryExecutor exector = new MysqlQueryExecutor(connector);
        return exector.query(cmd);
    }

    public void update(String cmd) throws IOException {
        MysqlUpdateExecutor exector = new MysqlUpdateExecutor(connector);
        exector.update(cmd);
View Full Code Here

Examples of com.amazonaws.services.dynamodb.datamodeling.DynamoDBMapper.query()

  public Result<K, T> execute(Query<K, T> query) {
    DynamoDBQuery<K, T> dynamoDBQuery = buildDynamoDBQuery(query);
    DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient);
    List<T> objList = null;
    if (DynamoDBQuery.getType().equals(DynamoDBQuery.RANGE_QUERY))
      objList = mapper.query(persistentClass, (DynamoDBQueryExpression)dynamoDBQuery.getQueryExpression());
      if (DynamoDBQuery.getType().equals(DynamoDBQuery.SCAN_QUERY))
        objList = mapper.scan(persistentClass, (DynamoDBScanExpression)dynamoDBQuery.getQueryExpression());
        return new DynamoDBResult<K, T>(this, query, objList)
  }
 
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.document.Table.query()

    }

    @Test
    public void simpleQuery() {
        Table table = dynamo.getTable(TABLE_NAME);
        ItemCollection<?> col = table.query(HASH_KEY_NAME, "foo",
            new RangeKeyCondition(RANGE_KEY_NAME).between(1, 10));
        int count = 0;
        for (Item item: col) {
            System.out.println(item);
            count++;
View Full Code Here

Examples of com.any_erp_vendor.moa.jmsobjects.person.v1_0.BasicPerson.query()

        logger.info("[PasswordSyncCommand.getBasicPerson] Set instid on lightweight person...");
       
        BasicPerson aeo = (BasicPerson)getAppConfig().getObject("BasicPerson");
        logger.info("[PasswordSyncCommand.getBasicPerson] Got BasicPerson from AppConfig, performing Query...");
 
        java.util.List a = aeo.query(lPerson, p2p4BpQuery);
        logger.info("[PasswordSyncCommand.getBasicPerson] Executed Query...");
 
        StringBuffer results = new StringBuffer();
        if (a.size() == 0) {
          logger.info("[PasswordSyncCommand.getBasicPerson] No rows found matching the query.");
View Full Code Here

Examples of com.aphyr.riemann.client.RiemannClient.query()

    RiemannClient client = null;
    try {
      client = RiemannClient.tcp(server.start());
      client.connect();
      for (int i = 0; i < 10; i++) {
        final List<Event> events = client.query("hi");
        assertEquals(0, events.size());
        final Msg m = server.received.poll();
        assertEquals("hi", m.getQuery().getString());
      }
    } finally {
View Full Code Here

Examples of com.art.anette.client.database.ClientDB.query()

            if (logins.containsKey(lr)) {
                loginData = lr;
                try {
                    long id = logins.get(lr);
                    ClientDB cdb = new ClientDB(id);
                    ResultSet rs = cdb.query(SQLFormatter.generateQuery("SELECT * FROM %s WHERE id = %d", Employee.getTableName(), id));
                    if (!rs.next()) {
                        logger.warning("The login is known but not available in the local database. Raise an error to refetch from server.");
                        rs.close();
                        throw ex;
                    }
View Full Code Here

Examples of com.axemblr.provisionr.amazon.core.ImageTable.query()

            final String region = provider.getOptionOr(ProviderOptions.REGION, ProviderOptions.DEFAULT_REGION);
            final String version = provider.getOptionOr(SoftwareOptions.BASE_OPERATING_SYSTEM_VERSION,
                SoftwareOptions.DEFAULT_BASE_OPERATING_SYSTEM_VERSION);

            ImageTableQuery query = imageTable.query()
                .filterBy("region", region)
                .filterBy("version", version)
                .filterBy("arch", DEFAULT_ARCH);

            if (instanceType.equals("t1.micro")) {
View Full Code Here

Examples of com.caucho.bam.actor.ActorSender.query()

  {
    ActorSender conn = getConnection();

    try {
      ResultStatus status = (ResultStatus)
        conn.query(WATCHDOG_ADDRESS, new WatchdogStatusQuery());

      if (status.isSuccess())
        return status.getMessage();

      throw new RuntimeException(L.l("{0}: watchdog status failed because of '{1}'",
View Full Code Here

Examples of com.caucho.bam.mailbox.Mailbox.query()

  public void query(long id, String to, String from, Serializable payload)
  {
    Mailbox mailbox = getMailbox(to);
   
    if (mailbox != null) {
      mailbox.query(id, to, from, payload);
      return;
    }
   
    // on startup, queue the messages until the startup completes
    if (isBeforeActive()
View Full Code Here

Examples of com.caucho.bam.stream.MessageStream.query()

    }
   
    MessageStream toStream = getMailbox(to);
   
    if (toStream != null) {
      toStream.query(id, to, from, payload);
      return;
    }

    String msg;
    msg = (this + ": query(" + id + ") to unknown actor to:" + to
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.