Package com.github.eikecochu.sqlbuilder
Class Where
- java.lang.Object
-
- com.github.eikecochu.sqlbuilder.QueryPartImpl<T>
-
- com.github.eikecochu.sqlbuilder.Conditionable<Where>
-
- com.github.eikecochu.sqlbuilder.Where
-
- All Implemented Interfaces:
BeforeGroupBy,BeforeOrderBy,BeforeUnion,QueryBuilder,QueryPart
public class Where extends Conditionable<Where> implements QueryBuilder, BeforeGroupBy, BeforeOrderBy, BeforeUnion
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.eikecochu.sqlbuilder.Conditionable
Conditionable.Operator
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWhere(BeforeWhere parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Whereexists(QueryBuilder query)Whereexists(java.lang.String sql)java.lang.Stringstring(QueryOptions options)Transforms this statement into an SQL string-
Methods inherited from class com.github.eikecochu.sqlbuilder.Conditionable
and, col, col, col, group, groupStart, or, values
-
Methods inherited from class com.github.eikecochu.sqlbuilder.QueryPartImpl
ext, parent, sql
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.eikecochu.sqlbuilder.BeforeGroupBy
groupBy, groupBy, groupBy, groupBySQL
-
Methods inherited from interface com.github.eikecochu.sqlbuilder.BeforeOrderBy
orderBy, orderBy, orderBy, orderBySQL
-
Methods inherited from interface com.github.eikecochu.sqlbuilder.BeforeUnion
union, union, unionAll, unionSQL
-
Methods inherited from interface com.github.eikecochu.sqlbuilder.QueryBuilder
query
-
-
-
-
Constructor Detail
-
Where
protected Where(BeforeWhere parent)
-
-
Method Detail
-
exists
public Where exists(QueryBuilder query)
-
exists
public Where exists(java.lang.String sql)
-
string
public java.lang.String string(QueryOptions options)
Description copied from interface:QueryPartTransforms this statement into an SQL string- Specified by:
stringin interfaceQueryPart- Overrides:
stringin classConditionable<Where>- Parameters:
options- The QueryOptions to apply for transformation- Returns:
- The created SQL string
-
-