<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>黑马王子专栏 - Java</title><link>http://blog.csdn.net/fzw98/category/347745.aspx</link><description /><dc:language>zh-CN</dc:language><lastUpdateTime>Mon, 08 Sep 2008 00:28:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>黑马王子</dc:creator><title>小议数据库的悲观锁和乐观锁</title><link>http://blog.csdn.net/fzw98/archive/2008/09/07/2896430.aspx</link><pubDate>Sun, 07 Sep 2008 23:16:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/09/07/2896430.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2896430.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/09/07/2896430.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2896430.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2896430</trackback:ping><description> hibernate锁机制，今天写个总结。Hibernate锁机制包括悲观锁和乐观锁。 &lt;img src ="http://blog.csdn.net/fzw98/aggbug/2896430.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>数据库相关－－Hibernate的事务和并发</title><link>http://blog.csdn.net/fzw98/archive/2008/09/07/2896407.aspx</link><pubDate>Sun, 07 Sep 2008 23:11:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/09/07/2896407.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2896407.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/09/07/2896407.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2896407.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2896407</trackback:ping><description> Hibernate的事务和并发控制很容易掌握。Hibernate直接使用JDBC连接和JTA资源，不添加任何附加锁定 行为。我们强烈推荐你花点时间了解JDBC编程，ANSI SQL查询语言和你使用 的数据库系统的事务隔离规范。Hibernate只添加自动版本管理，而不会锁 定内存中的对象，也不会改变数据库事务的隔离级别。基本上，使用 Hibernate就好像直接使用JDBC(或者JTA/CMT)来访问你的数据库资源。&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2896407.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>数据库并发控制技术(2)</title><link>http://blog.csdn.net/fzw98/archive/2008/09/07/2896381.aspx</link><pubDate>Sun, 07 Sep 2008 23:03:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/09/07/2896381.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2896381.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/09/07/2896381.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2896381.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2896381</trackback:ping><description> 计算机系统对并行事务中并行操作的调度是随机的，而不同的调度可能会产生不同的结果，那么哪个结果是正确的，哪个是不正确的呢？ 
　　如果一个事务运行过程中没有其他事务在同时运行，也就是说没有受到其他事务的干扰，那么就可能认为该事务的运行结果是正常的或者预想的，因此将所有事务串行起来的调度策略是正确的调度策略。虽然以不同的顺序串行执行事务也可能会产生不同的结果，但由于不会将数据库置于不一致状态，所以都可以认为是正确的。由此可以得到如下结论：几个事务的并行执行是正确的，当且仅当其结果与按某一次序串行地执行它们的结果相同。我们称这种并行调度策略为可串行化（serializable）的调度。可串行性（serializability）是并行事务正确性的唯一准则。 
&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2896381.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>数据库并发控制技术(1)</title><link>http://blog.csdn.net/fzw98/archive/2008/09/07/2896380.aspx</link><pubDate>Sun, 07 Sep 2008 23:02:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/09/07/2896380.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2896380.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/09/07/2896380.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2896380.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2896380</trackback:ping><description>数据库是一个共享资源，可以提供多个用户使用。这些用户程序可以一个一个地串行执行，每个时刻只有一个用户程序运行，执行对数据库的存取，其他用户程序必须等到这个用户程序结束以后方能对数据库存取。但是如果一个用户程序涉及大量数据的输入/输出交换，则数据库系统的大部分时间处于闲置状态。因此，为了充分利用数据库资源，发挥数据库共享资源的特点，应该允许多个用户并行地存取数据库。但这样就会产生多个用户程序并发存取同一数据的情况，若对并发操作不加控制就可能会存取和存储不正确的数据，破坏数据库的一致性，所以数据库管理系统必须提供并发控制机制。并发控制机制的好坏是衡量一个数据库管理系统性能的重要标志之一。 DM用封锁机制来解决并发问题。它可以保证任何时候都可以有多个正在运行的用户程序，但是所有用户程序都在彼此完全隔离的环境中运行。 
&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2896380.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>无向图的广度搜索实例</title><link>http://blog.csdn.net/fzw98/archive/2008/09/04/2876692.aspx</link><pubDate>Thu, 04 Sep 2008 00:25:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/09/04/2876692.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2876692.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/09/04/2876692.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2876692.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2876692</trackback:ping><description>关键字: 数据结构 
说明一下:下边的例子就是书的一个例子,并非我所写的,这一本书我觉得是最好 的一本java数据结构的入门书籍.现在把这一个例子记录在blog上,当作温习一下啦。&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2876692.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>算法性能分析</title><link>http://blog.csdn.net/fzw98/archive/2008/09/03/2876061.aspx</link><pubDate>Wed, 03 Sep 2008 22:29:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/09/03/2876061.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2876061.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/09/03/2876061.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2876061.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2876061</trackback:ping><description>算法性能分析&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2876061.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>Spring中事务的传播属性详解</title><link>http://blog.csdn.net/fzw98/archive/2008/09/02/2869891.aspx</link><pubDate>Tue, 02 Sep 2008 23:41:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/09/02/2869891.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2869891.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/09/02/2869891.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2869891.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2869891</trackback:ping><description>我们用Spring时，很多时候都会用到他的声明式事务，简单的在配置文件中进行一些规则配置，利用Spring的AOP功能就能轻松搞定事务问题；这里面就涉及到一个事务的传播属性问题【Propagation】，他在TransactionDefinition接口中定义，有兴趣可以看看src，共有7种选项可用：&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2869891.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>RSA算法的实现方法——Java版放送</title><link>http://blog.csdn.net/fzw98/archive/2008/08/30/2853873.aspx</link><pubDate>Sat, 30 Aug 2008 21:58:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/08/30/2853873.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2853873.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/08/30/2853873.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2853873.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2853873</trackback:ping><description>RSA算法的实现方法——Java版放送&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2853873.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>Mozilla Rhino:使用java语言来解释和执行javascript脚本</title><link>http://blog.csdn.net/fzw98/archive/2008/08/30/2853524.aspx</link><pubDate>Sat, 30 Aug 2008 20:03:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/08/30/2853524.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2853524.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/08/30/2853524.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2853524.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2853524</trackback:ping><description>JSR 233 为 Java 设计了一套脚本语言 API。这一套 API 提供了在 Java 程序中调用各种脚本语言引擎的接口。任何实现了这一接口的脚本语言引擎都可以在 Java 程序中被调用。在 Mustang 的发行版本中包括了一个基于 Mozilla Rhino 的 JavaScript 脚本引擎。&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2853524.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>垃圾清理势在必行——java垃圾收集算法</title><link>http://blog.csdn.net/fzw98/archive/2008/08/30/2853096.aspx</link><pubDate>Sat, 30 Aug 2008 17:09:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/08/30/2853096.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2853096.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/08/30/2853096.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2853096.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2853096</trackback:ping><description>Java语言建立了垃圾收集机制，用以跟踪正在使用的对象和发现并回收不再使用(引用)的对象。该机制可以有效防范动态内存分配中可能发生的两个危险：因内存垃圾过多而引发的内存耗尽，以及不恰当的内存释放所造成的内存非法引用。

