DML Flashcards

Data Manipulation Language (15 cards)

1
Q

What is DML?

A

Data Manipulation Language, abbreviated as DML, enable creating and modifying records in Salesforce.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

DML Statements are operations that can act on one or many records. What are the available Operations?

A

Insert
Update
Upsert
Delete
Merge
Undelete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

If DML Operations on multiple records fail, what happens?

A

An Exception is thrown.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Do standalone DML statements allow for partial success?

A

No DML statements do not but Database class methods can.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

An Upsert will create a new record if none are matched and update if there is a match but what happens when multiple matches are found?

A

An Error is generated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How many records can be merged at a time?

A

Up to three records of the same sObject type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What other options do we have for manipulating data other than our standard DML operations?

A

The Database class provides an alternative way for making record changes in the database as well as other methods.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Database Class methods can allow for partial processing, what does this mean?

A

If a record fails to update or insert, the rest of the batch can continue to process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the ConvertLead Database Class Method do?

A

Converts a lead into a business account, contact, and opportunity (optional) by passing in lead records. A lead can also be converted into a business account and person account (instead of a contact) simultaneously if an org meets a required configuration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the Database Class Method EmptyRecycleBin do?

A

Permanently deletes records from the Recycle Bin by specifying a list of sObject or recordIds, or an sObject.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the SetSavePoint Database Class method do?

A

Creates a savepoint variable for restoring the database to that point using the rollback method.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the RollBack Database Class Method do?

A

Restores the database to the state specified by a savepoint variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the ReleaseSavePoint Database Class Method do?

A

Releases a specified savepoint as well as the savepoints that were created subsequently or after that savepoint.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What Database Class methods are available for partial processing?

A

Insert
Update
Upsert
Merge
Delete
Undelete

Ex. Database.insert()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly