Examples of query()


Examples of aQute.bnd.osgi.resource.FilterParser.Expression.query()

     */
    public static String requirementToUrl(Requirement req) throws IOException {
        FilterParser fp = new FilterParser();
        Expression expression = fp.parse(req);

        String s = expression.query();

        return "http://jpm4j.org/#!/search?q=" + URLEncoder.encode(s, "UTF-8");
    }
}
View Full Code Here

Examples of aQute.library.capreq.FilterParser.Expression.query()

  // @Override
  public Set<ResourceDescriptor> findResources(org.osgi.resource.Requirement requirement, boolean includeDependencies)
      throws Exception {
    FilterParser fp = new FilterParser();
    Expression expression = fp.parse(requirement.getDirectives().get("filter"));
    String query = expression.query();
   
    if ( query == null) {
      return Collections.emptySet();
    }
   
View Full Code Here

Examples of br.com.visualmidia.system.GDSystem.query()

import br.com.visualmidia.system.GDSystem;

public class Exportacao {
  public static void main(String[] args) throws Exception {
    GDSystem system = GDSystem.getInstance();
    List<Person> users = (List<Person>) system.query(new GetAllStudent());

    // aluno;rg; cpf;data nasc; endere�o + numero, bairro, cidade, estado,
    // cep; telefones
    String export = "ALUNO;RG;CPF;DATA NASCIMENTO;ENDERECO;BAIRRO;CIDADE;ESTADO;CEP;TELEFONE;CELULAR\n";
    for (Person person : users) {
View Full Code Here

Examples of br.gov.serpro.ouvidoria.dao.Dao.query()

    String sql = " select f from Orgao o, Funcionario as f "
        + " where o.id = " + orgao.getId() + " and f.instituicao = "
        + orgao.getId() + " and f.perfil = 1 ";

    funcionario = (Funcionario) funcionarioDao.query(sql).get(0);

    return funcionario;
  }

}
View Full Code Here

Examples of br.gov.serpro.ouvidoria.dao.hibernate.HibernateDao.query()

                //estado da mensagem
                query.setInteger( "estadoId", Integer.parseInt( estadoAcionamento ) );
            }
           
            // obter os acionamentos para atualizar seus estados
            List results = acionamentoDao.query( query );
           
              if (!palavraChave.trim().equals(""))
                results = filtrarPalavraChave(results, palavraChave);
            
            // atualizar os estados dos acionamentos
View Full Code Here

Examples of ca.carleton.gcrc.dbSec.DbTableAccess.query()

    List<FieldSelector> groupByColumnNames = getGroupByFromRequest(request);
    List<OrderSpecifier> orderBy = getOrderByList(request);
    Integer limit = getLimitFromRequest(request);
    Integer offset = getOffsetFromRequest(request);
   
    JSONArray queriedObjects = tableAccess.query(
        whereMap
        ,selectSpecifiers
        ,groupByColumnNames
        ,orderBy
        ,limit
View Full Code Here

Examples of co.cubicode.jdbcframework.DatabaseFactory.query()

    DatabaseFactory instance = DatabaseFactory.getInstance("rbac");
    SQLQuery sql = SQL.getSQL(Permission.class, "findByPrimaryKey");
    sql.setParameter("application", application);
    sql.setParameter("objectType", objectType);
    sql.setParameter("operationType", operationType);
    return instance.query(Permission.class, sql);
  }

}
View Full Code Here

Examples of com.alibaba.druid.sql.dialect.mysql.parser.MySqlSelectParser.query()

        return new MySqlOutputVisitor(out);
    }

    public SQLSelectQueryBlock explainToSelectSQLObject(MappingEngine engine, String sql) {
        MySqlSelectParser selectParser = new MySqlSelectParser(sql);
        MySqlSelectQueryBlock query = (MySqlSelectQueryBlock) selectParser.query();

        Integer maxLimit = engine.getMaxLimit();

        if (maxLimit != null) {
            if (query.getLimit() == null) {
View Full Code Here

Examples of com.alibaba.druid.sql.dialect.oracle.parser.OracleSelectParser.query()

        return new OracleOutputVisitor(out, false);
    }

    public SQLSelectQueryBlock explainToSelectSQLObject(MappingEngine engine, String sql) {
        OracleSelectParser selectParser = new OracleSelectParser(sql);
        OracleSelectQueryBlock query = (OracleSelectQueryBlock) selectParser.query();

        return query;
    }

    public OracleDeleteStatement explainToDeleteSQLObject(MappingEngine engine, String sql) {
View Full Code Here

Examples of com.alibaba.druid.sql.dialect.sqlserver.parser.SQLServerSelectParser.query()

        return new SQLServerOutputVisitor(out);
    }

    public SQLSelectQueryBlock explainToSelectSQLObject(MappingEngine engine, String sql) {
        SQLServerSelectParser selectParser = new SQLServerSelectParser(sql);
        SQLServerSelectQueryBlock query = (SQLServerSelectQueryBlock) selectParser.query();

        Integer maxLimit = engine.getMaxLimit();

        if (maxLimit != null) {
            if (query.getTop() == null) {
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.