Package uk.gov.nationalarchives.droid.core.interfaces.filter.expressions

Examples of uk.gov.nationalarchives.droid.core.interfaces.filter.expressions.Criterion


        String propertyName = field.getPropertyName();
//        if (field.ordinal() >= CriterionFieldEnum.PUID.ordinal()) {
//            propertyName = "format." + field.getPropertyName();
//        }
       
        Criterion restriction;
        final Object value = criterion.getValue();
        switch (criterion.getOperator()) {
            case EQ:
                restriction = Restrictions.eq(propertyName, value);
                break;
View Full Code Here


        Date from = new DateMidnight(dateValue).toDate();
        Date to = new DateMidnight(dateValue).plusDays(1).toDate();
       
        String propertyName = field.getPropertyName();

        Criterion criterion;
       
        switch (dateCriterion.getOperator()) {
            case EQ:
                criterion = Restrictions.and(Restrictions.gte(propertyName, from), Restrictions.lt(propertyName, to));
                break;
View Full Code Here

                ProfileInstanceManager profileInstanceManager =
                    profileContextLocator.openProfileInstanceManager(profile);
               
                Filter filterToUse = optionalFilter == null ? profile.getFilter() : optionalFilter;
               
                Criterion filter = ReportUtils.buildFilter(filterToUse, specItem.getFilter());
               
                List<ReportLineItem> reportData = profileInstanceManager.getReportData(
                        filter, specItem.getField(), specItem.getGroupByFields());
   
                for (ReportLineItem reportLineItem : reportData) {
View Full Code Here

TOP

Related Classes of uk.gov.nationalarchives.droid.core.interfaces.filter.expressions.Criterion

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.