^1662727498803
@
sname
Condition
slabel
查询条件
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
sgroup
xworker.app.query
smodifier
public
sinheritDescription
false
sicon
icons/magnifier.png
Sdescription
#$@text#$@
<h1>查询条件</h1>

<p><strong>&nbsp;&nbsp;&nbsp; </strong>数据对象在查询操作时根据查询条件过滤记录。不同的数据对象的使用方法可能也是不同的。</p>

<h2>非数据库数据对象</h2>

<p>&nbsp;&nbsp;&nbsp;&nbsp; 非数据的数据对象一般使用查询条件事物的<strong>isMath</strong>方法来判断记录是否符合条件。</p>

<ul>
	<li><strong>boolean isMatch(Object&nbsp;condtion, Object data)</strong><br />
	返回data是否符合条件，其中condition是查询条件的值，data是要要判断是否符合条件的值。&nbsp;&nbsp;<br />
	&nbsp;</li>
	<li><strong>Object getConditionValue(Object datas)</strong><br />
	从datas中获取具体查询节点对应的查询条件的值。</li>
</ul>

<p>&nbsp;&nbsp;&nbsp; 在上面两个方法中isMatch中的conditon是所有的查询条件的值，而getConditionValue的参数datas一般是isMath的condition，即从condition取当前节点对应的查询条件的值。</p>

<h2>数据库数据对象</h2>

<p>&nbsp;&nbsp;&nbsp; 在数据库数据对象使用时，会通过查询条件生成SQL。</p>

<h3>生成SQL的规则</h3>

<ul>
	<li><strong>getConditionValue()</strong>返回值不为null或忽略空值。</li>
	<li>dummySql=true时，不生成sql，但会加入条件的值，总是会设置PreparedStatment的条件。</li>
	<li>是否总是附加从句=true是，总是会把从句加入到条件中。</li>
</ul>

<h3>数据库可以重写的方法</h3>

<ul>
	<li><strong>String nodeToSql(Object datas, List&lt;Map&lt;String, Object&gt;&gt; cds)</strong><br />
	把子节点生成SQL子句, datas是条件数据，cds是SQL生成后对应参数的值</li>
</ul>

<p>&nbsp;</p>

<p>&nbsp;</p>
#$@text#$@
snotXmlAttribute
false
sjson_isArray
false
sth_createIndex
true
sth_registThing
child|xworker.lang.util.DescriptorsIndex
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
  @/@actions
  sname
  actions
  slabel
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sid
  actions
    @/@actions/@getValidConditions
    sname
    getValidConditions
    slabel
    getValidConditions
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.dataObject.query.ConditionCreator
    smethodName
    getValidConditions
    sdisableGlobalContext
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sid
    getValidConditions
      @/@actions/@getValidConditions/@ins
      sisValidate
      false
      sname
      ins
      slabel
      ins
      sdescriptors
      xworker.lang.actions.Inout/@ins
      sid
      ins
        @/@actions/@getValidConditions/@ins/@datas
        sname
        datas
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sid
        datas
    @/@actions/@toSql
    sname
    toSql
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    suseInnerJava
    false
    souterClassName
    xworker.dataObject.query.ConditionCreator
    smethodName
    toSql
    sdisableGlobalContext
    false
    scode
    //已废弃，现在使用Condition对象生成sql
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sid
    toSql
      @/@actions/@toSql/@ins
      sisValidate
      false
      sname
      ins
      slabel
      ins
      sdescriptors
      xworker.lang.actions.Inout/@ins
      sid
      ins
        @/@actions/@toSql/@ins/@datas
        sname
        datas
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sid
        datas
        @/@actions/@toSql/@ins/@cds
        sname
        cds
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescription
        <p>有效的参数列表。</p>
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sid
        cds
    @/@actions/@nodeToSql
    sname
    nodeToSql
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    suseInnerJava
    false
    souterClassName
    xworker.dataObject.query.ConditionCreator
    smethodName
    nodeToSql
    sdisableGlobalContext
    false
    Sdescription
