首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

db4o SODA query hacking之正则婚配支持

2012-07-16 
db4o SODA query hacking之正则匹配支持db4o的SODA查询貌似不支持正则匹配。API中关于Constraint接口的Meth

db4o SODA query hacking之正则匹配支持

db4o的SODA查询貌似不支持正则匹配。API中关于Constraint接口的Method Summary如下

println "All subjects:"Subject.findAll().each{println it.randomizationNo}println "Subjects with randomizationNo ending with a hyphen followed by 4 digits:"Subject.findAll(randomizationNo:~/.*\-\d{4}/).each{println it.randomizationNo}

输出结果如下

All subjects:
022-0104
01171
01049
01074
01169
01051
01001
01145
01025
01075
Subjects with randomizationNo ending with a hypen followed by 4 digits:
022-0104

热点排行