Methods Summary |
---|
public final FromClause | getFromClause()
if ( fromClause == null ) {
fromClause = ( FromClause ) ASTUtil.findTypeInChildren( this, HqlSqlTokenTypes.FROM );
}
return fromClause;
|
protected abstract org.apache.commons.logging.Log | getLog()
|
public final antlr.collections.AST | getWhereClause()
if ( whereClause == null ) {
whereClause = locateWhereClause();
// If there is no WHERE node, make one.
if ( whereClause == null ) {
getLog().debug( "getWhereClause() : Creating a new WHERE clause..." );
whereClause = ASTUtil.create( getWalker().getASTFactory(), HqlSqlTokenTypes.WHERE, "WHERE" );
// inject the WHERE after the parent
AST parent = ASTUtil.findTypeInChildren( this, getWhereClauseParentTokenType() );
whereClause.setNextSibling( parent.getNextSibling() );
parent.setNextSibling( whereClause );
}
}
return whereClause;
|
protected abstract int | getWhereClauseParentTokenType()
|
public final boolean | hasWhereClause()
AST whereClause = locateWhereClause();
return whereClause != null && whereClause.getNumberOfChildren() > 0;
|
protected antlr.collections.AST | locateWhereClause()
return ASTUtil.findTypeInChildren( this, HqlSqlTokenTypes.WHERE );
|