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 ); } }