#$@text#$@
<p>当前节点转化为sql条件表达式。</p>
<p>通过该方法可以实现自定义的条件事物，如果表达式中包含?的参数，那么必须把条件的名称和值放入到输入参数列表cds中。</p>
#$@text#$@
    scode
    //已废弃，现在使用Condition对象生成sql
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sid
    nodeToSql
      @/@actions/@nodeToSql/@ins
      sisValidate
      false
      sname
      ins
      slabel
      ins
      sdescriptors
      xworker.lang.actions.Inout/@ins
      sid
      ins
        @/@actions/@nodeToSql/@ins/@datas
        sname
        datas
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sid
        datas
        @/@actions/@nodeToSql/@ins/@cds
        sname
        cds
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sid
        cds
    @/@actions/@isMatchMap
    sname
    isMatch
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.dataObject.query.ConditionCreator
    smethodName
    isMatch
    sdisableGlobalContext
    false
    sdescription
    <p>使用参数condition作为查询条件的值去匹配数据参数data，返回是否匹配。</p>
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sid
    isMatchMap
      @/@actions/@isMatchMap/@ins
      sisValidate
      false
      sname
      ins
      slabel
      ins
      sdescriptors
      xworker.lang.actions.Inout/@ins
      sid
      ins
        @/@actions/@isMatchMap/@ins/@conditionData
        sname
        condition
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sid
        conditionData
        @/@actions/@isMatchMap/@ins/@data
        sname
        data
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sid
        data
    @/@actions/@pareHttpRequest
    sname
    parseHttpRequest
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.dataObject.query.ConditionCreator
    smethodName
    parseHttpRequest
    sdisableGlobalContext
    false
    sdescription
    <p>从HttpRequest中分析条件的值并放到一个Map中。</p>
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sid
    pareHttpRequest
      @/@actions/@pareHttpRequest/@ins
      sisValidate
      false
      sname
      ins
      slabel
      ins
      sdescriptors
      xworker.lang.actions.Inout/@ins
      sid
      ins
        @/@actions/@pareHttpRequest/@ins/@request
        sname
        request
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sid
        request
    @/@actions/@initParamsSwt
    sname
    initParamsSwt
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.dataObject.query.ConditionCreator
    smethodName
    initParamsSwt
    sdisableGlobalContext
    false
    sdescription
    <p>在SWT下初始化取值控件指定的参数，SWT的<a href="javascript.invoke('thing.xworkerappview.local.swt.data.DataStore')">DataStore</a>在load时会调用次方法。</p>
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sid
    initParamsSwt
      @/@actions/@initParamsSwt/@ins
      sisValidate
      false
      sname
      ins
      slabel
      ins
      sdescriptors
      xworker.lang.actions.Inout/@ins
      sid
      ins
        @/@actions/@initParamsSwt/@ins/@params
        sname
        params
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sid
        params
    @/@actions/@addCdsData
    sname
    addCdsData
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    suseInnerJava
    false
    souterClassName
    xworker.dataObject.query.ConditionCreator
    smethodName
    addCdsData
    sdisableGlobalContext
    false
    scode
    addCdsData//已废弃，现在使用Condition对象生成sql
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    addCdsData
      @/@actions/@addCdsData/@ins
      sisValidate
      false
      sname
      ins
      sdescriptors
      xworker.lang.actions.Inout/@ins
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_noThingRegistViewer
      false
      sth_fileMonitor
      false
      sth_mark
      false
      sth_registQueryOnlySelf
      false
      sid
      ins
        @/@actions/@addCdsData/@ins/@cds
        sname
        cds
        stype
        java.util.List
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        sid
        cds
        @/@actions/@addCdsData/@ins/@name
        sname
        name
        stype
        java.lang.String
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        sid
        name
        @/@actions/@addCdsData/@ins/@value
        sname
        value
        stype
        java.lang.String
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        sid
        value
        @/@actions/@addCdsData/@ins/@operator
        sname
        operator
        stype
        java.lang.String
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        sid
        operator
    @/@actions/@getConditionValue
    sname
    getConditionValue
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    suseInnerJava
    false
    souterClassName
    xworker.dataObject.query.ConditionCreator
    smethodName
    getConditionValue
    sdisableGlobalContext
    false
    Scode
