Skip to content
codefriar edited this page Oct 5, 2023 · 2 revisions

APIVERSION: 58

STATUS: ACTIVE

MIT License Copyright (c) 2020 Rafał Kopaczewski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Enums

LogicalOperator

Enum for logical operators

Scope

Enum for Scopes

SearchGroup

Enum for searching groups

SortDirection

Enum for sorting functions

SortNullRecords

Enum for null records sorting


Classes

Condition

Constructors

public Condition()
public Condition(LogicalOperator logicalOperator)

Fields

private expressionsList<Expression>

TESTVISIBLE

private logicalOperatorLogicalOperator

TESTVISIBLE


Methods

public Condition equals(String fieldName, Object value)
public Condition notEquals(String fieldName, Object value)
public Condition lessThan(String fieldName, Object value)
public Condition lessOrEqual(String fieldName, Object value)
public Condition greaterThan(String fieldName, Object value)
public Condition greaterOrEqual(String fieldName, Object value)
public Condition isLike(String fieldName, Object value)
public Condition isIn(String fieldName, Object value)
public Condition isNotIn(String fieldName, Object value)
public Condition includes(String fieldName, Set<Set<String>> value)
public Condition includes(String fieldName, Set<String> value)
public Condition excludes(String fieldName, Set<Set<String>> value)
public Condition excludes(String fieldName, Set<String> value)
public Condition subcondition(Condition condition)
public Condition negateSubcondition(Condition condition)
public String toConditionString()
public override String toString()

ConditionDenialExpression

TESTVISIBLE

Implemented types

Expression

Constructors

private ConditionDenialExpression(Condition condition)

TESTVISIBLE

Fields

private conditionCondition

TESTVISIBLE


Methods

public String toExpressionString()
public override String toString()

ConditionExpression

TESTVISIBLE

Implemented types

Expression

Constructors

private ConditionExpression(Condition condition)

TESTVISIBLE

Fields

private conditionCondition

TESTVISIBLE


Methods

public String toExpressionString()
public override String toString()

DateLiteral

Constructors

public DateLiteral(String dateLiteralName)
public DateLiteral(String dateLiteralName, Integer numberOfUnits)

Fields

private dateLiteralNameString

TESTVISIBLE

private numberOfUnitsInteger

TESTVISIBLE


Methods

public String toDateLiteralString()
public override String toString()

DenialSearchExpression

TESTVISIBLE

Implemented types

Expression

Constructors

private DenialSearchExpression(SearchCondition searchCondition)

TESTVISIBLE

Fields

private searchConditionSearchCondition

TESTVISIBLE


Methods

public String toExpressionString()
public override String toString()

FieldExpression

TESTVISIBLE

Implemented types

Expression

Constructors

private FieldExpression(String fieldName, String comparisonOperator, Object value)

TESTVISIBLE

Fields

private comparisonOperatorString

TESTVISIBLE

private fieldNameString

TESTVISIBLE

private valueObject

TESTVISIBLE


Methods

public String toExpressionString()
private String formatValue()

TESTVISIBLE

private List convertToStringList(List<Date> values)
private List convertToStringList(List<Datetime> values)
private List convertToStringList(List<String> values)
private List convertToStringList(List<Id> values)
private List convertToStringList(List<Integer> values)
private List convertToStringList(List<Long> values)
private List convertToStringList(List<Decimal> values)
private List convertToStringList(List<Double> values)
private List convertToStringList(Set<Set<String>> values)
public override String toString()

PhraseExpression

TESTVISIBLE

Implemented types

Expression

Constructors

private PhraseExpression(String searchPhrase)

TESTVISIBLE

Fields

private searchPhraseString

TESTVISIBLE


Methods

public String toExpressionString()
public override String toString()

QueryException

Inheritance

QueryException

ReturningFieldSpec

Constructors

public ReturningFieldSpec(SObjectType sobjectType)
public ReturningFieldSpec(String objectTypeName)

Fields

private fieldsToSelectSet<String>

TESTVISIBLE

private listViewNameString

TESTVISIBLE

private numberOfRowsInteger

TESTVISIBLE

private objectTypeNameString

TESTVISIBLE

private offsetInteger

TESTVISIBLE

private sortOrdersList<SortOrder>

TESTVISIBLE

private whereConditionCondition

TESTVISIBLE


Methods

public ReturningFieldSpec selectField(String fieldApiName)
public ReturningFieldSpec selectFields(List<String> fieldApiNames)
public ReturningFieldSpec selectFields(Set<String> fieldApiNames)
public ReturningFieldSpec selectFields(Schema fieldSet)
public ReturningFieldSpec usingListView(String listViewName)
public ReturningFieldSpec whereCondition(Condition condition)
public ReturningFieldSpec orderBy(SortOrder sortOrder)
public ReturningFieldSpec scopeLimit(Integer numberOfRows)
public ReturningFieldSpec offset(Integer offset)
public String toReturningFieldSpecString()
private void addFieldListStatement(List<String> queryStatements)
private void addUsingListViewStatement(List<String> queryStatements)
private void addWhereStatement(List<String> queryStatements)
private void addOrderByStatement(List<String> queryStatements)
private void addLimitStatement(List<String> queryStatements)
private void addOffsetStatement(List<String> queryStatements)
public override String toString()

ScriptVariable

Constructors

public ScriptVariable(String variableName)

Fields

private variableNameString

TESTVISIBLE


Methods

public String toScriptVariableString()
public override String toString()

SearchCondition

Constructors

public SearchCondition()
public SearchCondition(LogicalOperator logicalOperator)

Fields

private logicalOperatorLogicalOperator

TESTVISIBLE

private searchExpressionsList<Expression>

TESTVISIBLE


Methods

public SearchCondition find(String searchPhrase)
public SearchCondition subSearchCondition(SearchCondition searchCondition)
public SearchCondition negateSubSearchCondition(SearchCondition searchCondition)
public String toConditionString()
public override String toString()

SearchExpression

TESTVISIBLE

Implemented types

Expression

Constructors

private SearchExpression(SearchCondition searchCondition)

TESTVISIBLE

Fields

private searchConditionSearchCondition

TESTVISIBLE


Methods

public String toExpressionString()
public override String toString()

SortOrder

Class encompassing the soql sorting information

Constructors

public SortOrder(String fieldName)
public SortOrder(String fieldName, SortDirection direction)
public SortOrder(String fieldName, SortDirection direction, SortNullRecords nullRecords)

Fields

private directionSortDirection

TESTVISIBLE

private fieldnameString

TESTVISIBLE

private nullRecordsSortNullRecords

TESTVISIBLE


Methods

public String toSortOrderString()
public override String toString()

TypeOf

Constructors

public TypeOf(String polymorphicReference)

Fields

private elseFieldListSet<String>

TESTVISIBLE

private polymorphicReferenceString

TESTVISIBLE

private sobjectType2FieldListMap<String,Set<String>>

TESTVISIBLE


Methods

public TypeOf whenSObjectType(String sobjectType, Set<String> whenFieldList)
public TypeOf whenSObjectType(String sobjectType, List<String> whenFieldList)
public TypeOf elseFieldList(Set<String> elseFieldList)
public TypeOf elseFieldList(List<String> elseFieldList)
public TypeOf elseFieldList(String elseField)
public String toTypeOfString()
public override String toString()


Interfaces

Expression

TESTVISIBLE

Methods

private String toExpressionString()

TESTVISIBLE

Clone this wiki locally