CCEA A-Level Software Systems Development CL4
Software and the Development Environment
Defining Data: Types, Variables and Classes
Program Control Structures
Objects, Classes and Data Structures
Exception Handling and Managing Input and Output
Testing an Object Oriented Application
Graphical User Interface Objects and Events
Multiple Forms and Linking to Files
Designing, Testing and Evaluating an Event Driven Application
Reasons for Systems Development and Systems Methodologies
Managing Projects
Testing Strategies
Database Concepts and Entity Relationship Modelling
Normalisation and Structured Query Language
Project Management and the Systems Approach in Practice
Defining Requirements and Documenting the Design
Building a Desktop Solution with a Database
Testing and Evaluating the Solution
Building a Desktop Solution with a Database
Saving changes and protecting the data
- 3 things to know
- A2 Unit 2
Overview
Optimistic concurrency and pessimistic concurrency.
What you need to know
Answer each one before you reveal it.
What must be done to protect the data before the solution is handed over?
What happens when a user presses Save on a bound form?
Questions from this subtopic
Each one with the model answer underneath.
- 1
What happens when a user presses Save on a bound form?
Model answer
The current edit is ended so the control writes its value, the data set is validated, the adaptor is asked to update, and if that succeeds the changes are accepted so the rows count as unchanged again.
- 2
Why must the changes be accepted only after a successful save?
Model answer
Accepting marks every row unchanged and discards the record of what it was, so accepting before the save succeeds would lose the changes the adaptor still had to send.
- 3
Why should a save of several related tables run inside a transaction?
Model answer
Because the tables must agree: saving an order without its lines, or lines without their order, leaves the database in a state the design forbids. A transaction makes all the changes take effect or none.
- 4
In what order are related tables saved, and why?
Model answer
Parents are inserted before children and children are deleted before parents, so a foreign key never points at a row that does not exist yet or has already gone.
- 5
What is optimistic concurrency?
Model answer
Optimistic concurrency allows several users to read the same row and detects a clash only when a change is saved, by requiring the row still to hold the values it had when it was read.
- 6
What is pessimistic concurrency?
Model answer
Pessimistic concurrency locks a row when a user starts editing it, so nobody else can change it until the lock is released. It prevents clashes but holds locks for as long as a user takes to type.
Other ways to work this
The same content, four other ways.
What is inside Levo
Six ways to work the same material.
Every question in Building a Desktop Solution with a Database, on a schedule.
Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.