Package com.centraview.valuelist

Examples of com.centraview.valuelist.FieldDescriptor


      listParameters = new ValueListParameters(ValueListConstants.GROUP_LIST_TYPE, listPreference.getRecordsPerPage(), 1);
    } else { // paging or sorting or something, use the parameters from the request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.groupViewMap.get(listPreference.getSortElement());
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder()) {
        listParameters.setSortDirection("ASC");
      } else {
        listParameters.setSortDirection("DESC");
      }
View Full Code Here


    if (request.getAttribute("listParameters") != null) {
      listParameters = (ValueListParameters)request.getAttribute("listParameters");
    } else {
      listParameters = new ValueListParameters(valueListType, listPreference.getRecordsPerPage(), 1);
      // Sorting
      FieldDescriptor sortField = (FieldDescriptor)viewMap.get(listPreference.getSortElement());
      if (sortField != null) {
        listParameters.setSortColumn(sortField.getQueryIndex());
      } else {
        listParameters.setSortColumn(1)// probably Id.
      }
      if (listPreference.getsortOrder()) {
        listParameters.setSortDirection("ASC");
View Full Code Here

      listParameters = new ValueListParameters(ValueListConstants.GROUP_LOOKUP_LIST_TYPE, listPreference.getRecordsPerPage(), 1);
    } else { // paging or sorting or something, use the parameters from the request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.groupLookupViewMap.get(listPreference.getSortElement());
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder()) {
        listParameters.setSortDirection("ASC");
      } else {
        listParameters.setSortDirection("DESC");
      }
View Full Code Here

    } else { // paging or sorting or something, use the parameters from the
              // request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.individualViewMap
          .get(listPreference.getSortElement());
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder()) {
        listParameters.setSortDirection("ASC");
      } else {
        listParameters.setSortDirection("DESC");
      }
View Full Code Here

      ValueListParameters listParameters = (ValueListParameters)request
          .getAttribute("listParameters");
      if (listParameters == null) {
        listParameters = new ValueListParameters(ValueListConstants.GROUP_MEMBER_LIST_TYPE,
            listPreference.getRecordsPerPage(), 1);
        FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.individualViewMap
            .get(listPreference.getSortElement());
        listParameters.setSortColumn(sortField.getQueryIndex());
        if (listPreference.getsortOrder()) {
          listParameters.setSortDirection("ASC");
        } else {
          listParameters.setSortDirection("DESC");
        }
View Full Code Here

    ValueListParameters listParameters = new ValueListParameters(
        ValueListConstants.ENTITY_LIST_TYPE, rpp, current);
    String filter = "SELECT entity.entityId FROM entity WHERE entityId IN (" + selectedIds + ")";
    listParameters.setFilter(filter);
    ArrayList columns = new ArrayList();
    FieldDescriptor nameField = (FieldDescriptor)ValueListConstants.entityViewMap.get("Name");
    listParameters.setSortColumn(nameField.getQueryIndex());
    listParameters.setSortDirection("ASC");
    columns.add(nameField);
    listParameters.setColumns(columns);
    ValueList valueList = null;
    try {
View Full Code Here

      listParameters = new ValueListParameters(ValueListConstants.TIMESHEET_LIST_TYPE, listPreference.getRecordsPerPage(), 1);
    } else { // paging or sorting or something, use the parameters from the request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.timeSheetViewMap.get(listPreference.getSortElement());
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder())
        listParameters.setSortDirection("ASC");
      else
        listParameters.setSortDirection("DESC");
    }
View Full Code Here

    if (request.getAttribute("listParameters") != null) {
      listParameters = (ValueListParameters)request.getAttribute("listParameters");
    } else {
      listParameters = new ValueListParameters(ValueListConstants.LOCATION_LIST_TYPE, 100, 1);
      // Sorting
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.locationViewMap
          .get("location");
      listParameters.setSortColumn(sortField.getQueryIndex());
      listParameters.setSortDirection("ASC");
    }
    ArrayList columns = new ArrayList();
    columns.add(ValueListConstants.locationViewMap.get("location"));
    listParameters.setColumns(columns);
View Full Code Here

    } else { // paging or sorting or something, use the parameters from the request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0)
    {
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.proposalsViewMap.get(listPreference.getSortElement());
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder())
      {
        listParameters.setSortDirection("ASC");
      } else {
        listParameters.setSortDirection("DESC");
View Full Code Here

             // request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      System.out.println(listPreference.getSortElement());
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.tasksViewMap.get(listPreference.getSortElement());
     
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder()) {
        listParameters.setSortDirection("ASC");
      } else {
        listParameters.setSortDirection("DESC");
      }
View Full Code Here

TOP

Related Classes of com.centraview.valuelist.FieldDescriptor

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.