Database Namespace
The Database namespace provides classes used with DML operations.
The following are the classes in the Database namespace.
-
The class that implements this interface can be executed as a batch Apex job.
-
Represents the parameter type of a batch job method and contains the batch job ID. This interface is implemented internally by Apex.
-
Contains methods to fetch records and to get the number of cursor rows returned from a SOQL query.
-
This class encapsulates the result of a
PaginationCursor.fetchPage()call. It contains methods that get the rows for the current page, the start index of the next page, and the number of deleted rows skipped during the fetch operation. It also contains a method that indicates whether the pagination cursor has fetched all available rows in the result set. -
Contains information about a deleted record.
-
Represents the result of a delete DML operation returned by the
Database.deletemethod. -
Enables you to set options related to DML operations.
-
DmlOptions.AssignmentRuleHeader Class
Enables setting assignment rule options.
-
DMLOptions.DuplicateRuleHeader Class
Determines options for using duplicate rules to detect duplicate records. Duplicate rules are part of the Duplicate Management feature.
-
Enables setting email options.
-
Contains information about an error that occurred when an attempt was made to save a duplicate record. Use if your organization has set up duplicate rules, which are part of the Duplicate Management feature.
-
The result of the emptyRecycleBin DML operation returned by the
Database.emptyRecycleBinmethod. -
Represents information about an error that occurred during a DML operation when using a Database method.
-
Contains the deleted records retrieved for a specific sObject type and time window.
-
Contains the result for the
Database.getUpdatedmethod call. -
Contains information used for lead conversion.
-
The result of a lead conversion.
-
Contains the result of a merge Database method operation.
-
This class represents a pagination cursor that can traverse a SOQL query result set. It contains methods that fetch rows by page. It also contains a method that returns the total number of rows in the result set.
-
Represents the record set returned by
Database.getQueryLocatorand used with Batch Apex. -
Represents an iterator over a query locator record set.
-
Contains an immutable configuration for the SOQL
SET OPTIONSclause. -
Contains methods to build an immutable
Database.QueryOptionsinstance. -
The result of an insert or update DML operation returned by a Database method.
-
The result of an undelete DML operation returned by the
Database.undeletemethod. -
The result of an upsert DML operation returned by the
Database.upsertmethod.