thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Business Platforms & EA · Intermediate

Database Class

Apex class with methods like Database.insert and Database.update that support partial success via the allOrNone parameter.

Definition

Database methods return SaveResult arrays for inspecting per-record errors when allOrNone is false, and support access level for user-mode operations.

Example

Database.SaveResult[] r = Database.insert(records, false);

Exam tip

Use Database methods with allOrNone=false when some records may fail and the rest should save.

Related terms