201521123089 Java programming 14th Week of study summary

Source: Internet
Author: User

1. Summary of this week's study

1.1 Summarize multi-database related content in the way you like (mind mapping or other).

2. Written assignment 1. MySQL Database basic operations

Create a database and insert your name and school number as a record. (, need to have their own school number, name)
Execute common SQL statements on the database you have established ()
-Reference: Experimental Task Book-topic 1

2. Using JDBC to connect to the database and statement

2.1 Use statement to manipulate the database. (Paste a code that you think is more valuable, the number of the study)
2.2 What do you think is the routine of using JDBC to manipulate databases? There are some points that need attention.
-Reference: Experimental Task book-topic 2

3. PreparedStatement and Parametric queries

3.1 Use PreparedStatement to query based on user-specified query criteria. (Paste a code that you think is more valuable, the number of the study)
3.2 Batch Update-BULK INSERT 1000 students to count the time spent on the entire operation. Compare the time consumed by the normal method of inserting and using executeBatch the method. (Use JUINT4 test, need to show time contrast)

    • Reference: Experimental Task book-topic 3
4. Jdbcutil and DAO

4.1 Paste a piece of code that you think is more valuable and explain why you want to extract the code. Show number
4.2 What are the benefits of accessing a database using DAO mode?

    • Reference: Experimental Task book-topic 5
5. Using the database to retrofit the shopping cart system

5.1 Using the database to transform the previous shopping cart system (should have a graphical interface). If you have previously completed a shopping cart system, you can write a database-based student management system. Including the student's additions and deletions to change, request to use.
5.2 Compared to using files, how about using database storage versus managing data?

Option: 6. Batch update test

On the database course, you need to test the acceleration of the index for lookups. However, it is not possible to visually experience the acceleration of the index by operating on a hundreds of or thousands of data volume. Now you want to write a program that inserts 10 million of data in bulk, and that the contents of some fields in that data can be randomly generated.
6.1 Your code (advent number), statistics run time
6.2 How fast is the insertion rate calculated? ( 条/秒 calculated in KB/秒 two different ways)

Option: 7. Transaction processing

7.1 Using code and running results proves that you did implement transaction processing. (Paste a code that you think is more valuable, the number of the study)
7.2 When do you think you need to use transaction processing?

    • Reference: Experimental Task book-topic 4
Choose to do 8. Database Connection Pool

Overwriting a problem with a database connection pool 5

    • Reference: Experimental Task book-topic 4
    • Data Connection Pool Reference
3. Code Cloud 3.1. Codes Cloud Code submission record
      • In the Code cloud Project, select statistics-commits history-set time period, and then search for and

201521123089 Java programming 14th Week of study summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.