1

I want to create a JMS selector to test if a variable exists and if the variable exists, if its value is right. A selector like this :

(uid NOT EXISTS) OR (uid='foo')

What is the right statement please to do this ?

4

1 回答 1

1

为尚未设置的名称获取属性值的处理方式就像该属性以空值存在一样。因此,如果属性不存在,则将其视为空值。

在 JMS 命名法中,它被称为不存在的属性。

因此,您可以将 JMS 选择器设置为,

uid is null or uid='foo'
于 2013-03-26T09:55:45.043 回答