Skip to content

Latest commit

 

History

History
132 lines (87 loc) · 1.76 KB

BooleanLogicHandler.md

File metadata and controls

132 lines (87 loc) · 1.76 KB

BooleanLogicHandler Class

virtual

A class to handle boolean logic, when it comes to HAVING and WHERE clauses, it's all the same except for the comparison

Since

3/23/2024

Group Soql Engine

Author Zackary Frazier

Fields

db

The database to use for queries

Signature

public db

Type

MockDatabase


head

The head conditional node

Signature

public head

Type

Node


obj

The object being compared (either SObject or Aggregate)

Signature

public obj

Type

Object


params

Parameters for bind variables in the query

Signature

public params

Type

Map<String,Object>


selectNode

The select node to compare against

Signature

public selectNode

Type

Node

Constructors

BooleanLogicHandler(options)

Constructor

Signature

public BooleanLogicHandler(BooleanLogicOptions options)

Parameters

Name Type Description
options BooleanLogicOptions The options for the handler

Methods

evaluate()

Evaluate the conditional expression

Signature

public Boolean evaluate()

Return Type

Boolean

Whether the conditional expression is met


isCompareConditionMet(node)

Evaluate the conditional expression, intended to be overridden

Signature

public virtual Boolean isCompareConditionMet(Node node)

Parameters

Name Type Description
node Node The node to evaluate

Return Type

Boolean

Whether the conditional expression is met