org.hibernate.sql.ast.tree.cte.CteStatement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* 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.sql.ast.tree.cte;
import org.hibernate.sql.ast.tree.Statement;
import org.hibernate.sql.ast.tree.select.QuerySpec;
/**
* A statement using a CTE
*
* @author Steve Ebersole
*/
public class CteStatement implements Statement {
private final String cteLabel;
private final CteTable cteTable;
private final QuerySpec cteDefinition;
private final CteConsumer cteConsumer;
public CteStatement(QuerySpec cteDefinition, String cteLabel, CteTable cteTable, CteConsumer cteConsumer) {
this.cteDefinition = cteDefinition;
this.cteLabel = cteLabel;
this.cteTable = cteTable;
this.cteConsumer = cteConsumer;
}
public String getCteLabel() {
return cteLabel;
}
public CteTable getCteTable() {
return cteTable;
}
public QuerySpec getCteDefinition() {
return cteDefinition;
}
public CteConsumer getCteConsumer() {
return cteConsumer;
}
}