Package de.xanders.data.common.util

Examples of de.xanders.data.common.util.CriteriaSearchParameter


        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), ActivityImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            CriteriaSearchParameter param1 = new CriteriaSearchParameter(criteria.getBeginDate(),
                    "beginDate", CriteriaSearchParameter.GREATER_THAN_OR_EQUAL_COMPARATOR);
            criteriaSearch.addParameter(param1);
            CriteriaSearchParameter param2 = new CriteriaSearchParameter(criteria.getEndDate(),
                    "endDate", CriteriaSearchParameter.GREATER_THAN_OR_EQUAL_COMPARATOR);
            criteriaSearch.addParameter(param2);
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
View Full Code Here


        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), UserImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            CriteriaSearchParameter param1 = new CriteriaSearchParameter(criteria.getUserIdent(),
                    "userIdent", CriteriaSearchParameter.EQUAL_COMPARATOR);
            criteriaSearch.addParameter(param1);
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
View Full Code Here

        try {
            CriteriaSearch criteriaSearch = new CriteriaSearch(super.getSession(false), PropertyImpl.class);
            criteriaSearch.getConfiguration().setFirstResult(criteria.getFirstResult());
            criteriaSearch.getConfiguration().setFetchSize(criteria.getFetchSize());
            criteriaSearch.getConfiguration().setMaximumResultSize(criteria.getMaximumResultSize());
            CriteriaSearchParameter param1 = new CriteriaSearchParameter(criteria.getPropertyGroup(),
                    "propertyGroup");
            criteriaSearch.addParameter(param1);
            CriteriaSearchParameter param2 = new CriteriaSearchParameter("Y",
                    "selectable");
            criteriaSearch.addParameter(param2);
            java.util.List results = criteriaSearch.executeAsList();
            transformEntities(TRANSFORM_NONE, results);
            return results;
View Full Code Here

TOP

Related Classes of de.xanders.data.common.util.CriteriaSearchParameter

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.