　　垃圾收集算法的核心思想是：对虚拟机可用内存空间，即堆空间中的对象进行识别，如果对象正在被引用，那么称其为存活对象，反之，如果对象不再被引用，则为垃圾对象，可以回收其占据的空间，用于再分配。垃圾收集算法的选择和垃圾收集系统参数的合理调节直接影响着系统性能，因此需要开发人员做比较深入的了解。

&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2853096.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>Java 6.0 操作脚本语言基础</title><link>http://blog.csdn.net/fzw98/archive/2008/08/30/2852822.aspx</link><pubDate>Sat, 30 Aug 2008 16:02:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/08/30/2852822.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2852822.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/08/30/2852822.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2852822.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2852822</trackback:ping><description>Java6.0里面加了一个很实用的包：javax.script，它是Java新增的操作脚本的包，利用它我们可以对脚本语言进行操作，比如修改，或者调用，并且可以和Java语言交互，如果我们利用好的话，我们利用它来实现一些经常要改的部份，这样我们就可以把一些算法写到js文件里面，然后再在运行的时候读取出来并执行，这样就省去了更改一些东西需要重新编译的过程了. &lt;img src ="http://blog.csdn.net/fzw98/aggbug/2852822.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>候捷谈Java反射机制 </title><link>http://blog.csdn.net/fzw98/archive/2008/08/27/2839038.aspx</link><pubDate>Wed, 27 Aug 2008 16:53:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/08/27/2839038.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2839038.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/08/27/2839038.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2839038.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2839038</trackback:ping><description>Reflection 是Java被视为动态（或准动态）语言的一个关键性质。这个机制允许程序在运行时透过Reflection APIs取得任何一个已知名称的class的内部信息，包括其modifiers（诸如public, static 等等）、superclass（例如Object）、实现之interfaces（例如Cloneable），也包括fields和methods的所有信息，并可于运行时改变fields内容或唤起methods。本文借由实例，大面积示范Reflection APIs。&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2839038.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>采用Jakarta的HttpClient API模拟客户端GET和POST提交 </title><link>http://blog.csdn.net/fzw98/archive/2008/07/28/2722470.aspx</link><pubDate>Mon, 28 Jul 2008 10:22:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/07/28/2722470.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2722470.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/07/28/2722470.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2722470.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2722470</trackback:ping><description>最近搞一个扣网页内容的SessionBean，需要模拟客户端post提交，然后得到servlet返回的结果。采用Jakarta的HttpClient API解决之.HttpClient扩展和增强了标准java.net包，是一个内容广泛的代码库，功能极其丰富，能够构造出各种使用HTTP协议的分布式应用，或者也可以嵌入到现有应用，为应用增加访问HTTP协议的能力要求：1：CLASSPATH中有commons-httpclient.jar，common-logging.jar2：确保%JAVA_HOME% /jre/lib/security/java.security文件包含这行代码： security.provider.2= com.sun.net.ssl.internal.ssl.Provider。&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2722470.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>Java正则表达式的总结</title><link>http://blog.csdn.net/fzw98/archive/2008/07/24/2702766.aspx</link><pubDate>Thu, 24 Jul 2008 10:05:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/07/24/2702766.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2702766.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/07/24/2702766.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2702766.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2702766</trackback:ping><description> 正则表达式用来指定字符串模式。当你需要定位匹配某种模式的字符串时就可以使用正则表达式。例如，我们下面有一个例程就是在一个HTML文件中通过查找字符串模式来定位所有的超链接的。&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2702766.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>黑马王子</dc:creator><title>T-SQL语句实现数据库备份与还原</title><link>http://blog.csdn.net/fzw98/archive/2008/04/18/2305103.aspx</link><pubDate>Fri, 18 Apr 2008 17:10:00 GMT</pubDate><guid>http://blog.csdn.net/fzw98/archive/2008/04/18/2305103.aspx</guid><wfw:comment>http://blog.csdn.net/fzw98/comments/2305103.aspx</wfw:comment><comments>http://blog.csdn.net/fzw98/archive/2008/04/18/2305103.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/fzw98/comments/commentRss/2305103.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2305103</trackback:ping><description>

	这种方式感觉实现起来也不错，我是使用这种方式来完成数据库备份还原的功能的。 需要指出下面这些存储过程是在网上搜索到的。谢谢代码的提供者。在此转载 利用T-SQL语句,实现数据库的备份与还原的功能 体现了SQL Server中的四个知识点： 1． 获取SQL Server服务器上的默认目录 2． 备份SQL语句的使用 3． 恢复SQL语句的使用，同时考虑了强制恢复时关闭其他用户进程的处理 4． 作业创建SQL语句的使用 /*1.--得到数据库的文件目录 @dbname 指定要取得目录的数据库名 如果指定的数据不存在,返回安装SQL时设置的默认数据目录 如果指定NULL,则返回默认的SQL备份目录名 */ /*--调用示例 select 数据库文件目录=dbo.f_getdbpath('tempdb') ,[默认SQL SERVER数据目录]=dbo.f_getdbpath(') ,[默认SQL SERVER备份目录]=dbo.f_getdbpath(null) --*/ if exists (select * from dbo.sysobjects where id = obje&lt;img src ="http://blog.csdn.net/fzw98/aggbug/2305103.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>