Scripting Module 7 Flashcards
What is the strategy for creating a new GlideRecord Query
Create a GlideRecord objec
Build the query conditions
Execute the query
Process returned records
What does get() do?
Use to query for a single record
What methods are used to confirm records returned?
getRowCount()
GlideAggregate()
How do you build an encoded query?
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
What is an alternative to GlideRecord
GlideQuery
What are the main functions of GlideQuery
glideQuery.insert()
glideQuery.select() and glideQuery.selectOne()
glideQuery.update()
glideQuery.deleteMultiple(
How does GlideQuery read data?
Stream class
Optional class
What are common methods of the Stream Class
map
flatMap
forEach
reduce
some/any
What are common methods of the Optional class?
get
map
isEmpty
isPresent
ifPresent
orElse