Scripting Module 7 Flashcards

1
Q

What is the strategy for creating a new GlideRecord Query

A

Create a GlideRecord objec
Build the query conditions
Execute the query
Process returned records

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

What does get() do?

A

Use to query for a single record

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

What methods are used to confirm records returned?

A

getRowCount()
GlideAggregate()

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

How do you build an encoded query?

A

Open the list for the table of interest
Build the query using the condition builder
Run the query to ensrue correct results
Right click the breadcrumbs and select copy query

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

What is an alternative to GlideRecord

A

GlideQuery

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

What are the main functions of GlideQuery

A

glideQuery.insert()
glideQuery.select() and glideQuery.selectOne()
glideQuery.update()
glideQuery.deleteMultiple(

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

How does GlideQuery read data?

A

Stream class
Optional class

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

What are common methods of the Stream Class

A

map
flatMap
forEach
reduce
some/any

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

What are common methods of the Optional class?

A

get
map
isEmpty
isPresent
ifPresent
orElse

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