Skip to content

Latest commit

 

History

History
148 lines (95 loc) · 1.77 KB

HavingLogicHandler.md

File metadata and controls

148 lines (95 loc) · 1.77 KB

HavingLogicHandler Class

This class is used to handle the having clause logic

Since

3/23/2024

Author Zackary Frazier

Inheritance

BooleanLogicHandler

Fields

db

Inherited

The database to use for queries

Signature

public db

Type

MockDatabase


head

Inherited

The head conditional node

Signature

public head

Type

Node


obj

Inherited

The object being compared (either SObject or Aggregate)

Signature

public obj

Type

Object


params

Inherited

Parameters for bind variables in the query

Signature

public params

Type

Map<String,Object>


selectNode

Inherited

The select node to compare against

Signature

public selectNode

Type

Node

Constructors

HavingLogicHandler(options)

Constructor

Signature

public HavingLogicHandler(BooleanLogicOptions options)

Parameters

Name Type Description
options BooleanLogicOptions

Methods

evaluate()

Inherited

Evaluate the conditional expression

Signature

public Boolean evaluate()

Return Type

Boolean

Whether the conditional expression is met


isCompareConditionMet(operatorNode)

This method is used to check if the having condition is met

Signature

public override Boolean isCompareConditionMet(Node operatorNode)

Parameters

Name Type Description
operatorNode Node The operator node

Return Type

Boolean

Boolean

Throws

Exception: