Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through...

11
Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through the Web Programming the World Wide Web 2009 Fifth Edition by Robert W. Sebesta

Transcript of Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through...

Page 1: Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through the Web Programming the World Wide Web 2009 Fifth Edition.

Copyright © 2010 Pearson Addison-Wesley. All rights reserved.

Chapter 13:Database Access through the Web

Programming the World Wide Web 2009Fifth Edition

by Robert W. Sebesta

Page 2: Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through the Web Programming the World Wide Web 2009 Fifth Edition.

13-2

1-2

Copyright © 2010 Pearson Addison-Wesley. All rights reserved.

Figure 13.1 The logical data model for a database

Page 3: Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through the Web Programming the World Wide Web 2009 Fifth Edition.

13-3

1-3

Copyright © 2010 Pearson Addison-Wesley. All rights reserved.

Figure 13.2 The Equipment table

Page 4: Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through the Web Programming the World Wide Web 2009 Fifth Edition.

13-4

1-4

Copyright © 2010 Pearson Addison-Wesley. All rights reserved.

Figure 13.3 The Corvettes table

Page 5: Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through the Web Programming the World Wide Web 2009 Fifth Edition.

13-5

1-5

Copyright © 2010 Pearson Addison-Wesley. All rights reserved.

Figure 13.4 The States table

Page 6: Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through the Web Programming the World Wide Web 2009 Fifth Edition.

13-6

1-6

Copyright © 2010 Pearson Addison-Wesley. All rights reserved.

Figure 13.5 The Corvettes_Equipmentcross-reference table

Page 7: Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through the Web Programming the World Wide Web 2009 Fifth Edition.

13-7

1-7

Copyright © 2010 Pearson Addison-Wesley. All rights reserved.

Figure 13.6 Three-tier architecture of a Web site supported by databases

Page 8: Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through the Web Programming the World Wide Web 2009 Fifth Edition.

13-8

1-8

Copyright © 2010 Pearson Addison-Wesley. All rights reserved.

Figure 13.7 Common database access architecture

Page 9: Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through the Web Programming the World Wide Web 2009 Fifth Edition.

13-9

1-9

Copyright © 2010 Pearson Addison-Wesley. All rights reserved.

Figure 13.8 Display of the return document from access_cars.php

Page 10: Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through the Web Programming the World Wide Web 2009 Fifth Edition.

13-10

1-10

Copyright © 2010 Pearson Addison-Wesley. All rights reserved.

Table 13.1 Common SQL data types and their Java counterparts

Page 11: Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 13: Database Access through the Web Programming the World Wide Web 2009 Fifth Edition.

13-11

1-11

Copyright © 2010 Pearson Addison-Wesley. All rights reserved.

Figure 13.9 Display of the results of JDBCServlet