Package easyJ.database.dao

Examples of easyJ.database.dao.OrderRule


        int ruleSize = orderRules.size();
        if (ruleSize > 0) {
            orderRule.append(" order by ");
            for (int i = 0; i < ruleSize - 1; i++) {
                OrderRule rule = (OrderRule) orderRules.get(i);
                orderRule.append(rule.getOrderColumn());
                orderRule.append(" ");
                orderRule.append(rule.getOrderDirection().toString());
                orderRule.append(",");
            }
            OrderRule rule = (OrderRule) orderRules.get(ruleSize - 1);
            orderRule.append(rule.getOrderColumn());
            orderRule.append(" ");
            orderRule.append(rule.getOrderDirection().toString());
        }

        StringBuffer group = new StringBuffer();
        if (groupItems.size() > 0)
            group.append(" group by ");
View Full Code Here


        StringBuffer orderRule = new StringBuffer();
        int ruleSize = orderRules.size();
        if (ruleSize > 0) {
            orderRule.append(" order by ");
            for (int i = 0; i < ruleSize - 1; i++) {
                OrderRule rule = (OrderRule) orderRules.get(i);
                orderRule.append(rule.getOrderColumn());
                orderRule.append(" ");
                orderRule.append(rule.getOrderDirection().toString());
                orderRule.append(",");
            }
            OrderRule rule = (OrderRule) orderRules.get(ruleSize - 1);
            orderRule.append(rule.getOrderColumn());
            orderRule.append(" ");
            orderRule.append(rule.getOrderDirection().toString());
        }

        StringBuffer group = new StringBuffer();
        if (groupItems.size() > 0)
            group.append(" group by ");
View Full Code Here

            // 生成Use Case具体描述的内容
            ArrayList ucis = new ArrayList();

            UseCaseInteraction uci = new UseCaseInteraction();
            uci.setUseCaseId(uc.getUseCaseId());
            OrderRule orderule = new OrderRule();
            orderule.setOrderColumn("sequence");
            orderule.setOrderDirection(OrderDirection.ASC);
            OrderRule[] orderRules = { orderule };
            String temp;
            ucis = cdp.query(uci, orderRules);
            if (ucis.size() > 0) {
              for (int k = 0; k < ucis.size(); k++) {
View Full Code Here

    }

    public void mainPage() throws EasyJException {
        dp.setContext(null);
        Project project = new Project();
        OrderRule rule = new OrderRule();
        rule.setOrderColumn("domainName");
        rule.setOrderDirection(OrderDirection.ASC);
        OrderRule orderRules[] = {
            rule
        };
        ArrayList list = dp.query(project, orderRules);
        returnMessage = HtmlClientComponentService.getObjectListHtml(list,
                this.getClass().getName(), "domainName", "projectName", "", 4)
View Full Code Here

            throws EasyJException {
        StringBuffer buffer = new StringBuffer();
        Dictionary dic = new Dictionary();
        dic.setDicType(propertyValueTable);       
        dic.setUseState("Y");
        OrderRule orderRule = new OrderRule();
        orderRule.setOrderColumn("dicSequence");
        orderRule.setOrderDirection(OrderDirection.ASC);
        OrderRule[] orderRules = {
            orderRule
        };
        List valueDatas = sdf.query(dic, orderRules);
        String showType = null;
View Full Code Here

        }
        Page page = null;
        if (GenericValidator.isBlankOrNull(orderByColumn)) {
            page = dp.query(lower, upper, pageNum, null);
        } else {
            OrderRule or = new OrderRule(orderByColumn, OrderDirection
                    .parse(orderDirection));
            OrderRule[] ors = {
                or
            };
            page = dp.query(lower, upper, pageNum, ors);
View Full Code Here

     * @throws EasyJException
     */
    public static ArrayList getProperties(boolean refresh) throws EasyJException {
        if (propertyList == null  || refresh) {
            UserPropertyRight property = new UserPropertyRight();
            OrderRule sequenceRule = new OrderRule();
            sequenceRule.setOrderColumn("sequence");
            sequenceRule.setOrderDirection(OrderDirection.ASC);
            OrderRule tableRule = new OrderRule();
            tableRule.setOrderColumn("className");
            tableRule.setOrderDirection(OrderDirection.ASC);
            OrderRule[] rules = {
                tableRule, sequenceRule
            };
            propertyList = sdp.query(property, rules);
        }
View Full Code Here

    }

    public void mainPage() throws EasyJException {
        dp.setContext(null);
        Project project = new Project();
        OrderRule rule = new OrderRule();
        rule.setOrderColumn("domainName");
        rule.setOrderDirection(OrderDirection.ASC);
        OrderRule orderRules[] = {
            rule
        };
        ArrayList list = dp.query(project, orderRules);
        returnMessage = HtmlClientComponentService.getObjectListHtml(list,
                this.getClass().getName(), "domainName", "projectName", "", 4)
View Full Code Here

            throws EasyJException {
        StringBuffer buffer = new StringBuffer();
        Dictionary dic = new Dictionary();
        dic.setDicType(propertyValueTable);
        dic.setUseState("Y");
        OrderRule orderRule = new OrderRule();
        orderRule.setOrderColumn("dicSequence");
        orderRule.setOrderDirection(OrderDirection.ASC);
        OrderRule[] orderRules = {
            orderRule
        };
        List valueDatas = sdf.query(dic, orderRules);
        String showType = null;
View Full Code Here

            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);
            OrderRule[] orderRules = {
                or
            };
            Session session = null;
            try {
View Full Code Here

TOP

Related Classes of easyJ.database.dao.OrderRule

Copyright © 2018 www.massapicom. 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.