Package com.github.eikecochu.sqlbuilder
Class From
- java.lang.Object
-
- com.github.eikecochu.sqlbuilder.QueryPartImpl<From>
-
- com.github.eikecochu.sqlbuilder.From
-
- All Implemented Interfaces:
BeforeGroupBy,BeforeJoin,BeforeOrderBy,BeforeUnion,BeforeWhere,QueryBuilder,QueryPart
public class From extends QueryPartImpl<From> implements QueryBuilder, BeforeJoin, BeforeWhere, BeforeGroupBy, BeforeOrderBy, BeforeUnion
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFrom(BeforeFrom parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringstring(QueryOptions options)Transforms this statement into an SQL stringFromsubquery(Query query, java.lang.String alias)Specify a subquery to select fromFromtable(Table table)Specify the target table by Table representationFromtable(java.lang.String table)Specify the target table by nameFromtables(Table... tables)Specify the target table by Table representationsFromtables(java.lang.String... tables)Specify the target tables by name-
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.BeforeJoin
crossJoin, crossJoin, crossJoin, fullOuterJoin, fullOuterJoin, fullOuterJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, joinSQL, leftJoin, leftJoin, leftJoin, leftOuterJoin, leftOuterJoin, leftOuterJoin, outerJoin, outerJoin, outerJoin, rightJoin, rightJoin, rightJoin, rightOuterJoin, rightOuterJoin, rightOuterJoin
-
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.BeforeWhere
where, where, where, whereSQL
-
Methods inherited from interface com.github.eikecochu.sqlbuilder.QueryBuilder
query
-
-
-
-
Constructor Detail
-
From
protected From(BeforeFrom parent)
-
-
Method Detail
-
table
public From table(java.lang.String table)
Specify the target table by name- Parameters:
table- The table name to select from- Returns:
- This FROM statement
-
table
public From table(Table table)
Specify the target table by Table representation- Parameters:
table- The Table representation to select from- Returns:
- This FROM statement
-
tables
public From tables(java.lang.String... tables)
Specify the target tables by name- Parameters:
tables- The table names to select from- Returns:
- This FROM statement
-
tables
public From tables(Table... tables)
Specify the target table by Table representations- Parameters:
tables- The Table representations to select from- Returns:
- This FROM statement
-
subquery
public From subquery(Query query, java.lang.String alias)
Specify a subquery to select from- Parameters:
query- The subquery to select fromalias- The subquery alias- Returns:
- This FROM statement
-
string
public java.lang.String string(QueryOptions options)
Description copied from interface:QueryPartTransforms this statement into an SQL string
-
-