Examples of query()


Examples of org.pokenet.server.network.MySqlManager.query()

    /*Record Trade on History Table*/
    MySqlManager m_database = new MySqlManager();
    if(m_database.connect(GameServer.getDatabaseHost(), GameServer.getDatabaseUsername(), GameServer.getDatabasePassword())){
      m_database.selectDatabase(GameServer.getDatabaseName());
      while(!m_queries.isEmpty()){
        m_database.query(m_queries.get(0));
        m_queries.remove(0);
      }
    }
    m_database.close();
  }
View Full Code Here

Examples of org.pushingpixels.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(interpolationScheme1);
      Color color2 = colorQuery.query(interpolationScheme2);
      if (!useCyclePosAsInterpolation) {
        fillColors[i] = color1;
      } else {
        fillColors[i] = SubstanceColorUtilities.getInterpolatedColor(
View Full Code Here

Examples of org.qi4j.api.query.grammar.QuerySpecification.query()

            SolrServer server = solr.solrServer();

            NamedList<Object> list = new NamedList<Object>();

            list.add( "q", expr.query() );
            list.add( "rows", maxResults != 0 ? maxResults : 10000 );
            list.add( "start", firstResult );

            if( orderBySegments != null && orderBySegments.length > 0 )
            {
View Full Code Here

Examples of org.qi4j.library.sql.common.Databases.query()

    {
        Databases databases = new Databases( dataSource );

        // Insert some data and print it out
        databases.update( "insert into test values ('id1','foo')" );
        databases.query( "select * from test" ).transferTo( Outputs.withReceiver( new Receiver<ResultSet, SQLException>()
        {
            @Override
            public void receive( ResultSet item )
                    throws SQLException
            {
View Full Code Here

Examples of org.rhq.core.system.pquery.ProcessInfoQuery.query()

        try {
            Set<ProcessScan> processScans = this.resource.getResourceType().getProcessScans();
            if (processScans != null && !processScans.isEmpty()) {
                ProcessInfoQuery piq = new ProcessInfoQuery(systemInfo.getAllProcesses());
                for (ProcessScan processScan : processScans) {
                    List<ProcessInfo> queryResults = piq.query(processScan.getQuery());
                    if ((queryResults != null) && (queryResults.size() > 0)) {
                        for (ProcessInfo autoDiscoveredProcess : queryResults) {
                            scanResults.add(new ProcessScanResult(processScan, autoDiscoveredProcess));
                        }
                    }
View Full Code Here

Examples of org.sgx.yuigwt.yui.yql.YQLResult.query()

    else {
      //only for devel/testing - load a local copy
      String text = TestResources.instance.data1().getText();
      console.log("data length: "+text.length());
      YQLResult r = JsonUtils.unsafeEval(text);
      JsObject json = r.query().results().objGetObj("json");
      JsArray<Module> data = json.objGetObj("modules").cast();
      loadModules(data);
      gallery.render();  
    }
  }
View Full Code Here

Examples of org.sphx.api.SphinxClient.Query()

                Scanner scan = new Scanner(new File("../queries.txt"));
                String queryString;

                while (scan.hasNextLine()) {
                        queryString = scan.nextLine().trim();
            SphinxResult res = cl.Query(queryString, index);

            for (int i = 0; i < res.matches.length; i++) {
              SphinxMatch info = res.matches[i];
              System.out.println (queryString + " " + info.docId);
            }
View Full Code Here

Examples of org.springframework.data.hadoop.hive.HiveTemplate.query()

        "/META-INF/spring/hive-context.xml", HiveApp.class);
    log.info("Hive Application Running");
    context.registerShutdownHook();

    HiveTemplate template = context.getBean(HiveTemplate.class);
    template.query("show tables;");

    PasswordRepository repository = context.getBean(HiveTemplatePasswordRepository.class);
    repository.processPasswordFile("/etc/passwd");
    log.info("Count of password entries = " + repository.count());
        context.close();
View Full Code Here

Examples of org.springframework.data.mongodb.core.query.NearQuery.query()

      Point nearLocation = accessor.getGeoNearLocation();
      NearQuery nearQuery = NearQuery.near(nearLocation);

      if (query != null) {
        nearQuery.query(query);
      }

      Distance maxDistance = accessor.getMaxDistance();
      if (maxDistance != null) {
        nearQuery.maxDistance(maxDistance).in(maxDistance.getMetric());
View Full Code Here

Examples of org.springframework.data.neo4j.support.query.CypherQueryEngine.query()

    }

    @Test @Transactional
    public void testQueryEngineForCypher() throws Exception {
        final CypherQueryEngine engine = neo4jOperations.queryEngineFor();
        final Person result = engine.query("start n=node({self}) return n", map("self", testTeam.michael.getId())).to(Person.class).single();
        assertEquals(testTeam.michael.getId(), result.getId());
    }

    @Test @Transactional
    public void testTraverse() throws Exception {
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.