org.hibernate.procedure.internal.SqlSelectionImpl 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.procedure.internal;
import org.hibernate.sql.JdbcValueExtractor;
import org.hibernate.sql.ast.consume.spi.SqlAstWalker;
import org.hibernate.sql.results.spi.SqlSelection;
/**
* Standard SqlSelection implementation for procedure/function based
* queries.
*
* @author Steve Ebersole
*/
public class SqlSelectionImpl implements SqlSelection {
private final JdbcValueExtractor jdbcValueExtractor;
private final int position;
public SqlSelectionImpl(JdbcValueExtractor jdbcValueExtractor, int position) {
this.jdbcValueExtractor = jdbcValueExtractor;
this.position = position;
}
@Override
public JdbcValueExtractor getJdbcValueExtractor() {
return jdbcValueExtractor;
}
@Override
public int getValuesArrayPosition() {
return position;
}
@Override
public void accept(SqlAstWalker interpreter) {
throw new UnsupportedOperationException( );
}
}