类 SelectSqlGenerator
- java.lang.Object
-
- top.daxian1218.dust.db.dict.SelectSqlGenerator
-
public class SelectSqlGenerator extends java.lang.Object
-
-
构造器概要
构造器 构造器 说明 SelectSqlGenerator(DictObj obj)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
amendExpressionDataType(DictExpression expr, DictObjColumn column)
protected void
appendColumnOrValueSql(DictExpression expr, HSqlCommand cmd)
protected void
appendFuzzyValueSql(DictExpression expr, HSqlCommand cmd, int mode)
模糊匹配,mode=2 首匹配 mode=1 末尾匹配 mode=3 包含匹配protected void
appendSubTableSql(DictExpression expr, HSqlCommand cmd)
protected void
appendValueListSql(DictExpression node, HSqlCommand cmd)
HSqlCommand
generate()
HSqlCommand
generate(int pollyIndex)
protected HSqlCommand
getConditionSql(DictCondition condition)
HSqlCommand
getSubSql()
HSqlCommand
getWhere()
获取所有的查询条件HSqlCommand
getWhere(DictCondition appendCdt)
获取所有的查询条件protected void
joinTable(HSqlCommand selectCmd, java.util.List<DictObjTable> tables)
-
-
-
构造器详细资料
-
SelectSqlGenerator
public SelectSqlGenerator(DictObj obj)
-
-
方法详细资料
-
getWhere
public HSqlCommand getWhere()
获取所有的查询条件- 返回:
- sql where条件
-
getWhere
public HSqlCommand getWhere(DictCondition appendCdt)
获取所有的查询条件- 参数:
appendCdt
- 追加条件- 返回:
- sql where条件
-
getSubSql
public HSqlCommand getSubSql()
-
generate
public HSqlCommand generate()
-
generate
public HSqlCommand generate(int pollyIndex)
-
joinTable
protected void joinTable(HSqlCommand selectCmd, java.util.List<DictObjTable> tables)
-
amendExpressionDataType
public void amendExpressionDataType(DictExpression expr, DictObjColumn column)
-
getConditionSql
protected HSqlCommand getConditionSql(DictCondition condition)
-
appendSubTableSql
protected void appendSubTableSql(DictExpression expr, HSqlCommand cmd)
-
appendColumnOrValueSql
protected void appendColumnOrValueSql(DictExpression expr, HSqlCommand cmd)
-
appendFuzzyValueSql
protected void appendFuzzyValueSql(DictExpression expr, HSqlCommand cmd, int mode)
模糊匹配,mode=2 首匹配 mode=1 末尾匹配 mode=3 包含匹配- 参数:
expr
-cmd
-mode
-
-
appendValueListSql
protected void appendValueListSql(DictExpression node, HSqlCommand cmd)
-
-