UNPKG

@salesforce/soql-model

Version:
23 lines 942 B
"use strict"; /* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ Object.defineProperty(exports, "__esModule", { value: true }); exports.FieldCompareConditionImpl = void 0; const soqlModelObjectImpl_1 = require("./soqlModelObjectImpl"); class FieldCompareConditionImpl extends soqlModelObjectImpl_1.SoqlModelObjectImpl { constructor(field, operator, compareValue) { super(); this.field = field; this.operator = operator; this.compareValue = compareValue; } toSoqlSyntax(options) { return `${this.field.toSoqlSyntax(options)} ${this.operator} ${this.compareValue.toSoqlSyntax(options)}`; } } exports.FieldCompareConditionImpl = FieldCompareConditionImpl; //# sourceMappingURL=fieldCompareConditionImpl.js.map