#$@text#$@
//返回节点的条件，默认parse方法中通过此方法获取条件值
//一般情况下，条件值不存在，那么该节点可能不生效。但还有其它各种情况
#$@text#$@
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    getConditionValue
      @/@actions/@getConditionValue/@ins
      sisValidate
      false
      sname
      ins
      sdescriptors
      xworker.lang.actions.Inout/@ins
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_noThingRegistViewer
      false
      sth_fileMonitor
      false
      sth_mark
      false
      sth_registQueryOnlySelf
      false
      sid
      ins
        @/@actions/@getConditionValue/@ins/@datas
        sname
        datas
        stype
        java.lang.Object
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        sid
        datas
    @/@actions/@parse
    sname
    parse
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    suseInnerJava
    false
    souterClassName
    xworker.dataObject.query.ConditionCreator
    smethodName
    parseCondition
    sdisableGlobalContext
    false
    scode
    从Condition模型中解析出xworker.dataObject.query.Condition对象
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    snotXmlAttribute
    false
    sjson_isArray
    false
    sid
    parse
      @/@actions/@parse/@ins
      sisValidate
      false
      sname
      ins
      sdescriptors
      xworker.lang.actions.Inout/@ins
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_noThingRegistViewer
      false
      sth_fileMonitor
      false
      sth_mark
      false
      sth_registQueryOnlySelf
      false
      snotXmlAttribute
      false
      sjson_isArray
      false
      sid
      ins
        @/@actions/@parse/@ins/@parent
        sname
        parent
        stype
        xworker.dataObject.query.Condition
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        snotXmlAttribute
        false
        sjson_isArray
        false
        sid
        parent
        @/@actions/@parse/@ins/@values
        sname
        values
        stype
        Map
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        snotXmlAttribute
        false
        sjson_isArray
        false
        sid
        values
        @/@actions/@parse/@ins/@condition
        sname
        condition
        stype
        xworker.dataObject.query.Condition
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        Sdescription
#$@text#$@
<p>该条件不存在，只是为了重写该方法时代码辅助，因为重写时一般会用condition这个变量。</p>
#$@text#$@
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        snotXmlAttribute
        false
        sjson_isArray
        false
        sid
        condition
  @/@name
  sname
  name
  slabel
  名称
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  name
  @/@label
  sname
  label
  slabel
  标签
  sreadOnly
  false
  sinheritDescription
  false
  sdescription
  <p>显示用。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  label
  @/@attributeName
  sname
  attributeName
  slabel
  属性名称
  sreadOnly
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>要查询的目标数据的属性名称。</p>
<p>比如要查用户（User）表的名称（name）属性，那么这里填name。</p>
<p>在SQL的查询里，SqlColumn字段在生成SQL语句时会替换此字段，使用sqlColumn可以生成查询对象本来没有的属性的查询条件。比如SqlColumn可以填to_char(creaeDate, 'yyyy-mm-dd')，操作符为'='，那么生成的sql条件是to_char(createDate, 'yyyy-mm-dd') = ?。</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  attributeName
  @/@dataName
  sname
  dataName
  slabel
  条件属性名称
  sreadOnly
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>一般是Ognl表达式从查询条件中取条件的值。</p>
<p>可以为空，为空或者Ognl取值为null时取默认值(value)。</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  dataName
  @/@sessionType
  sname
  valueSource
  slabel
  条件值数据源
  sinputtype
  select
  sreadOnly
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>如果不为空，那么从指定的数据源中获取条件值。</p>

<p><strong>空</strong></p>

<p>&nbsp;&nbsp;&nbsp; 默认，条件数据源作为一个对象在调用查询条件的入口处传入，而子条件通常是取这个对象的属性值，通常这个对象是以名为datas变量传入。</p>

<p><strong>ActionConext</strong></p>

<p>&nbsp;&nbsp;&nbsp; 条件数据源为当前变量上下文。</p>

<p><strong>HttpServletRequest</strong></p>

<p>&nbsp;&nbsp;&nbsp; 条件从HttpServletRquest中获取，HttpServletRequest的固定变量名为request，如果request变量为空，那么没有条件值。</p>

<p><strong>HttpSession</strong></p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;条件从HttpSession中获取。</p>

<p><strong>XMetaSession</strong></p>

