UNPKG

nyx_server

Version:

Node内容发布

35 lines (29 loc) 755 B
function NormalQueryField(value) { this.value = value; this.getValue = function() { return this.value; } this.setValue = function(value) { this.value = value; } this.getQL = function(fieldName, ql) { if (this.value == null) { return false; } else { ql.write(fieldName, ql.length) ql.write("=?", ql.length); return true; } } this.getParameters = function(list) { if (this.value != null) { list.push(this.value); } } this.testObject = function(obj) { return this.value == null || obj.equals(this.value); } this.getFromClause = function(prefix, ql) { return false; } }