public class UnionBuilder extends java.lang.Object implements ISqlBuilder
构造器和说明 |
---|
UnionBuilder(SqLinkConfig config,
ISqlQueryableExpression queryable,
ISqlUnionsExpression unions,
ISqlOrderByExpression orderBy,
ISqlLimitExpression limit) |
限定符和类型 | 方法和说明 |
---|---|
void |
addLimit(long offset,
long rows) |
void |
addOrder(ISqlOrderExpression orderExpression) |
void |
addUnion(ISqlUnionExpression unionExpression) |
SqLinkConfig |
getConfig()
获取配置
|
java.util.List<FieldMetaData> |
getMappingData() |
ISqlQueryableExpression |
getQueryable() |
java.lang.String |
getSql()
获取SQL
|
java.lang.String |
getSqlAndValue(java.util.List<SqlValue> values)
获取SQL和参数
|
<T> java.lang.Class<T> |
getTargetClass() |
boolean |
isSingle() |
public UnionBuilder(SqLinkConfig config, ISqlQueryableExpression queryable, ISqlUnionsExpression unions, ISqlOrderByExpression orderBy, ISqlLimitExpression limit)
public void addUnion(ISqlUnionExpression unionExpression)
public void addOrder(ISqlOrderExpression orderExpression)
public void addLimit(long offset, long rows)
public boolean isSingle()
public java.util.List<FieldMetaData> getMappingData()
public <T> java.lang.Class<T> getTargetClass()
public SqLinkConfig getConfig()
ISqlBuilder
getConfig
在接口中 ISqlBuilder
public java.lang.String getSql()
ISqlBuilder
getSql
在接口中 ISqlBuilder
public java.lang.String getSqlAndValue(java.util.List<SqlValue> values)
ISqlBuilder
getSqlAndValue
在接口中 ISqlBuilder
public ISqlQueryableExpression getQueryable()