org.sql.generation.implementation.grammar.builders.query
Class QueryBuilderImpl

java.lang.Object
  extended by org.sql.generation.implementation.grammar.builders.query.QueryBuilderImpl
All Implemented Interfaces:
AbstractBuilder<QueryExpressionBody>, QueryBuilder

public class QueryBuilderImpl
extends Object
implements QueryBuilder

Author:
Stanislav Muhametsin

Field Summary
static SetQuantifier DEFAULT_SET_QUANTIFIER_FOR_EXCEPTS
           
static SetQuantifier DEFAULT_SET_QUANTIFIER_FOR_INTERSECTIONS
           
static SetQuantifier DEFAULT_SET_QUANTIFIER_FOR_UNIONS
           
 
Constructor Summary
  QueryBuilderImpl(QueryExpressionBody topLevelExpression)
           
protected QueryBuilderImpl(QueryExpressionBody topLevelExpression, SetQuantifier defaultSetQuantifierForUnions, SetQuantifier defaultSetQuantifierForIntersections, SetQuantifier defaultSetQuantifierForExcepts)
           
 
Method Summary
 QueryExpressionBody createExpression()
           
 QueryBuilder except(CorrespondingSpec correspondingSpec, QueryExpressionBody another)
           
 QueryBuilder except(QueryExpressionBody another)
           
 QueryBuilder except(SetQuantifier setQuantifier, CorrespondingSpec correspondingSpec, QueryExpressionBody another)
           
 QueryBuilder except(SetQuantifier setQuantifier, QueryExpressionBody another)
           
 QueryBuilder intersect(CorrespondingSpec correspondingSpec, QueryExpressionBody another)
           
 QueryBuilder intersect(QueryExpressionBody another)
           
 QueryBuilder intersect(SetQuantifier setQuantifier, CorrespondingSpec correspondingSpec, QueryExpressionBody another)
           
 QueryBuilder intersect(SetQuantifier setQuantifier, QueryExpressionBody another)
           
 QueryBuilder union(CorrespondingSpec correspondingSpec, QueryExpressionBody another)
           
 QueryBuilder union(QueryExpressionBody another)
           
 QueryBuilder union(SetQuantifier setQuantifier, CorrespondingSpec correspondingSpec, QueryExpressionBody another)
           
 QueryBuilder union(SetQuantifier setQuantifier, QueryExpressionBody another)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SET_QUANTIFIER_FOR_UNIONS

public static final SetQuantifier DEFAULT_SET_QUANTIFIER_FOR_UNIONS

DEFAULT_SET_QUANTIFIER_FOR_INTERSECTIONS

public static final SetQuantifier DEFAULT_SET_QUANTIFIER_FOR_INTERSECTIONS

DEFAULT_SET_QUANTIFIER_FOR_EXCEPTS

public static final SetQuantifier DEFAULT_SET_QUANTIFIER_FOR_EXCEPTS
Constructor Detail

QueryBuilderImpl

public QueryBuilderImpl(QueryExpressionBody topLevelExpression)

QueryBuilderImpl

protected QueryBuilderImpl(QueryExpressionBody topLevelExpression,
                           SetQuantifier defaultSetQuantifierForUnions,
                           SetQuantifier defaultSetQuantifierForIntersections,
                           SetQuantifier defaultSetQuantifierForExcepts)
Method Detail

union

public QueryBuilder union(QueryExpressionBody another)
Specified by:
union in interface QueryBuilder

union

public QueryBuilder union(CorrespondingSpec correspondingSpec,
                          QueryExpressionBody another)
Specified by:
union in interface QueryBuilder

union

public QueryBuilder union(SetQuantifier setQuantifier,
                          QueryExpressionBody another)
Specified by:
union in interface QueryBuilder

union

public QueryBuilder union(SetQuantifier setQuantifier,
                          CorrespondingSpec correspondingSpec,
                          QueryExpressionBody another)
Specified by:
union in interface QueryBuilder

intersect

public QueryBuilder intersect(QueryExpressionBody another)
Specified by:
intersect in interface QueryBuilder

intersect

public QueryBuilder intersect(CorrespondingSpec correspondingSpec,
                              QueryExpressionBody another)
Specified by:
intersect in interface QueryBuilder

intersect

public QueryBuilder intersect(SetQuantifier setQuantifier,
                              QueryExpressionBody another)
Specified by:
intersect in interface QueryBuilder

intersect

public QueryBuilder intersect(SetQuantifier setQuantifier,
                              CorrespondingSpec correspondingSpec,
                              QueryExpressionBody another)
Specified by:
intersect in interface QueryBuilder

except

public QueryBuilder except(QueryExpressionBody another)
Specified by:
except in interface QueryBuilder

except

public QueryBuilder except(CorrespondingSpec correspondingSpec,
                           QueryExpressionBody another)
Specified by:
except in interface QueryBuilder

except

public QueryBuilder except(SetQuantifier setQuantifier,
                           QueryExpressionBody another)
Specified by:
except in interface QueryBuilder

except

public QueryBuilder except(SetQuantifier setQuantifier,
                           CorrespondingSpec correspondingSpec,
                           QueryExpressionBody another)
Specified by:
except in interface QueryBuilder

createExpression

public QueryExpressionBody createExpression()
Specified by:
createExpression in interface AbstractBuilder<QueryExpressionBody>


Copyright © 2010. All Rights Reserved.