org.hibernate.hql.internal.ast.tree.SelectClause Java Examples
The following examples show how to use
org.hibernate.hql.internal.ast.tree.SelectClause.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReactiveQueryLoader.java From hibernate-reactive with GNU Lesser General Public License v2.1 | 5 votes |
public ReactiveQueryLoader( QueryTranslatorImpl queryTranslator, SessionFactoryImplementor factory, SelectClause selectClause) { super( queryTranslator, factory, selectClause ); this.queryTranslator = queryTranslator; this.factory = factory; this.selectClause = selectClause; this.resultSetProcessor = new ReactiveLoaderBasedResultSetProcessor( this ) { public CompletionStage<List<Object>> reactiveExtractResults(ResultSet rs, SharedSessionContractImplementor session, QueryParameters queryParameters, NamedParameterContext namedParameterContext, boolean returnProxies, boolean readOnly, ResultTransformer forcedResultTransformer, List<AfterLoadAction> afterLoadActionList) throws SQLException { final RowSelection rowSelection = queryParameters.getRowSelection(); final ResultSet resultSetPreprocessed = preprocessResultSet( rs, rowSelection, getLimitHandler( rowSelection ), false, session ); return super.reactiveExtractResults( resultSetPreprocessed, session, queryParameters, namedParameterContext, returnProxies, readOnly, forcedResultTransformer, afterLoadActionList ); } }; }
Example #2
Source File: QueryLoader.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Creates a new Loader implementation. * * @param queryTranslator The query translator that is the delegator. * @param factory The factory from which this loader is being created. * @param selectClause The AST representing the select clause for loading. */ public QueryLoader( final QueryTranslatorImpl queryTranslator, final SessionFactoryImplementor factory, final SelectClause selectClause) { super( factory ); this.queryTranslator = queryTranslator; initialize( selectClause ); postInstantiate(); }
Example #3
Source File: HqlSqlWalker.java From lams with GNU General Public License v2.0 | 5 votes |
private void createSelectClauseFromFromClause(QueryNode qn) throws SemanticException { AST select = astFactory.create( SELECT_CLAUSE, "{derived select clause}" ); AST sibling = qn.getFromClause(); qn.setFirstChild( select ); select.setNextSibling( sibling ); selectClause = (SelectClause) select; selectClause.initializeDerivedSelectClause( currentFromClause ); LOG.debug( "Derived SELECT clause created." ); }
Example #4
Source File: HqlSqlWalker.java From lams with GNU General Public License v2.0 | 4 votes |
private void useSelectClause(AST select) throws SemanticException { selectClause = (SelectClause) select; selectClause.initializeExplicitSelectClause( currentFromClause ); }
Example #5
Source File: HqlSqlWalker.java From lams with GNU General Public License v2.0 | 4 votes |
public SelectClause getSelectClause() { return selectClause; }