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

org.hibernate.query.sqm.tree.predicate.EmptinessSqmPredicate Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha3
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
 */
package org.hibernate.query.sqm.tree.predicate;

import org.hibernate.query.sqm.consume.spi.SemanticQueryWalker;
import org.hibernate.query.sqm.tree.expression.domain.SqmPluralAttributeReference;

/**
 * @author Steve Ebersole
 */
public class EmptinessSqmPredicate extends AbstractNegatableSqmPredicate {
	private final SqmPluralAttributeReference expression;

	public EmptinessSqmPredicate(SqmPluralAttributeReference expression) {
		this( expression, false );
	}

	public EmptinessSqmPredicate(SqmPluralAttributeReference expression, boolean negated) {
		super( negated );
		this.expression = expression;
	}

	public SqmPluralAttributeReference getExpression() {
		return expression;
	}

	@Override
	public  T accept(SemanticQueryWalker walker) {
		return walker.visitIsEmptyPredicate( this );
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy