All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.eti.clairton.repository.NotNull Maven / Gradle / Ivy

There is a newer version: 3.2.4
Show newest version
package br.eti.clairton.repository;

import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.Expression;
import javax.persistence.criteria.Predicate;

/**
 * Cria o {@link Predicate} não nulo.
 *
 * @author Clairton Rodrigo Heinzen [email protected]
 */
public class NotNull implements Comparator {
	private static final long serialVersionUID = 1L;
    /**
     * {@inheritDoc}
     */
    @Override
    public Predicate build(final CriteriaBuilder cb, final Expression x, final Object y) {
        return cb.isNotNull(x);
    }

    @Override
    public String toString() {
    	return "!∅";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy