Skip to content
16 changes: 16 additions & 0 deletions sfdx-source/apex-common/main/classes/fflib_BooleanOperator.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* This enum represents the boolean operators used in the fflib_CriteriaBuilder class.
* It defines two operators: WITH_AND and WITH_OR.
*/
public enum fflib_BooleanOperator {

/**
* The boolean operator AND.
*/
WITH_AND,

/**
* The boolean operator OR.
*/
WITH_OR
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>57.0</apiVersion>
<status>Active</status>
</ApexClass>
91 changes: 91 additions & 0 deletions sfdx-source/apex-common/main/classes/fflib_ComparisonOperator.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/**
* This class defines the comparison operators used in the fflib_CriteriaBuilder class.
* It provides constants for various comparison operators and abstract methods for negation, inversion, broadening, and sharpening.
*/
public class fflib_ComparisonOperator {

/**
* The equal operator.
*/
public static final String EQUAL = ' = ';

/**
* The not equal operator.
*/
public static final String NOT_EQUAL = ' != ';

/**
* The less than operator.
*/
public static final String LESS_THAN = ' < ';

/**
* The less than or equal operator.
*/
public static final String LESS_THAN_OR_EQUAL = ' <= ';

/**
* The greater than operator.
*/
public static final String GREATER_THAN = ' > ';

/**
* The greater than or equal operator.
*/
public static final String GREATER_THAN_OR_EQUAL = ' >= ';

/**
* The 'IN' operator.
*/
public static final String IS_IN = ' IN ';

/**
* The 'NOT IN' operator.
*/
public static final String NOT_IN = ' NOT IN ';

/**
* The 'LIKE' operator.
*/
public static final String IS_LIKE = ' LIKE ';

/**
* The 'NOT LIKE' operator.
*/
public static final String NOT_LIKE = ' NOT LIKE ';

/**
* Negates the comparison operator.
*
* @return the negated comparison operator
*/
//public abstract ComparisonOperator negated();

/**
* Inverts the comparison operator.
*
* @return the inverted comparison operator
*/
//public abstract ComparisonOperator invert();

/**
* Broadens the comparison operator.
*
* @return the broadened comparison operator
*/
//public abstract ComparisonOperator broader();

/**
* Sharpens the comparison operator.
*
* @return the sharpened comparison operator
*/
//public abstract ComparisonOperator sharper();

/**
* Returns the SQL text representation of the comparison operator.
*
* @return the SQL text representation
*/
//public abstract String sqlText();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>57.0</apiVersion>
<status>Active</status>
</ApexClass>
Loading