@Override public boolean isManipulationStatement() { return sqlAst.needsExecutor(); } @Override
private void errorIfDML() throws HibernateException { if ( sqlAst.needsExecutor() ) { throw new QueryExecutionRequestException( "Not supported for DML operations", hql ); } }
private void errorIfSelect() throws HibernateException { if ( !sqlAst.needsExecutor() ) { throw new QueryExecutionRequestException( "Not supported for select queries", hql ); } } @Override
if ( sqlAst.needsExecutor() ) { statementExecutor = buildAppropriateStatementExecutor( w );
public boolean isManipulationStatement() { return sqlAst.needsExecutor(); }
public boolean isManipulationStatement() { return sqlAst.needsExecutor(); }
private void errorIfDML() throws HibernateException { if ( sqlAst.needsExecutor() ) { throw new QueryExecutionRequestException( "Not supported for DML operations", hql ); } }
private void errorIfDML() throws HibernateException { if ( sqlAst.needsExecutor() ) { throw new QueryExecutionRequestException( "Not supported for DML operations", hql ); } }
private void errorIfSelect() throws HibernateException { if ( !sqlAst.needsExecutor() ) { throw new QueryExecutionRequestException( "Not supported for select queries", hql ); } }
private void errorIfSelect() throws HibernateException { if ( !sqlAst.needsExecutor() ) { throw new QueryExecutionRequestException( "Not supported for select queries", hql ); } }
if ( sqlAst.needsExecutor() ) { statementExecutor = buildAppropriateStatementExecutor( w );
if ( sqlAst.needsExecutor() ) { statementExecutor = buildAppropriateStatementExecutor( w );