Examples of Criterion


Examples of org.libreplan.business.resources.entities.Criterion

    public List<Criterion> getAllCriterions() {
        return workingArrangementsPerOrderModel.getCriterions();
    }

    public void onSelectCriterion() {
        Criterion criterion = (Criterion) bdCriterions.getSelectedElement();
        if (criterion == null) {
            throw new WrongValueException(bdCriterions,
                    _("please, select a Criterion"));
        }
        boolean result = workingArrangementsPerOrderModel
View Full Code Here

Examples of ptolemy.actor.gt.ingredients.criteria.Criterion

            _labelSet = new HashSet<String>();
            try {
                int i = 0;
                for (GTIngredient ingredient : criteria.getIngredientList()) {
                    i++;
                    Criterion criterion = (Criterion) ingredient;
                    if (criterion instanceof AttributeCriterion) {
                        _labelSet.add("criterion" + i);
                    }
                }
            } catch (MalformedStringException e) {
View Full Code Here

Examples of srsim.persistence.Criterion

    record.setBrightness(100.0D);
    record.setTemperature(15.0D);
    record.setEnergyConsumption(1400.0D);
    record.setTimeStamp(System.currentTimeMillis());
    ds.persist(record);
    Criterion criterion = new Criterion("temperature").lessEqual("20").and(
        new Criterion("brightness").lessThan("10000"));
    List<SimulationRecord> storedRecords = ds.find(criterion);
    Assert.assertFalse(storedRecords.isEmpty());
  }
View Full Code Here

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

Examples of vn.pyco.commons.dao.criteria.Criterion

    @SuppressWarnings(value = "unchecked")
    @Override
    public final T get(I id) {
        Criteria criteria = createCriteria();
        Criterion criterion = Restrictions.eq(Identifiable.PROP_ID, id);
        criteria.add(criterion);
        if (_deletable) {
            Criterion notDeleted = Restrictions.eq(Undeletable.PROP_DELETED, new Boolean(false));
            criteria.add(notDeleted);
        }
        return (T) _entityManager.find(_clazz, id);
    }
View Full Code Here

Examples of vn.pyco.commons.dao.criteria.Criterion

    }

    @SuppressWarnings("unchecked")
    @Override
    public final List<T> get(I... ids) {
        Criterion criterion = Restrictions.in(Identifiable.PROP_ID, ids);
        return findByCriteria(createCriteria().add(criterion));
    }
View Full Code Here

Examples of vn.pyco.commons.dao.criteria.Criterion

    @SuppressWarnings("unchecked")
    @Override
    public final List<T> get(Inheritable<T> parent) {
        if (parent == null) {
            Criterion criterion = Restrictions.isNull(Inheritable.PROP_PARENT);
            return findByCriteria(createCriteria().add(criterion));
        } else {
            Criterion criterion = Restrictions.eq(Inheritable.PROP_PARENT, parent);
            return findByCriteria(createCriteria().add(criterion));
        }
    }
View Full Code Here

Examples of vn.pyco.commons.dao.criteria.Criterion

    @SuppressWarnings("unchecked")
    @Override
    public final List<T> getAll() {
        Criteria criteria = createCriteria();
        if (_deletable) {
            Criterion notDeleted = Restrictions.eq(Undeletable.PROP_DELETED, new Boolean(false));
            criteria.add(notDeleted);
        }
        return findByCriteria(criteria);
    }
View Full Code Here

Examples of vn.pyco.commons.dao.criteria.Criterion

    @Override
    public long countAll() {
        Criteria criteria = createCriteria();
        criteria.setProjection(Projections.count(Identifiable.PROP_ID));
        if (isDeletable()) {
            Criterion notDeleted = Restrictions.eq(Undeletable.PROP_DELETED, new Boolean(false));
            criteria.add(notDeleted);
        }
        Long count = (Long) criteria.uniqueResult(_entityManager);
       
        return count;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.