Class SQLSelectBuilderImpl
- java.lang.Object
-
- com.alibaba.druid.sql.builder.impl.SQLSelectBuilderImpl
-
- All Implemented Interfaces:
SQLSelectBuilder
public class SQLSelectBuilderImpl extends Object implements SQLSelectBuilder
-
-
Constructor Summary
Constructors Constructor Description SQLSelectBuilderImpl(DbType dbType)SQLSelectBuilderImpl(SQLSelectStatement stmt, DbType dbType)SQLSelectBuilderImpl(String sql, DbType dbType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SQLSelectGroupByClausecreateGroupBy()protected SQLOrderBycreateOrderBy()protected SQLSelectcreateSelect()protected SQLSelectQuerycreateSelectQueryBlock()SQLSelectBuilderImplfrom(String table)SQLSelectBuilderImplfrom(String table, String alias)protected SQLSelectQueryBlockgetQueryBlock()SQLSelectgetSQLSelect()SQLSelectStatementgetSQLSelectStatement()SQLSelectBuilderImplgroupBy(String expr)SQLSelectBuilderImplhaving(String expr)SQLSelectBuilderImplinto(String expr)SQLSelectBuilderImpllimit(int rowCount)SQLSelectBuilderImpllimit(int rowCount, int offset)SQLSelectBuilderImplorderBy(String... columns)SQLSelectBuilderImplselect(String... columns)SQLSelectBuilderImplselectWithAlias(String column, String alias)StringtoString()SQLSelectBuilderImplwhere(String expr)SQLSelectBuilderImplwhereAnd(String expr)SQLSelectBuilderImplwhereOr(String expr)
-
-
-
Constructor Detail
-
SQLSelectBuilderImpl
public SQLSelectBuilderImpl(DbType dbType)
-
SQLSelectBuilderImpl
public SQLSelectBuilderImpl(SQLSelectStatement stmt, DbType dbType)
-
-
Method Detail
-
getSQLSelect
public SQLSelect getSQLSelect()
-
getSQLSelectStatement
public SQLSelectStatement getSQLSelectStatement()
- Specified by:
getSQLSelectStatementin interfaceSQLSelectBuilder
-
select
public SQLSelectBuilderImpl select(String... columns)
- Specified by:
selectin interfaceSQLSelectBuilder
-
selectWithAlias
public SQLSelectBuilderImpl selectWithAlias(String column, String alias)
- Specified by:
selectWithAliasin interfaceSQLSelectBuilder
-
from
public SQLSelectBuilderImpl from(String table)
- Specified by:
fromin interfaceSQLSelectBuilder
-
from
public SQLSelectBuilderImpl from(String table, String alias)
- Specified by:
fromin interfaceSQLSelectBuilder
-
orderBy
public SQLSelectBuilderImpl orderBy(String... columns)
- Specified by:
orderByin interfaceSQLSelectBuilder
-
groupBy
public SQLSelectBuilderImpl groupBy(String expr)
- Specified by:
groupByin interfaceSQLSelectBuilder
-
having
public SQLSelectBuilderImpl having(String expr)
- Specified by:
havingin interfaceSQLSelectBuilder
-
into
public SQLSelectBuilderImpl into(String expr)
- Specified by:
intoin interfaceSQLSelectBuilder
-
where
public SQLSelectBuilderImpl where(String expr)
- Specified by:
wherein interfaceSQLSelectBuilder
-
whereAnd
public SQLSelectBuilderImpl whereAnd(String expr)
- Specified by:
whereAndin interfaceSQLSelectBuilder
-
whereOr
public SQLSelectBuilderImpl whereOr(String expr)
- Specified by:
whereOrin interfaceSQLSelectBuilder
-
limit
public SQLSelectBuilderImpl limit(int rowCount)
- Specified by:
limitin interfaceSQLSelectBuilder
-
limit
public SQLSelectBuilderImpl limit(int rowCount, int offset)
- Specified by:
limitin interfaceSQLSelectBuilder
-
getQueryBlock
protected SQLSelectQueryBlock getQueryBlock()
-
createSelect
protected SQLSelect createSelect()
-
createSelectQueryBlock
protected SQLSelectQuery createSelectQueryBlock()
-
createOrderBy
protected SQLOrderBy createOrderBy()
-
createGroupBy
protected SQLSelectGroupByClause createGroupBy()
-
toString
public String toString()
- Specified by:
toStringin interfaceSQLSelectBuilder- Overrides:
toStringin classObject
-
-