The Database namespace
provides classes used with DML operations.
The following are the classes in the Database namespace.
Batchable Interface
The class that implements this interface can be executed as a batch Apex job.
BatchableContext Interface
Represents the parameter type of a batch job method and contains the batch job ID. This interface is implemented internally by Apex.
DMLOptions.DuplicateRuleHeader Class
Determines options for using duplicate rules to detect duplicate records. Duplicate rules are part of the Duplicate Management feature.
DuplicateError Class
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.
EmptyRecycleBinResult Class
The result of the emptyRecycleBin DML operation returned by the Database.emptyRecycleBin method.
Error Class
Represents information about an error that occurred during a DML operation when using a Database method.
GetDeletedResult Class
Contains the deleted records retrieved for a specific sObject type and time window.