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.

Constructors

private SOQL(String queryString)

TESTVISIBLE

Fields

private queryStringString

TESTVISIBLE


Methods

public String getQueryString()

public sObject getRecord()

public List getRecords()

public Database getQueryLocator()

public override String toString()


Classes

Builder

Constructors

public Builder(String objectType)

Fields

private fieldsToSelectSet<String>

TESTVISIBLE

private numberOfRowsInteger

TESTVISIBLE

private objectTypeString

TESTVISIBLE

private offsetInteger

TESTVISIBLE

private scopeQuery

TESTVISIBLE

private sortOrdersList<Query.SortOrder>

TESTVISIBLE

private statementForSet<String>

TESTVISIBLE

private statementUpdateSet<String>

TESTVISIBLE

private typeOfClausesList<Query.TypeOf>

TESTVISIBLE

private whereConditionQuery

TESTVISIBLE


Methods

public Builder selectField(String fieldApiName)
public Builder selectFields(List<String> fieldApiNames)
public Builder selectFields(Set<String> fieldApiNames)
public Builder selectFields(Schema fieldSet)
public Builder selectFields(FieldSelection selection)
public Builder selectAll()
public Builder selectCustom()
public Builder selectStandard()
public Builder addSubQuery(SOQL subQuery)
public Builder addTypeOf(Query typeOfClause)
public Builder whereCondition(Query condition)
public Builder addScope(Query scope)
public Builder orderBy(Query sortOrder)
public Builder setScopeLimit(Integer numberOfRows)
public Builder setOffset(Integer offset)
public Builder setForReference()
public Builder setForUpdate()
public Builder setForView()
public Builder setUpdateTracking()
public Builder setUpdateViewStat()
public SOQL build()
private void addSelectStatement(List<String> queryStatements)
private void addFromStatement(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)
private void addScopeStatement(List<String> queryStatements)
private void addForStatement(List<String> queryStatements)
private void addUpdateStatement(List<String> queryStatements)
public override String toString()


Clone this wiki locally