Best code examples for Hibernate ORM HqlSqlWalkerNode class (org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM HqlSqlWalkerNode class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM HqlSqlWalkerNode examples from Open Source projects
This code example shows how to use the following methods: getASTFactory
 
	public static void generateSingleScalarColumn(HqlSqlWalkerNode node, int i) { 
		ASTFactory factory = node.getASTFactory(); 
		ASTUtil.createSibling( factory, SqlTokenTypes.SELECT_COLUMNS, " as " + NameGenerator.scalarName( i, 0 ), node ); 
	} 
 
	/** 
	 * Generates the scalar column AST nodes for a given array of SQL columns 
	 */ 
	public static void generateScalarColumns(HqlSqlWalkerNode node, String sqlColumns[], int i) { 
		if ( sqlColumns.length == 1 ) { 
			generateSingleScalarColumn( node, i ); 
		} 
		else { 
			ASTFactory factory = node.getASTFactory(); 
			AST n = node; 
			n.setText( sqlColumns[0] );	// Use the DOT node to emit the first column name. 
			// Create the column names, folled by the column aliases. 
			for ( int j = 0; j < sqlColumns.length; j++ ) { 
				if ( j > 0 ) { 
Full Snippet Info
4
CodeRank