- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 JDBC 数据源和连接池
1.什么是连接池连接池技术预先建立多个数据库连接对象,然后将连接对象保存到连接池中,当客户请求到来的时候,从池中取出一个连接对象为客户服务,当请求完成后,客户程序调用close()方法,将连接对象放回池中。在普通的数据库访问程序中,客户程序得到的连接对象是物理连接,调用连接对象的close()方法关闭连接,而采用连接池技术,客户程序得到的连接对象是连接池中物理连接的一个句柄,调用连接对
2009-06-25 10:33:00 627
JDBC 数据源和连接池
1.什么是连接池 连接池技术预先建立多个数据库连接对象,然后将连接对象保存到连接池中,当客户请求到来的时候,从池中取出一个连接对象为客户服务,当请求完成后,客户程序调用close()方法,将连接对象放回池中。 在普通的数据库访问程序中,客户程序得到的连接对象是物理连接,调用连接对象的close()方法关闭连接,而采用连接池技术,客户程序得到的连接对象是连接池中物理连接的一个句柄,调用连接对...
2009-06-25 10:33:00 71
原创 jsp:include and include directive
1.The element allows you to include either a static or dynamic file in a JSP file. The results of including static and dynamic files are quite different. If the file is static, its content is include
2009-06-17 13:45:00 1026
jsp:include and include directive
1.The <include> element allows you to include either a static or dynamic file in a JSP file. The results of including static and dynamic files are quite different. If the file is static, its con...
2009-06-17 13:45:00 169
原创 EL Implicit Objects and JSP Implicit Objects
JSP Implicit Objects :Implicit objects in jsp are the objects that are created by the container automatically and the container makes them available to the developers, the developer do not need to
2009-06-16 16:48:00 538
EL Implicit Objects and JSP Implicit Objects
JSP Implicit Objects : Implicit objects in jsp are the objects that are created by the container automatically and the container makes them available to the developers, the developer do not need to...
2009-06-16 16:48:00 82
原创 命令窗口找不到类
目录结构:webapps |mytest |WEB-INF |classes | foo(package) | |Person BeanTest问题如下:class 1:package foo;public class Person{ private String name; public
2009-06-15 12:00:00 842
命令窗口找不到类
目录结构: webapps | mytest | WEB-INF | classes | foo(package) | | Person BeanTest 问题如下: class 1: package foo; public class Person{ private String name; public...
2009-06-15 12:00:00 215
原创 Statement和PreparedStatement之间的区别
1.PreparedStatement是预编译的,对于批量处理可以大大提高效率. 也叫JDBC存储过程2.使用 Statement 对象。在对数据库只执行一次性存取的时侯,用 Statement 对象进行处理。PreparedStatement 对象的开销比Statement大,对于一次性操作并不会带来额外的好处。3.statement每次执行sql语句,相关数据库都要执行sql语
2009-06-11 11:56:00 6285
Statement和PreparedStatement之间的区别
1.PreparedStatement是预编译的,对于批量处理可以大大提高效率. 也叫JDBC存储过程 2.使用 Statement 对象。在对数据库只执行一次性存取的时侯,用 Statement 对象进行处理。PreparedStatement 对象的开销比Statement大,对于一次性操作并不会带来额外的好处。 3.statement每次执行sql语句,相关数据库都要执行sql语...
2009-06-11 11:56:00 117
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人