Examples of SelectCommand


Examples of easyJ.database.dao.command.SelectCommand

                    userId);
            Filter filter2 = DAOFactory.getFilter("className",
                    SQLOperator.EQUAL, className);
            Filter filter3 = DAOFactory.getFilter("whetherEdit",
                    SQLOperator.EQUAL, "Y");
            SelectCommand scmd = DAOFactory
                    .getSelectCommand(UserPropertyRight.class);
            filter.addFilter(filter1);
            filter.addFilter(filter2, LogicOperator.AND);
            filter.addFilter(filter3, LogicOperator.AND);
            scmd.setFilter(filter);

            // 得到用来编辑的PropertiesList
            OrderRule or = new OrderRule();
            or.setOrderColumn("editSequence");
            or.setOrderDirection(OrderDirection.ASC);
View Full Code Here

Examples of easyJ.database.dao.command.SelectCommand

                    userId);
            Filter filter2 = DAOFactory.getFilter("className",
                    SQLOperator.EQUAL, className);
            Filter filter3 = DAOFactory.getFilter("whetherDisplay",
                    SQLOperator.EQUAL, "Y");
            SelectCommand scmd = DAOFactory
                    .getSelectCommand(UserPropertyRight.class);
            filter.addFilter(filter1);
            filter.addFilter(filter2, LogicOperator.AND);
            filter.addFilter(filter3, LogicOperator.AND);
            scmd.setFilter(filter);

            // 得到用来编辑的PropertiesList
            OrderRule or = new OrderRule();
            or.setOrderColumn("displaySequence");
            or.setOrderDirection(OrderDirection.ASC);
View Full Code Here

Examples of easyJ.database.dao.command.SelectCommand

                    userId);
            Filter filter2 = DAOFactory.getFilter("className",
                    SQLOperator.EQUAL, className);
            Filter filter3 = DAOFactory.getFilter("whetherQuery",
                    SQLOperator.EQUAL, "Y");
            SelectCommand scmd = DAOFactory
                    .getSelectCommand(UserPropertyRight.class);
            filter.addFilter(filter1);
            filter.addFilter(filter2, LogicOperator.AND);
            filter.addFilter(filter3, LogicOperator.AND);
            scmd.setFilter(filter);

            // 得到用来编辑的PropertiesList
            OrderRule or = new OrderRule();
            or.setOrderColumn("querySequence");
            or.setOrderDirection(OrderDirection.ASC);
View Full Code Here

Examples of easyJ.database.dao.command.SelectCommand

    returnPath = "/WEB-INF/AjaxRegister.jsp";
    return;
  }

  public void registerSave() throws EasyJException {
    SelectCommand scmd = DAOFactory.getSelectCommand(object.getClass());
    SysUser registerUser = (SysUser) object;
    registerUser.setUserGroupIds(",-1,");
    registerUser.setUserGroupNames("访客");
    Filter filter = DAOFactory.getFilter("userName", SQLOperator.EQUAL,
        registerUser.getUserName());
    scmd.setFilter(filter);
    ArrayList result = dp.query(scmd);
    if (result.size() != 0) {
      returnMessage = "用户名已存在";
      returnPath = null;
      return;
View Full Code Here

Examples of easyJ.database.dao.command.SelectCommand

        bi.setTableName(tableName);
        bi.setViewName(viewName);
        Column column = new Column();
        column.setTableName(tableName);
        Session session = SessionFactory.openSession();
        SelectCommand scmd = DAOFactory.getSelectCommand(Column.class);
        scmd.setFilter(DAOFactory.getFilter("tableName", SQLOperator.EQUAL,
                tableName));
        ArrayList tableProperties = session.query(scmd);
        bi.setTableProperties(tableProperties);
        for (int i = 0; i < tableProperties.size(); i++) {
            column = (Column) tableProperties.get(i);
            if ("Y".equals(column.getIsPrimaryKey()))
                bi.setPrimaryKey(column.getColumnName());
        }
        scmd = DAOFactory.getSelectCommand(Column.class);
        scmd.setFilter(DAOFactory.getFilter("tableName", SQLOperator.EQUAL,
                viewName));
        ArrayList viewProperties = session.query(scmd);
        viewProperties.removeAll(tableProperties);
        bi.setViewProperties(viewProperties);
        return bi;
View Full Code Here

Examples of net.lr.tutorial.karaf.db.command.SelectCommand

    public void start(BundleContext context) throws Exception {
        DbAccess dbAccess = new DbAccess();
        DbSelect dbSelect = new DbSelect();
        dbSelect.setDbAccess(dbAccess);
        dbSelect.setContext(context);
        SelectCommand selectCommand = new SelectCommand();
        selectCommand.setDbSelect(dbSelect);
        context.registerService(Action.class.getName(), selectCommand, new Hashtable<String, String>());
    }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.plugins.dbdiff.commands.SelectCommand

        _plugin = plugin;
    }

    public void actionPerformed(ActionEvent evt) {
        if (_session != null) {
            new SelectCommand(_session, _plugin).execute();
        }
    }
View Full Code Here

Examples of org.apache.accumulo.core.util.shell.commands.SelectCommand

        new DeleteTableCommand(), new DeleteUserCommand(), new DropTableCommand(), new DropUserCommand(), new DUCommand(), new EGrepCommand(),
        new ExecfileCommand(), new ExitCommand(), new FlushCommand(), new FormatterCommand(), new GetAuthsCommand(), new GetGroupsCommand(),
        new GetSplitsCommand(), new GrantCommand(), new GrepCommand(), new HelpCommand(), new HiddenCommand(), new HistoryCommand(),
        new ImportDirectoryCommand(), new InfoCommand(), new InsertCommand(), new ListIterCommand(), new ListScansCommand(), new MasterStateCommand(),
        new MaxRowCommand(), new MergeCommand(), new NoTableCommand(), new OfflineCommand(), new OnlineCommand(), new PasswdCommand(), new QuestionCommand(),
        new QuitCommand(), new RenameTableCommand(), new RevokeCommand(), new ScanCommand(), new SelectCommand(), new SelectrowCommand(),
        new SetAuthsCommand(), new SetGroupsCommand(), new SetIterCommand(), new SetScanIterCommand(), new SleepCommand(), new SystemPermissionsCommand(),
        new TableCommand(), new TablePermissionsCommand(), new TablesCommand(), new TraceCommand(), new UserCommand(), new UserPermissionsCommand(),
        new UsersCommand(), new WhoAmICommand(),};
    for (Command cmd : external) {
      commandFactory.put(cmd.getName(), cmd);
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.selection.SelectCommand

     *
     * @return a {@linkplain SelectCommand}
     * @see MapCommand
     */
    public MapCommand createSelectCommand(ILayer layer, Filter filter) {
        return new SelectCommand(layer, filter);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.selection.SelectCommand

     * @return a {@linkplain SelectCommand}
     * @see MapCommand
     */
    @Override
    public UndoableMapCommand createSelectCommand(ILayer layer, Filter filter) {
        return new SelectCommand(layer, filter);
    }
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.