Skip to main content
[ This file is autogenerated from apexdoc ]

AqObjectQueryInfo

Manages queries for finding records by external IDs. Used internally during JSON parsing to locate existing records for upsert operations.

Group modules/mapping tool

Overview​

AqObjectQueryInfo is an internal utility class that manages queries for finding Salesforce records by external ID values. It's used by AqJsonToSobjectParser to:

  • Build efficient queries for finding records by external IDs
  • Handle multiple external ID values in a single query
  • Support parent field queries for hierarchical relationships
  • Find records by external ID field and value

Usage​

This class is used internally by the mapping tool. It's not typically instantiated directly, but understanding its role helps with debugging query-related issues during JSON parsing operations.

Constructors​

public AqObjectQueryInfo(String objectName)​

public AqObjectQueryInfo(String objectName, SObjectField sfField, Object fieldValue, Boolean allowDuplicates)​


Methods​

public void addFieldValueToQuery(SObjectField sfField, Object fieldValue, Boolean allowDuplicates)​

public void fillQueryResults()​

public SObject findRecord(SObjectField sfField, Object fieldValue)​

public void setParentFieldName(String parentFieldName)​