Examples of Select


Examples of org.apache.openjpa.jdbc.sql.Select

    }

    private boolean exists(ClassMapping mapping, Object oid, Object context) {
        // add where conditions on base class to avoid joins if subclass
        // doesn't use oid as identifier
        Select sel = _sql.newSelect();
        while (mapping.getJoinablePCSuperclassMapping() != null)
            mapping = mapping.getJoinablePCSuperclassMapping();

        sel.wherePrimaryKey(oid, mapping, this);
        try {
            return sel.getCount(this) != 0;
        } catch (SQLException se) {
            throw SQLExceptions.getStore(se, _dict);
        }
    }
View Full Code Here

Examples of org.apache.qpid.tools.messagestore.commands.Select

        _commands.put("list", new List(this));
        _commands.put("load", new Load(this));
        _commands.put("move", new Move(this));
        _commands.put("purge", new Purge(this));
        _commands.put("quit", new Quit(this));
        _commands.put("select", new Select(this));
        _commands.put("show", new Show(this));
    }
View Full Code Here

Examples of org.apache.struts2.components.Select

    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        this.tag = new Select(stack, request, response);
    }
View Full Code Here

Examples of org.apache.struts2.jquery.components.Select

    super();
  }

  @Override
  public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
    Component bean = new Select(stack, req, res);
    return bean;
  }
View Full Code Here

Examples of org.apache.wicket.extensions.markup.html.form.select.Select

        info("input: " + input);
      }
    };
    add(form);

    Select site = new Select("site");
    form.add(site);
    site.add(new SelectOption<String>("site1", new Model<String>("tss")));
    site.add(new SelectOption<String>("site2", new Model<String>("jl")));
    site.add(new SelectOption<String>("site3", new Model<String>("sd")));
    site.add(new SelectOption<String>("site4", new Model<String>("bn")));

    Select choices = new Select("choices");
    form.add(choices);
    IOptionRenderer<String> renderer = new IOptionRenderer<String>()
    {

      public String getDisplayValue(Object object)
      {
        return object.toString();
      }

      public IModel<String> getModel(Object value)
      {
        return new Model<String>((String) value);
      }

    };
    IModel<Collection<? extends String>> model = new WildcardCollectionModel<String>(MANY_CHOICES);
    choices.add(new SelectOptions<String>("manychoices", model, renderer));

  }
View Full Code Here

Examples of org.aspectj.apache.bcel.generic.Select

          // assert this is a GOTO
          // this was a return instruction we previously replaced
        } else {
          branch.setTarget(newTarget);
          if (branch instanceof Select) {
            Select select = (Select) branch;
            InstructionHandle[] oldTargets = select.getTargets();
            for (int k = oldTargets.length - 1; k >= 0; k--) {
              select.setTarget(
                k,
                (InstructionHandle) srcToDest.get(oldTargets[k]));
            }
          }
        }
View Full Code Here

Examples of org.bitbucket.rehei.sparqljava.model.Select

  }

  @Override
  public IGroupingHavingOrderOffsetLimitGet selectReduced(String projection,
      where where) {
    list.add(new Select(SelectType.REDUCED, projection, where));
    return compose(IGet.class);
  }
View Full Code Here

Examples of org.codehaus.jparsec.examples.sql.ast.Select

  }
 
  public void testSelect() {
    Parser<Relation> parser = RelationParser.select(NUMBER, NUMBER, TABLE);
    assertParser(parser, "select distinct 1, 2 as id from t1, t2",
        new Select(true,
            Arrays.asList(new Projection(number(1), null), new Projection(number(2), "id")),
            Arrays.asList(table("t1"), table("t2")),
            null, null, null));
    assertParser(parser, "select 1 as id from t where 1",
        new Select(false,
            Arrays.asList(new Projection(number(1), "id")),
            Arrays.asList(table("t")),
            number(1), null, null));
    assertParser(parser, "select 1 as id from t group by 2, 3",
        new Select(false,
            Arrays.asList(new Projection(number(1), "id")),
            Arrays.asList(table("t")),
            null, new GroupBy(Arrays.asList(number(2), number(3)), null), null));
    assertParser(parser, "select 1 as id from t group by 2, 3 having 4",
        new Select(false,
            Arrays.asList(new Projection(number(1), "id")),
            Arrays.asList(table("t")),
            null, new GroupBy(Arrays.asList(number(2), number(3)), number(4)), null));
    assertParser(parser, "select 1 as id from t order by 2 asc, 3 desc",
        new Select(false,
            Arrays.asList(new Projection(number(1), "id")),
            Arrays.asList(table("t")),
            null, null, new OrderBy(Arrays.asList(
                new OrderBy.Item(number(2), true), new OrderBy.Item(number(3), false)))));
  }
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Select

       
        List queryList = query.addList("search-query",List.TYPE_FORM);
       
        if (variableScope())
        {
            Select scope = queryList.addItem().addSelect("scope");
            scope.setLabel(T_search_scope);
            scope.setHelp(T_search_scope_help);
            buildScopeList(scope);
        }
       
        Table queryTable = query.addTable("search-query", 4, 3);
        Row header = queryTable.addRow(Row.ROLE_HEADER);
View Full Code Here

Examples of org.eclipse.emf.query.statements.SELECT

            exclude.add(assignedConstraint.getTechnicalProperty());

          EObjectCondition condition0 = new ExcludeEObjectCondition(
              exclude);

          SELECT statement = new SELECT(new FROM(cataloguge
              .getCatalogueProperties()), new WHERE(condition0
              .AND(condition1.OR(condition2.OR(condition3)))));
          for (Object object : statement.execute()) {
            addTreeItem((TechnicalProperty) object);

          }

          matchesMap.putAll(condition1.getHits());
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.