<p>&nbsp;&nbsp;&nbsp; 从XMeta定义的Session中获取。</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_mark
  false
  sid
  sessionType
    @/@sessionType/@ActionConext
    sname
    ActionConext
    svalue
    ActionConext
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sth_createIndex
    false
    sth_mark
    false
    sid
    ActionConext
    @/@sessionType/@HttpServletRequest
    sname
    HttpServletRequest
    svalue
    HttpServletRequest
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sth_createIndex
    false
    sth_mark
    false
    sid
    HttpServletRequest
    @/@sessionType/@HttpSession
    sname
    HttpSession
    svalue
    HttpSession
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sth_createIndex
    false
    sth_mark
    false
    sid
    HttpSession
    @/@sessionType/@XMetaSession
    sname
    XMetaSession
    svalue
    XMetaSession
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sth_createIndex
    false
    sth_mark
    false
    sid
    XMetaSession
  @/@sourceDataName
  sname
  sourceDataName
  slabel
  条件数据源名称
  sreadOnly
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p><strong>HttpServletRequest 、HttpSession</strong></p>

<p>&nbsp;&nbsp;&nbsp; xxxx.getAttribute(&lt;sourceDataName&gt;)的方式取值。</p>

<p><strong>XMetaSession</strong></p>

<p>&nbsp;&nbsp;&nbsp; SessionManager.getSession(&lt;sourceDataName&gt;);</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_mark
  false
  sid
  sourceDataName
  @/@operator
  sname
  operator
  slabel
  操作符
  stype
  byte
  sinputtype
  select
  sreadOnly
  false
  sdefault
  1
  sinheritDescription
  false
  sdescription
  <p>数值比较的操作符。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  operator
    @/@operator/@=
    sname
    =
    slabel
    =
    svalue
    1
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    =
    @/@operator/@!=
    sname
    !=
    slabel
    !=
    svalue
    2
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    !=
    @/@operator/@>
    sname
    >
    slabel
    >
    svalue
    3
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    >
    @/@operator/@>=
    sname
    >=
    slabel
    >=
    svalue
    4
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    >=
    @/@operator/@<
    sname
    <
    slabel
    <
    svalue
    5
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    <
    @/@operator/@<=
    sname
    <=
    slabel
    <=
    svalue
    6
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    <=
    @/@operator/@like
    sname
    like
    slabel
    like
    svalue
    7
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    like
    @/@operator/@llike
    sname
    llike
    slabel
    endsWith
    svalue
    8
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    llike
    @/@operator/@rlike
    sname
    rlike
    slabel
    startsWith
    svalue
    9
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    rlike
    @/@operator/@lrlike
    sname
    lrlike
    slabel
    lrlike
    svalue
    10
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    lrlike
    @/@operator/@in
    sname
    in
    slabel
    in
    svalue
    11
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    in
    @/@operator/@notin
    sname
    notin
    svalue
    17
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    notin
    @/@operator/@regex
    sname
    regex
    slabel
    regex
    svalue
    12
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    regex
    @/@operator/@equals
    sname
    equals
    slabel
    equals
    svalue
    13
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    equals
    @/@operator/@isnull
    sname
    isnull
    slabel
    isnull
    svalue
    14
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    isnull
    @/@operator/@notnull
    sname
    notnull
    slabel
    notnull
    svalue
    15
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    notnull
    @/@operator/@between
    sname
    between
    svalue
    16
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    between
    @/@operator/@none
    sname
    none
    svalue
    none
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    sid
    none
    @/@operator/@selfDefine
    sname
    selfDefine
    slabel
    自定义
    svalue
    100
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    snotXmlAttribute
    false
    sjson_isArray
    false
    sid
    selfDefine
  @/@join
  sname
  join
  slabel
  连接类型
  sinputtype
  select
  sdefault
  and
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  join
    @/@join/@and
    sname
    and
    slabel
    and
    svalue
    and
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    and
    @/@join/@or
    sname
    or
    slabel
    or
    svalue
    or
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    or
  @/@multiple
  sname
  multiple
  slabel
  多值
  sinputtype
  truefalse
  sshowLabel
  true
  slabelAlign
  right
  slabelVAlign
  baseline
  smodifier
  public
  sreadOnly
  false
  sdefault
  false
  sinheritDescription
  false
  sdescription
  <p>如果为真，且传入的值为String，则会按照英文逗号和空格分割成多个值，如分成了多个值会有多个条件。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sen_label
  Multiple
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_noThingRegistViewer
  false
  sth_fileMonitor
  false
  sth_deprecated
  false
  sth_mark
  false
  sth_registQueryOnlySelf
  false
  sid
  multiple
  @/@multiValueJoin
  sname
  multiValueJoin
  slabel
  多值连接类型
  sextends
  xworker.dataObject.query.Condition/@join
  sinputtype
  select
  sshowLabel
  true
  sreadOnly
  false
  sdefault
  or
  sinheritDescription
  false
  sdescription
  <p>如果查询条件的值是字符串，那么将会以英文逗号分割字符串，分割后的每一个子串都会作为一个独立的条件，那么本属性则设置这些条件连接的方式。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  multiValueJoin
  @/@value
  sname
  value
  slabel
  默认条件值
  ssize
  60
  sreadOnly
  false
  sinheritDescription
  false
  sdescription
  <p>默认的查询条件的值。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  value
  @/@ignoreNull
  sname
  ignoreNull
  slabel
  忽略空值
  sinputtype
  truefalse
  sreadOnly
  false
  sdefault
  true
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>如果忽略空值，那么对应的查询条件的值如果为null，那么不判断，即条件为真（true）。</p>
<p>isnull和notnull两个连接类型时此属性无效。</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  ignoreNull
  @/@type
  sname
  type
  slabel
  类型
  sextends
  xworker.dataObject.Attribute/@type
  sinputtype
  select
  sshowLabel
  true
  slabelAlign
  right
  slabelVAlign
  baseline
  smodifier
  public
  sreadOnly
  false
  sinheritDescription
  false
  sdescription
  <p>日期和数字查询时，如果属性值或条件值一方是字符串一方是日期或数字时，可以通过格式转换后比较。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  type
    @/@type/@date
    sname
    date
    slabel
    date
    svalue
    date
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    date
    @/@type/@number
    sname
    number
    slabel
    number
    svalue
    number
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    number
    @/@type/@boolean
    sname
    boolean
    slabel
    boolean
    svalue
    boolean
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    boolean
  @/@pattern
  sname
  pattern
  slabel
  格式
  sreadOnly
  false
  sinheritDescription
  false
  sdescription
  <p>数据的格式。日期或数字的格式。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  pattern
  @/@conditionSql
  sname
  selfDefineSql
  slabel
  自定义SQL
  ssize
  60
  sgroup
  SQL
  sshowLabel
  true
  slabelAlign
  right
  slabelVAlign
  baseline
  smodifier
  public
  sreadOnly
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>自定义的条件sql，一般用于特殊的条件，比如Mysql的全文索引match(column) against (?)。如果不为空会忽略其它SQL相关的设置。</p>

