return result;
}
private Tree generateDeleteStatementTree(Object deleteKey, Object entityName, Object aliasClause, Object whereClause) {
Tree result = new CommonTree();
EntityNameTree entityNameTree = (EntityNameTree) entityName;
for ( int i = 0; i < entityNameTree.getEntityCount(); i++ ) {
Tree deleteRoot = new CommonTree( (CommonTree) deleteKey );
deleteRoot.addChild( new EntityNameTree( entityNameTree, entityNameTree.getEntityName( i ) ) );
if ( aliasClause != null ) {
deleteRoot.addChild( (Tree) aliasClause );
}
if ( whereClause != null ) {
deleteRoot.addChild( (Tree) whereClause );