Package easyJ.database.dao

Examples of easyJ.database.dao.OrderRule


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


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

            HttpServletRequest request = (HttpServletRequest) pageContext
                    .getRequest();
            Object obj = BeanUtil.getEmptyObject(className);
            SingleDataProxy sdp = SingleDataProxy.getInstance();
            sdp.setContext(null);
            OrderRule rule = new OrderRule();
            rule.setOrderColumn(tabProperty);
            rule.setOrderDirection(OrderDirection.ASC);
            OrderRule orderRules[] = {
                rule
            };
            ArrayList list = sdp.query(obj, orderRules);
            out.print(HtmlClientComponentService.getObjectListHtml(list,
                    actionName, tabProperty, showProperty, imgProperty,
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

        ArrayList<Object> sourceList = sdp.query(sourceObject);
        if (!GenericValidator.isBlankOrNull(orderByProperty)
                && direction != null) {
            OrderRule[] orderRules = {
                new OrderRule(orderByProperty, direction)
            };
            sdp.setAccurateProperties(accurateProperties);
            destList = sdp.query(destObject, orderRules);
        } else {
            sdp.setAccurateProperties(accurateProperties);
View Full Code Here

      lower.setUseState("Y");
     
      Dictionary upper = (Dictionary)BeanUtil.cloneObject(lower);
      upper.setParentId(null);
     
        OrderRule orderRule = new OrderRule();
        orderRule.setOrderColumn("dicSequence");
        orderRule.setOrderDirection(OrderDirection.ASC);
        OrderRule[] orderRules = {
            orderRule
        };
      ArrayList list = sdp.query(lower, upper, orderRules);
      return getRadios(list, propertyName, propertyValue, line);
View Full Code Here

      lower.setUseState("Y");
     
      Dictionary upper = (Dictionary)BeanUtil.cloneObject(lower);
      upper.setParentId(null);
     
        OrderRule orderRule = new OrderRule();
        orderRule.setOrderColumn("dicSequence");
        orderRule.setOrderDirection(OrderDirection.ASC);
        OrderRule[] orderRules = {
            orderRule
        };
        ArrayList list = sdp.query(lower, upper, orderRules);
      return getRadios(list, propertyName, propertyValue, line);
View Full Code Here

    ArrayList<Object> destList = null;

    ArrayList<Object> sourceList = sdp.query(sourceObject);
    if (!GenericValidator.isBlankOrNull(orderByProperty)
        && direction != null) {
      OrderRule[] orderRules = { new OrderRule(orderByProperty, direction) };
      sdp.setAccurateProperties(accurateProperties);
      destList = sdp.query(destObject, orderRules);
    } else {
      sdp.setAccurateProperties(accurateProperties);
      destList = sdp.query(destObject);
View Full Code Here

    lower.setUseState("Y");

    Dictionary upper = (Dictionary) BeanUtil.cloneObject(lower);
    upper.setParentId(null);

    OrderRule orderRule = new OrderRule();
    orderRule.setOrderColumn("dicSequence");
    orderRule.setOrderDirection(OrderDirection.ASC);
    OrderRule[] orderRules = { orderRule };
    ArrayList list = sdp.query(lower, upper, orderRules);
    return getRadios(list, propertyName, propertyValue, line);
  }
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.