<p><strong>Sql中有且仅有一个？号</strong></p>

<p>&nbsp;&nbsp;&nbsp;&nbsp; 需要注意的是sql中必须要有一个?号，且只有一个。</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sen_label
  selfDefineSql
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_noThingRegistViewer
  false
  sth_fileMonitor
  false
  sth_deprecated
  false
  sth_mark
  false
  sth_registQueryOnlySelf
  false
  sjson_isArray
  false
  sid
  conditionSql
  @/@sqlColumn
  sname
  sqlColumn
  slabel
  SqlColumn
  ssize
  40
  sgroup
  SQL
  sshowLabel
  true
  slabelAlign
  right
  slabelVAlign
  baseline
  smodifier
  public
  sreadOnly
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>数据库的字段名，生成SQL语句时用，如果为空使用数据属性名称。</p>

<p>由于SQL的where条件的语句是在Condition中生成的，而不是用数据对象的属性，所以在SQL里如果属性的名字和数据库表的字段不一致，那么应该在这里指定。</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  sqlColumn
  @/@dumySql
  sname
  dummySql
  sinputtype
  truefalse
  sgroup
  SQL
  sshowLabel
  true
  slabelAlign
  right
  slabelVAlign
  baseline
  smodifier
  private
  sreadOnly
  false
  sdefault
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>Deprecated</p>

<p>如果为true那么总是附加到条件中，但不生成sql，适用于数据对象的表示querySql，并且querySql中含有必须要设置的参数。</p>

<p><strong>注意：</strong></p>

