类 DefaultTextPrepare
java.lang.Object
org.anyline.data.prepare.init.AbstractRunPrepare
org.anyline.data.prepare.text.init.DefaultTextPrepare
- 所有已实现的接口:
Cloneable,RunPrepare,TextPrepare
-
字段概要
从类继承的字段 org.anyline.data.prepare.init.AbstractRunPrepare
aggregations, alias, batch, box, chain, columns, condition, disposable, distinct, excludes, fetchKeys, groups, having, isSub, join, joins, log, multiple, navi, orders, parse, primaryKeys, runtime, runValues, swt, text, unionAll, unions, valid从接口继承的字段 org.anyline.data.prepare.RunPrepare
PROCEDURE_INPUT_PARAM_TYPE, PROCEDURE_INPUT_PARAM_VALUE, SQL_VAR_BOX_REGEX, SQL_VAR_PLACEHOLDER_REGEX, SQL_VAR_PLACEHOLDER_REGEX_EXT, XML_SQL_ID_STYLE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明添加列 CD CD, NMaddCondition(String condition) 添加静态文本查询条件build(DataRuntime runtime) clone()excludeColumn(String columns) getDest()getTable()getText()init()map(boolean empty, boolean join) setCatalog(String catalog) setConditionValue(String condition, String variable, Object value) 添加查询条件设置查询或操作的目标(表、存储过程、SQL等)设置SQL 主体文本从类继承的方法 org.anyline.data.prepare.init.AbstractRunPrepare
addCondition, addCondition, addCondition, addCondition, addFetchKey, addFetchKey, addPrimaryKey, addPrimaryKey, addRunValue, aggregation, aggregation, aggregation, aggregations, box, condition, condition, disposable, disposable, full, full, getAlias, getBatch, getColumns, getConditionChain, getDistinct, getExcludes, getFetchKeys, getGroups, getId, getJoin, getJoins, getOrders, getPageNavi, getPrimaryKey, getPrimaryKeys, getRuntime, getRunValues, getUnions, getVersion, group, group, groups, hasPrimaryKeys, having, having, having, initRunValues, inner, inner, isMultiple, isStrict, isUnionAll, join, join, join, left, left, order, order, order, order, parse, right, right, setAlias, setBatch, setConditionChain, setDistinct, setExcludeColumns, setExcludeColumns, setFetchKey, setFetchKey, setId, setJoin, setMultiple, setOrders, setPageNavi, setPrimaryKey, setPrimaryKey, setRuntime, setSelectColumns, setSelectColumns, setStrict, setUnionAll, union, union, union, union从类继承的方法 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.anyline.data.prepare.RunPrepare
addCondition, addCondition, addCondition, addFetchKey, addFetchKey, addPrimaryKey, addPrimaryKey, aggregation, aggregation, aggregation, aggregations, box, condition, condition, disposable, disposable, filter, full, getAlias, getBatch, getColumns, getConditionChain, getDistinct, getExcludes, getFetchKeys, getGroups, getId, getJoin, getJoins, getOrders, getPageNavi, getPrimaryKey, getPrimaryKeys, getRuntime, getUnions, getVersion, group, group, groups, hasPrimaryKeys, having, having, having, inner, isMultiple, isStrict, isUnionAll, join, join, join, join, join, json, json, left, map, map, order, order, order, order, parse, right, setAlias, setBatch, setDistinct, setExcludeColumns, setExcludeColumns, setFetchKey, setFetchKey, setId, setJoin, setJoin, setJoin, setMultiple, setOrders, setPageNavi, setPrimaryKey, setPrimaryKey, setRuntime, setSelectColumns, setSelectColumns, setStrict, setUnionAll, union, union, union, union, unionAll, unionAll
-
构造器详细资料
-
DefaultTextPrepare
-
DefaultTextPrepare
public DefaultTextPrepare()
-
-
方法详细资料
-
init
- 指定者:
init在接口中TextPrepare
-
setText
设置SQL 主体文本- 指定者:
setText在接口中RunPrepare- 指定者:
setText在接口中TextPrepare- 覆盖:
setText在类中AbstractRunPrepare- 参数:
text- text- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
addCondition
添加静态文本查询条件- 指定者:
addCondition在接口中TextPrepare- 参数:
condition- condition- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
setConditionValue
添加查询条件- 指定者:
setConditionValue在接口中RunPrepare- 指定者:
setConditionValue在接口中TextPrepare- 覆盖:
setConditionValue在类中AbstractRunPrepare- 参数:
condition- 列名|查询条件IDvariable- 变量keyvalue- 值- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
setDest
从接口复制的说明:RunPrepare设置查询或操作的目标(表、存储过程、SQL等)查询全部列 : setDataSource("V_ADMIN")
查询指定列 : setDataSource(ADMIN(CD, ACCOUNT, NAME, REG_TIME))
查询指定列 : setDataSource(ADMIN(DISTINCT CD, ACCOUNT, NAME, REG_TIME))
查询指定列 : setDataSource(ADMIN(DISTINCT {NEWID()}, {getDate()}, CD, ACCOUNT, NAME, REG_TIME))
{}中内容按原样拼接到运行时SQL, 其他列将添加[]以避免关键重复根据XML定义SQL : setDataSource("admin.power:S_POWER")
admin.power : XML文件路径, 文件目录以.分隔
S_POWER : 自定义SQL的id- 指定者:
setDest在接口中RunPrepare- 参数:
dest- 数据源 : 表|视图|自定义SQL.id- 返回:
- Run 最终执行命令 如JDBC环境中的 SQL 与 参数值
-
setDest
- 指定者:
setDest在接口中RunPrepare
-
setCatalog
- 指定者:
setCatalog在接口中RunPrepare
-
getCatalog
- 指定者:
getCatalog在接口中RunPrepare
-
getCatalogName
- 指定者:
getCatalogName在接口中RunPrepare
-
setSchema
- 指定者:
setSchema在接口中RunPrepare
-
getSchemaName
- 指定者:
getSchemaName在接口中RunPrepare
-
getTableName
- 指定者:
getTableName在接口中RunPrepare
-
getDest
- 指定者:
getDest在接口中RunPrepare
-
getSchema
- 指定者:
getSchema在接口中RunPrepare
-
getText
- 指定者:
getText在接口中RunPrepare- 指定者:
getText在接口中TextPrepare
-
getSQLVariables
- 指定者:
getSQLVariables在接口中RunPrepare- 指定者:
getSQLVariables在接口中TextPrepare
-
addColumn
从接口复制的说明:RunPrepare添加列 CD CD, NM- 指定者:
addColumn在接口中RunPrepare- 参数:
columns- columns
-
addColumn
- 指定者:
addColumn在接口中RunPrepare
-
excludeColumn
- 指定者:
excludeColumn在接口中RunPrepare
-
getTable
- 指定者:
getTable在接口中RunPrepare
-
build
- 指定者:
build在接口中RunPrepare
-
map
- 指定者:
map在接口中RunPrepare
-
clone
- 指定者:
clone在接口中RunPrepare- 覆盖:
clone在类中AbstractRunPrepare
-