levo

Building a Desktop Solution with a Database

Data sets

  • 3 things to know
  • A2 Unit 2
Start revising · £5/month

Overview

The in-memory copy that holds tables, relationships and the state of every row, why it works without a connection, what accepting and rejecting changes do, and how it differs from a forward-only reader.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is a data set?

Key term

Why is a data set described as a disconnected copy?

Key term

What states can a row in a data set be in?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is a data set?

    Model answer

    A data set is an in-memory copy of data, holding one or more tables with their columns, rows, keys and relationships, and existing independently of the database it was filled from.

  2. 2

    Why is a data set described as a disconnected copy?

    Model answer

    Because once it is filled it holds the data on its own and needs no connection. The application reads and changes it locally, and the database is contacted again only when the changes are sent back.

  3. 3

    What can a data set hold besides rows?

    Model answer

    A data set can hold several tables at once, the relationships between them, primary key definitions, and constraints, so it can enforce integrity locally in the same way the database does.

  4. 4

    Why would a data set hold more than one table?

    Model answer

    Holding related tables together lets the application follow a relationship in memory — listing an order's lines from the order row — without returning to the database for each one.

  5. 5

    What states can a row in a data set be in?

    Model answer

    A row is unchanged, added, modified or deleted, and the data set keeps that state so the adaptor knows which command to issue for it when the changes are saved.

  6. 6

    What does it mean to accept changes on a data set?

    Model answer

    Accepting changes marks every row as unchanged and discards the record of what it was before, which is done after the changes have been saved successfully so the next save does not repeat them.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Software and the Development Environment
Defining Data: Types, Variables and Classes
Program Control Structures
Objects, Classes and Data Structures

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A null is the of one.
absencepresencetype

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

An error is the mistake a person made.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Building a Desktop Solution with a Database, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.