<p>&nbsp;&nbsp;&nbsp; 应该总是放在最前面，或者顺序要自行小心设置好。</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  dumySql
  @/@sqlTemplate
  sname
  isClause
  slabel
  是否是从句
  sinputtype
  truefalse
  sgroup
  SQL
  sshowLabel
  true
  smodifier
  public
  sreadOnly
  false
  sdefault
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>是否是数据库 SQL的从句，仅作用于数据库。</p>

<p>比如可以生成如下SQL中in后面括号中的部分：</p>

<p>&nbsp;&nbsp;&nbsp; id in (select userId from tblUser where name like ? and age &gt;?)</p>

<p>注意从句的查询条件是设置在子Condition中的，在这里主要where之前的代码，如select userId from tblUser。</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  sqlTemplate
  @/@alwaysAddClause
  sname
  alwaysAddClause
  slabel
  是否总是附加从句
  sinputtype
  truefalse
  sgroup
  SQL
  sshowLabel
  true
  smodifier
  public
  sreadOnly
  false
  sinheritDescription
  false
  sdescription
  <p>适用于没有条件的并且总是需要加入的从句。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  alwaysAddClause
  @/@isClauseTemplate
  sname
  isClauseTemplate
  slabel
  从句是否是模板
  sinputtype
  truefalse
  sgroup
  SQL
  sshowLabel
  true
  slabelAlign
  right
  slabelVAlign
  baseline
  smodifier
  public
  sreadOnly
  false
  sdefault
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>如果从句不是模板，那么：</p>

<pre class="brush:java;">
sql = &quot;(&quot; + clauseSQL + &quot; where &quot; + sql + &quot;)&quot;;</pre>

<p>如果从句是模板，那么替换clauseSQL中的%%SQL%%：</p>

<pre class="brush:java;">
clauseSQL = clauseSQL.replace(&quot;%%SQL%%&quot;, sql);
sql = &quot;(&quot; + clauseSQL + &quot;)&quot;;</pre>

<p>注用于替换的sql是子节点生成的sql。</p>

<p>&nbsp;</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  isClauseTemplate
  @/@sql
  sname
  clauseSQL
  sinputtype
  textarea
  sgroup
  SQL
  sshowLabel
  true
  smodifier
  public
  sinputattrs
  codeName=sql codeType=sql wrap=false fillBoth=true cols= rows=
  sreadOnly
  false
  sinheritDescription
  false
  sdescription
  <p>返回一个字段的查询语句，如：select id from tbluser。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  sql
  @/@description
  sname
  description
  slabel
  描述
  sinputtype
  html
  scolspan
  2
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  description
  @/@Condition
  sname
  Condition
  slabel
  查询条件
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.dataObject.query.Condition
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  true
  sicon
  icons/magifier_zoom_out.png
  snotXmlAttribute
  false
  sid
  Condition
  @/@addOneDay
  sname
  addOneDay
  slabel
  日期加一天
  sinputtype
  truefalse
  sgroup
  Date
  sreadOnly
  false
  sdefault
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>如果为true，那么日期的实际值是输入值的基础上加一天，一般用于范围查询的截止日期。</p>
<p><span style="color: #ff0000">必须要在查询条件中同时指定日期的格式。</span></p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  addOneDay
  @/@actions1
  sname
  actions
  slabel
  Actions
  sdescriptors
  xworker.lang.MetaDescriptor2/@thing
  sextends
  xworker.lang.actions.Actions
  smany
  true
  seditCols
  2
  Sdescription
#$@text#$@
<p>动作集合，通过子节点可以添加各种动作，动作通常是一个可执行的程序。</p>
<p>事物的第一个动作集合的子事物才可以作为事物的行为，第二个及其他动作集合就不能作为事物的行为使用了，事物的行为默认找第一个动作集合。</p>
<p>事物的run方法一般是这个事物转化为动作之后执行的方法。</p>
#$@text#$@
  szh_label
  动作
  sth_createIndex
  false
  sid
  actions1
    @/@actions1/@name
    sname
    name
    sdescriptors
    xworker.lang.MetaDescriptor2/@attribute
    sid
    name
  @/@debug
  sname
  debug
  sinputtype
  truefalse
  sgroup
  debug
  sshowLabel
  true
  smodifier
  public
  sreadOnly
  false
  sinheritDescription
  false
  sdescription
  <p>如果为true，那么在控制台会打印一些信息。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  debug
