201621123013 Java programming 14th Week of study summary

Source: Internet
Author: User

Tag:zha    run time     how     paste     connection pooling     cti    statement     proof    util   

1. Study summary 1.1 This week summarize your database-related content in the way you like (mind mapping or other). 2. Using database technology your system 2.1 briefly describes how to use the database to transform your system. What table do you want to build? The design of your watch. What are the key classes used in JDBC in the 2.2 system? 2.3 Key code for database related modules. Critical lines need to be annotated. 2.4 Select: Use Jdbcutil to retrofit the system. Reference: Experimental task Book-topic 52.5 Select: Use database connection Pool technical transformation system. Reference: Experimental Task Book-topic 6 data Connection Pool Reference 2.6 Optional: Use transaction Transformation System reference: Experimental Task Book-topic 4 reference: TRANSACTIONTEST.JAVA3. Code Volume Statistics 3.1 The amount of code done this week requires merging weekly code statistics into a single table. Option: 4. Database Learning Guide 1. MySQL database basic operations to establish a database, your name, the school number as a record inserted. (, need to have their own number, name) to execute common SQL statements on their own database (self-completed, not necessary) reference: Experimental Task Book-topic 12. Use the statement operations database with the JDBC Connection database and Statement2.1. Complete the experimental Task book-topic 2. One of the public static void Displayall () and public static int insert (Student stu) is the key code that appears with its own school number. 2.2 If you want to finish querying student data based on the specified name, complete the function public Student findstubyname (String name), where is the SQL statement written? 2.3 What do you think is the routine of using JDBC to manipulate databases? Reference: Experimental Task Book-topic 23. PreparedStatement with parameterized Query 3.1 uses PreparedStatement, writes public Student findstubyname (String name), which is implemented according to name. (Paste the key code and run, need to appear in the operation of the number, comparison of 2.2, indicating the difference between the two implementations) 3.2 If you want to implement Fuzzy Lookup, how to modify? For example, write public List Reference: Experimental Task Book-topic 3 4. On the bulk Update test 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 100,000 of data in bulk, and that the contents of some fields in that data can be randomly generated. 4.1 Your code (advent number), statistics run time(Time comparisons are required using JUINT4 tests). 4.2 Choose: How fast is the speed of the insertion calculated? (Calculated in Strips/sec or two MB/s). and test the disk read and write performance of the disks on your computer and compare them. 6. Transaction 6.1 Using code and running results proves that you did implement the transaction function and what do you need to be aware of when you encode the transaction? Note: To compare the changes made to the database in both the successful and failed run scenarios. (Paste a piece of code that you think is more valuable.) 6.2 When do you think you need to use transaction processing? Reference: Experimental Task Book-topic 4 Reference: Transactiontest.java

201621123013 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.