Examples of query()


Examples of org.jclouds.http.Uris.UriBuilder.query()

         if (stringPayload != null)
            payload = Payloads.newStringPayload(stringPayload);
      }

      if (queryParams.size() > 0) {
         uriBuilder.query(queryParams);
      }

      requestBuilder.headers(filterOutContentHeaders(headers));

      requestBuilder.endpoint(uriBuilder.build(convertUnsafe(tokenValues)));
View Full Code Here

Examples of org.jitterbit.integration.server.db.trandb.SourcePropertiesTab.query()

            return table.query(sourceId);
        }
       
        private TransactionIsolationLevel getTransactionIsolationLevel(SourcesTabRow row) throws SQLException {
            SourcePropertiesTab table = new SourcePropertiesTab(tranDbConn);
            String value = table.query(row.get_source_id(), SourceProperties.TRANSACTION_ISOLATION_LEVEL);
            return parseTransactionIsolationLevel(value);
        }
    }

View Full Code Here

Examples of org.jitterbit.integration.server.db.trandb.SourcesTab.query()

            Long id = mapper.getId(guid);
            if (id != null) {
                // No need to close srcTab in a finally block, since we are closing
                // the connection itself explicitly
                SourcesTab srcTab = new SourcesTab(tranDbConnection);
                SourcesTabRow row = srcTab.query(id.intValue());
                String encrypted = row.get_password();
                if (encrypted != null) {
                    verifyAccess(guid);
                    return Crypto.decryptString(encrypted);
                }
View Full Code Here

Examples of org.jitterbit.integration.server.db.trandb.TargetPropertiesTab.query()

            return table.query(targetId);
        }
       
        private TransactionIsolationLevel getTransactionIsolationLevel(TargetsTabRow row) throws SQLException {
            TargetPropertiesTab table = new TargetPropertiesTab(tranDbConn);
            String value = table.query(row.get_target_id(), TargetProperties.TRANSACTION_ISOLATION_LEVEL);
            return parseTransactionIsolationLevel(value);
        }
    }

}
View Full Code Here

Examples of org.jitterbit.integration.server.db.trandb.TargetsTab.query()

            Long id = mapper.getId(guid);
            if (id != null) {
                // No need to close srcTab in a finally block, since we are closing
                // the connection itself explicitly
                TargetsTab tgtTab = new TargetsTab(tranDbConnection);
                TargetsTabRow row = tgtTab.query(id.intValue());
                String encrypted = row.get_password();
                if (encrypted != null) {
                    verifyAccess(guid);
                    return Crypto.decryptString(encrypted);
                }
View Full Code Here

Examples of org.jitterbit.integration.server.db.trandb.TransformationsTab.query()

        return xsd;
    }

    private TransformationsTabRow queryTransformation(long txId) throws SQLException {
        TransformationsTab table = new TransformationsTab(connection);
        TransformationsTabRow row = table.query(txId);
        if (row == null) {
            throw new IllegalArgumentException("Unknown Transformation ID: " + txId);
        }
        return row;
    }
View Full Code Here

Examples of org.jooq.DSLContext.query()

    public void testBatchSingle() {
        DSLContext e = DSL.using(new MockConnection(new BatchSingle()), SQLDialect.H2);

        int[] result =
        e.batch(
            e.query("insert into x values(1)"),
            e.query("insert into x values(2)")
        ).execute();

        assertEquals(2, result.length);
        assertEquals(0, result[0]);
View Full Code Here

Examples of org.jrest4guice.dao.annotations.Find.query()

  private Query getQuery() {
    Find find = getAnnotation();
    if (StringUtils.isNotBlank(find.namedQuery()))
      return getSession().getNamedQuery(find.namedQuery());
    if (find.nativeQuery())
      return getSession().createSQLQuery(find.query());
    else
      return getSession().createQuery(find.query());
  }

  private Session getSession() {
View Full Code Here

Examples of org.jrest4guice.dao.annotations.Retrieve.query()

   * 检查是否有查询设置,有返回<code>true</code>,没有返回<code>false</code>
   * @return
   */
  private boolean hasQuerySetting() {
    Retrieve retrieve = getAnnotation();
    if (StringUtils.isNotBlank(retrieve.query()))
      return true;
    if (StringUtils.isNotBlank(retrieve.namedQuery()))
      return true;
    return false;
  }
View Full Code Here

Examples of org.jvnet.substance.api.ColorSchemeSingleColorQuery.query()

    double cycleCoef = 1.0 - cyclePos;

    Color[] fillColors = new Color[this.fractions.length];
    for (int i = 0; i < this.fractions.length; i++) {
      ColorSchemeSingleColorQuery colorQuery = this.colorQueries[i];
      Color color1 = colorQuery.query(colorScheme1);
      Color color2 = colorQuery.query(colorScheme2);
      fillColors[i] = SubstanceColorUtilities.getInterpolatedColor(
          color1, color2, cycleCoef);
    }
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.