org.mentabean.jdbc
Interface QueryBuilder.HasInitClause<T extends QueryBuilder.InitClause>

All Known Implementing Classes:
QueryBuilder.Having, QueryBuilder.Where
Enclosing class:
QueryBuilder

public static interface QueryBuilder.HasInitClause<T extends QueryBuilder.InitClause>


Method Summary
 T clause(Function function)
          Insert the function as a clause in query (same of clauseIf(true, function)).
 T clause(Param param)
          Insert the param as a clause in query (same of clauseIf(true, param)).
 T clause(QueryBuilder.Alias<?> alias, Object property)
          Insert the field as a clause in query (same of clauseIf(true, alias, property)).
 T clauseIf(boolean clauseIf, Function function)
          Insert the function as a clause in query if and only if the flag clauseIf is true
 T clauseIf(boolean clauseIf, Param param)
          Insert the param as a clause in query if and only if the flag clauseIf is true
 T clauseIf(boolean clauseIf, QueryBuilder.Alias<?> alias, Object property)
          Insert the field as a clause in query if and only if the flag clauseIf is true
 

Method Detail

clause

T clause(Param param)
Insert the param as a clause in query (same of clauseIf(true, param)).

E.g.:

Parameters:
param -

clause

T clause(Function function)
Insert the function as a clause in query (same of clauseIf(true, function)).

E.g.:

Parameters:
function -

clause

T clause(QueryBuilder.Alias<?> alias,
         Object property)
Insert the field as a clause in query (same of clauseIf(true, alias, property)).

E.g.:

Parameters:
alias - - The alias to get property
property - - The property

clauseIf

T clauseIf(boolean clauseIf,
           Param param)
Insert the param as a clause in query if and only if the flag clauseIf is true

Parameters:
clauseIf - - Flag indicating if this clause will be inserted in SQL query
param -
See Also:
clause(Param)

clauseIf

T clauseIf(boolean clauseIf,
           Function function)
Insert the function as a clause in query if and only if the flag clauseIf is true

Parameters:
clauseIf - - Flag indicating if this clause will be inserted in SQL query
function -
See Also:
clause(Function)

clauseIf

T clauseIf(boolean clauseIf,
           QueryBuilder.Alias<?> alias,
           Object property)
Insert the field as a clause in query if and only if the flag clauseIf is true

Parameters:
clauseIf - - Flag indicating if this clause will be inserted in SQL query
alias - - The alias to get property
property - - The property
See Also:
#clause(Alias, Object)


Copyright © 2013. All Rights Reserved.