<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Cauma_分类_Java</title><id>http://feed.cnblogs.com/blog/u/40693/category/185358/rss</id><updated>2012-05-29T22:33:42Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/category/185358.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/40693/category/185358/rss"/><entry><id>http://www.cnblogs.com/bluedream2009/archive/2009/10/26/1590285.html</id><title type="text">使用HashSet过滤重复字符</title><summary type="text">Set集合会将重复的键值过滤掉.利用这一特性.可以将数组里相同的字符串过滤掉.代码:[代码]结果:[代码]</summary><published>2009-10-26T15:07:00Z</published><updated>2009-10-26T15:07:00Z</updated><author><name>BlueDream</name><uri>http://www.cnblogs.com/bluedream2009/</uri></author><link rel="alternate" href="http://www.cnblogs.com/bluedream2009/archive/2009/10/26/1590285.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/archive/2009/10/26/1590285.html"/><content type="text">Set集合会将重复的键值过滤掉.利用这一特性.可以将数组里相同的字符串过滤掉.代码:[代码]结果:[代码]</content></entry><entry><id>http://www.cnblogs.com/bluedream2009/archive/2009/10/23/1588782.html</id><title type="text">JDBC之运用反射模拟ORM</title><summary type="text">上一篇我们使用了结果集元数据实现了将结果集封装到List&lt;Map&lt;K,V&gt;&gt;中返回.ORM:对象-关系数据库映射(Object/Relation Mapping).以简单的方式提供了领域对象模型与数据库间的映射.典型的Hibernate,iBatis这里仅是练习.功能还很弱.程序目的:传入sql语句返回字段如果和传入对象模型的setXX方法对应则自动赋值.并返回该对象.首先...</summary><published>2009-10-23T08:47:00Z</published><updated>2009-10-23T08:47:00Z</updated><author><name>BlueDream</name><uri>http://www.cnblogs.com/bluedream2009/</uri></author><link rel="alternate" href="http://www.cnblogs.com/bluedream2009/archive/2009/10/23/1588782.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/archive/2009/10/23/1588782.html"/><content type="text">上一篇我们使用了结果集元数据实现了将结果集封装到List&lt;Map&lt;K,V&gt;&gt;中返回.ORM:对象-关系数据库映射(Object/Relation Mapping).以简单的方式提供了领域对象模型与数据库间的映射.典型的Hibernate,iBatis这里仅是练习.功能还很弱.程序目的:传入sql语句返回字段如果和传入对象模型的setXX方法对应则自动赋值.并返回该对象.首先...</content></entry><entry><id>http://www.cnblogs.com/bluedream2009/archive/2009/10/23/1588401.html</id><title type="text">JDBC之用元数据将结果集封装为List对象</title><summary type="text">JDBC的方法里面有着一套对数据库元数据操作的API.通过这些API我们可以获得数据库以及驱动等信息,也可以获得结果集的一些信息.而有些信息平时用的也比较少,这里就不一一介绍.在这里主要给大家演示一下DatabaseMetaData和ResultSetMetaData的用法.先看下数据表结构然后代码如下.依然借用上节整合的DBUtils和新演示类MetaOperDBUtils.java[代码]Me...</summary><published>2009-10-22T16:49:00Z</published><updated>2009-10-22T16:49:00Z</updated><author><name>BlueDream</name><uri>http://www.cnblogs.com/bluedream2009/</uri></author><link rel="alternate" href="http://www.cnblogs.com/bluedream2009/archive/2009/10/23/1588401.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/archive/2009/10/23/1588401.html"/><content type="text">JDBC的方法里面有着一套对数据库元数据操作的API.通过这些API我们可以获得数据库以及驱动等信息,也可以获得结果集的一些信息.而有些信息平时用的也比较少,这里就不一一介绍.在这里主要给大家演示一下DatabaseMetaData和ResultSetMetaData的用法.先看下数据表结构然后代码如下.依然借用上节整合的DBUtils和新演示类MetaOperDBUtils.java[代码]Me...</content></entry><entry><id>http://www.cnblogs.com/bluedream2009/archive/2009/10/21/1587206.html</id><title type="text">JDBC之PreparedStatement</title><summary type="text">上一节JDBC初步.主要讲了基本访问数据库的步骤.其中第四步提到了用Statement去执行SQL语句.这里介绍个Statement的子类PreparedStatement.PreparedStatement(预处理执行语句)相比其父类Statement主要有以下几个优点.1.可以防止SQL注入. 2.在特定的驱动数据库下相对效率要高(不绝对) 3.不需要频繁编译.因为已经预加载了这里2和3的优点...</summary><published>2009-10-20T16:30:00Z</published><updated>2009-10-20T16:30:00Z</updated><author><name>BlueDream</name><uri>http://www.cnblogs.com/bluedream2009/</uri></author><link rel="alternate" href="http://www.cnblogs.com/bluedream2009/archive/2009/10/21/1587206.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/archive/2009/10/21/1587206.html"/><content type="text">上一节JDBC初步.主要讲了基本访问数据库的步骤.其中第四步提到了用Statement去执行SQL语句.这里介绍个Statement的子类PreparedStatement.PreparedStatement(预处理执行语句)相比其父类Statement主要有以下几个优点.1.可以防止SQL注入. 2.在特定的驱动数据库下相对效率要高(不绝对) 3.不需要频繁编译.因为已经预加载了这里2和3的优点...</content></entry><entry><id>http://www.cnblogs.com/bluedream2009/archive/2009/10/20/1587174.html</id><title type="text">JDBC初步</title><summary type="text">Sun公司为java与数据库之间提供了一套接口API.通过这套API可以通过数据库厂商提供的驱动类Driver来操作数据库.而这套API就是所谓的JDBC.java应用程序.JDBC.数据库三者的关系如下:下面介绍一下连接数据库的基本步骤:1.注册驱动[代码]2.建立连接[代码]3.创建执行SQL的语句Statement[代码]4.执行语句返回结果集[代码]5.处理结果集ResultSet [代码...</summary><published>2009-10-20T15:01:00Z</published><updated>2009-10-20T15:01:00Z</updated><author><name>BlueDream</name><uri>http://www.cnblogs.com/bluedream2009/</uri></author><link rel="alternate" href="http://www.cnblogs.com/bluedream2009/archive/2009/10/20/1587174.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/archive/2009/10/20/1587174.html"/><content type="text">Sun公司为java与数据库之间提供了一套接口API.通过这套API可以通过数据库厂商提供的驱动类Driver来操作数据库.而这套API就是所谓的JDBC.java应用程序.JDBC.数据库三者的关系如下:下面介绍一下连接数据库的基本步骤:1.注册驱动[代码]2.建立连接[代码]3.创建执行SQL的语句Statement[代码]4.执行语句返回结果集[代码]5.处理结果集ResultSet [代码...</content></entry></feed>
