public class DefaultSqlExpressionFactory extends java.lang.Object implements SqlExpressionFactory
构造器和说明 |
---|
DefaultSqlExpressionFactory() |
public ISqlAsExpression as(ISqlExpression expression, java.lang.String asName)
SqlExpressionFactory
as
在接口中 SqlExpressionFactory
expression
- 表达式asName
- 别名public ISqlColumnExpression column(FieldMetaData fieldMetaData, java.lang.String tableAsName)
SqlExpressionFactory
column
在接口中 SqlExpressionFactory
fieldMetaData
- 字段元数据tableAsName
- 表别名public ISqlConditionsExpression condition()
SqlExpressionFactory
condition
在接口中 SqlExpressionFactory
public ISqlFromExpression from(ISqlTableExpression sqlTable, java.lang.String asName)
SqlExpressionFactory
from
在接口中 SqlExpressionFactory
sqlTable
- 表表达式asName
- 表别名public ISqlGroupByExpression groupBy()
SqlExpressionFactory
groupBy
在接口中 SqlExpressionFactory
public ISqlHavingExpression having()
SqlExpressionFactory
having
在接口中 SqlExpressionFactory
public ISqlJoinExpression join(JoinType joinType, ISqlTableExpression joinTable, ISqlExpression conditions, java.lang.String asName)
SqlExpressionFactory
join
在接口中 SqlExpressionFactory
joinType
- join类型joinTable
- join表conditions
- join条件asName
- join别名public ISqlJoinsExpression Joins()
SqlExpressionFactory
Joins
在接口中 SqlExpressionFactory
public ISqlLimitExpression limit()
SqlExpressionFactory
limit
在接口中 SqlExpressionFactory
public ISqlOrderByExpression orderBy()
SqlExpressionFactory
orderBy
在接口中 SqlExpressionFactory
public ISqlOrderExpression order(ISqlExpression expression, boolean asc)
SqlExpressionFactory
order
在接口中 SqlExpressionFactory
expression
- 表达式asc
- 是否为升序public ISqlQueryableExpression queryable(ISqlSelectExpression select, ISqlFromExpression from, ISqlJoinsExpression joins, ISqlWhereExpression where, ISqlGroupByExpression groupBy, ISqlHavingExpression having, ISqlOrderByExpression orderBy, ISqlLimitExpression limit)
SqlExpressionFactory
queryable
在接口中 SqlExpressionFactory
select
- select表达式from
- from表达式joins
- join表达式集合where
- where表达式groupBy
- 组表达式having
- having表达式orderBy
- 排序表达式limit
- limit表达式public ISqlRealTableExpression table(java.lang.Class<?> tableClass)
SqlExpressionFactory
table
在接口中 SqlExpressionFactory
tableClass
- 实体表类型public ISqlSelectExpression select(java.util.List<ISqlExpression> column, java.lang.Class<?> target, boolean isSingle, boolean isDistinct)
SqlExpressionFactory
select
在接口中 SqlExpressionFactory
column
- 选择的列target
- 目标类isSingle
- 是否为单列查询isDistinct
- 是否为去重查询public ISqlWhereExpression where(ISqlConditionsExpression conditions)
SqlExpressionFactory
where
在接口中 SqlExpressionFactory
conditions
- 条件表达式public ISqlSetExpression set(ISqlColumnExpression column, ISqlExpression value)
SqlExpressionFactory
set
在接口中 SqlExpressionFactory
column
- 需要set的列value
- 需要set的值public ISqlSingleValueExpression value(java.lang.Object value)
SqlExpressionFactory
value
在接口中 SqlExpressionFactory
value
- 值public ISqlCollectedValueExpression value(java.util.Collection<?> value)
SqlExpressionFactory
value
在接口中 SqlExpressionFactory
value
- 值集合public ISqlTemplateExpression template(java.util.List<java.lang.String> templates, java.util.List<? extends ISqlExpression> expressions)
SqlExpressionFactory
template
在接口中 SqlExpressionFactory
templates
- 字符串模板列表expressions
- 表达式列表public ISqlBinaryExpression binary(SqlOperator operator, ISqlExpression left, ISqlExpression right)
SqlExpressionFactory
binary
在接口中 SqlExpressionFactory
operator
- SQL运算符left
- 左表达式right
- 右表达式public ISqlUnaryExpression unary(SqlOperator operator, ISqlExpression expression)
SqlExpressionFactory
unary
在接口中 SqlExpressionFactory
operator
- SQL运算符expression
- 表达式public ISqlParensExpression parens(ISqlExpression expression)
SqlExpressionFactory
parens
在接口中 SqlExpressionFactory
expression
- 表达式public ISqlConstStringExpression constString(java.lang.String s)
SqlExpressionFactory
constString
在接口中 SqlExpressionFactory
s
- 字符串public ISqlSetsExpression sets()
SqlExpressionFactory
sets
在接口中 SqlExpressionFactory
public ISqlTypeExpression type(java.lang.Class<?> c)
SqlExpressionFactory
type
在接口中 SqlExpressionFactory
c
- 类型