the story so far system split into layers – maintainability & re-use database – stored...

16

Upload: cathleen-haynes

Post on 08-Jan-2018

214 views

Category:

Documents


1 download

DESCRIPTION

Overview of Driving Test 2

TRANSCRIPT

Page 1: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects
Page 2: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

The Story so farSystem split into layers – maintainability & re-useDatabase – stored procedures, tables, rows,

columns & parametersRange of objects allowing us to control different

parts of the computer using their methods & propertiesVariables – RAMControls – InterfaceDataConnection class – database

Introduced a lot of coding concepts, assignment, sequence, selection, validation, functions, parameters to name a few

Page 3: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

Overview of Driving Test 2

Page 4: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

How do we Manipulate a List of Data?

Page 5: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

Array Lists Our list of data…

Fred Wilma Barney Betty

The code…

Page 6: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

The Count Property

Page 7: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

Index NumbersRather like house numbersBUT ---- Zero bound

Value IndexFred 0Wilma 1Barney 2Betty 3

Page 8: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

RemoveAt MethodValue IndexFred 0Wilma 1Barney 2Betty 3

Which record will be removed?

Page 9: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

Changing a List EntryWhat will the following do?

Page 10: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

Data TablesWe said all of that to introduce this…

sproc_tblAddress_SelectAll

SELECT *FROM tblAddress

Page 11: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

Middle Layer Code

How do we get at the results of the query?

Page 12: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

Data Table Contents

Page 13: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

The Address Page ClassclsAddressPageAddressNoHouseNoTownStreetPostCodeCountyCodeDateAddedBoolean Active

Page 14: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

Copying Data From Data Table to Array

Page 15: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

Encapsulation and Data HidingWhy do we do this?

clsDataConnection

Count

AddParameterExecute

Page 16: The Story so far System split into layers – maintainability & re-use Database – stored procedures, tables, rows, columns & parameters Range of objects

New to studying in a UK university week

Sign up at: www.library.dmu.ac.uk/Home/Calendar

Monday 11th November

Tuesday 12th

November

Wednesday 13th

November

Thursday 14th

NovemberFriday 15th November

New styles of Learning10-11am

How to get the most out of

your lectures and seminars

12-1pm

Avoiding Plagiarism workshop 110-12noon

An introduction to resources to help you with your use of

English Language

12-2pm

Avoiding Plagiarism workshop 2

12-2pm

How to cite and reference using

Harvard12-1pm

Taking a critical

approach to your work

1-2pm

Polishing your assignment

5:30-6:30pm

New styles of assessment

1-2pm