20145321 Java Programming 9th Week of study summary

Source: Internet
Author: User

20145321 "Java program Design" 9th Week study summary Textbook Learning content summary 16th Chapter Integration Database 16.1 JDBC
 1、JDBC简介:    JDBC是Java联机数据库的标准规范,它定义一组标准类和接口,应用程序需要联机数据时调用    这组标准API。    应用程序通过通信协议对数据库进行指令交换,以进行对数据的的增删查找。 2、JDBC标准分为两个部分:    JDBC应用开发者接口    JDBC驱动程序开发者接口    更换数据库时只需要更换驱动程序的JAR文档,无需修改应用程序本身。 3、驱动程序4种类型:    JDBC-ODBC Bridge Driver    Native API Driver    JDBC-Net Driver    Native Protocl Drivel 4、连接数据库:    注册Java操作对象: 操作Driver接口的对象是JDBC进行数据库存取的起点。    取得Connection操作对象    关闭Connection操作对象: 可以自动关闭 5、Conection是数据库连接的代表对象,接下来必须取得java.sql.Statement操作对象 调    用clearstatement清除设置的参数,之后就能再次使用这个PreparedStatement实例。
16.2 JDBC Advanced
 1、使用DateSource取得联机:    通过getConnection()方法取得Connection。 2、使用ResultSet卷动、更新数据:    可以使用updateXXXX()方法、updateRow()等方法进行数据修改。 3、批次更新:用addbatch收集收集sql可以实现批次更新。 4、Blob与Clob:如果要将文档写入数据库,可以在数据库表格字段上使用Blob与Clob。 5、交易简介:    交易的四个基本要求是原子性、一致性、隔离行为与持续性。    多个交易并行时,可能引发很多数据不一致的问题。 6、metadata:取得数据库的整体信息,取得域名字段类型等信息。 7、RowSet:可以使用RowSet对列集合进行增删查改。
Problems in code debugging and resolving process code managed Learning progress bar new/cumulative) /cumulative)
lines of code (new/cumulative) Blog Volume (Learning time (new
Goal 3500 rows 28 Articles 300 hours
First week 150/150 1/2 20/20
Second week 150/300 1/3 20/40
Third week 150/450 1/4 20/60
Week Four 250/700 1/5 20/80
Week Five 200/900 1/6 10/90
Week Six 200/1100 2/8 20/110
Seventh Week 250/1350 2/10 20/130
Eighth Week 200/1550 2/12 20/150
Nineth Week 200/1750 2/14 20/170

20145321 Java Programming 9th 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.