
org.hibernate.jpa.criteria.AbstractNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-entitymanager
Show all versions of hibernate-entitymanager
A module of the Hibernate O/RM project
/*
* 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 .
*/
package org.hibernate.jpa.criteria;
import java.io.Serializable;
/**
* All nodes in a criteria query tree will generally need access to the {@link CriteriaBuilderImpl} from which they
* come. This base class provides convenient, consistent support for that.
*
* @author Steve Ebersole
*/
public abstract class AbstractNode implements Serializable {
private final CriteriaBuilderImpl criteriaBuilder;
public AbstractNode(CriteriaBuilderImpl criteriaBuilder) {
this.criteriaBuilder = criteriaBuilder;
}
/**
* Provides access to the underlying {@link CriteriaBuilderImpl}.
*
* @return The underlying {@link CriteriaBuilderImpl} instance.
*/
public CriteriaBuilderImpl criteriaBuilder() {
return criteriaBuilder;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy