摘要:
Assignment 1: Adding a .jar file for JDBC in Eclipse IDEObjective: To learn how to add a .jar file肯定会有疑问为什么要学会怎么添加一个以jar为后缀的文件呢,到底有什么用,jar文件是干什么的,jar文件里有什么,jar是怎么产生的。见下面分析。Background: Some java program needs to import packages which might not comealong with the java SDK. They might be available as . 阅读全文
摘要:
一、Data Persistence persistence:n. 持续;存留;固执要引入JPA,首先要讲的是数据持久的概念,从persistence单词的意思,我们可以知道数据持久也可以理解成数据保留的意思,即一个应用程序涉及到的数据是怎么保存在计算机中的。然后知道数据怎么保存的,接下来就是如何处理这些数据了。ØData persistence is one of the most critical operations for Enterprise Applications. critical: adj. 鉴定的;[核] 临界的;批评的,爱挑剔的;危险的;决定性的;评论的这个地方 阅读全文
摘要:
一、 Connection interface当驱动和连接建立后,我们就该考虑通过连接,我们能做哪些事,而接口相当于一个目录,就是告诉我们连接建立后能做什么事,做哪些事情。ØDefines methods for interacting with the database via the established connection. 这个地方告诉我们这个连接的接口讲了什么,当然在概念上要首先认识到interface是一个接口,这里要注意到这个interface是一段代码。Connection interface通过已经建立的连接定义了和数据库交互的方法,Connection int 阅读全文
摘要:
一、Loading the Database Driver前面第一步说了,要制定数据库的驱动,所以我们现在要做的是:怎么制定(载入)数据库的驱动呢? ØWe load the driver class by calling Class.forName() with the Driver class name as an argument.句子结构分析:主语:我们谓语:载入宾语:驱动宾语子句:通过调用Class.forName(),怎么调用:将驱动的类的名字作为参数ØOnce loaded, the Driver class creates an instance of it 阅读全文
摘要:
一、The JDBC (Java Database Connectivity) API helps a Java program to access a database in a standard way .这句话的意思说明了JDBC是用来干什么的:帮助java程序去访问数据库的。简而言之:jdbc是用来给程序访问数据库的。JDBC is a specification that specification: n. 规格;详述;说明书在这个地方准确的将specification应该翻译成规范。JDBC其实就是一种规范,我们要学习的应该就是JDBC规范了什么,将什么规范,我们如何使用!te.. 阅读全文