﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><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>BlogJava-随笔心得-最新评论</title><link>http://www.blogjava.net/love-sea/CommentsRSS.aspx</link><description>记我所见，记我所想</description><language>zh-cn</language><pubDate>Wed, 22 Aug 2007 07:04:54 GMT</pubDate><lastBuildDate>Wed, 22 Aug 2007 07:04:54 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: iframe链接实现.txt</title><link>http://www.blogjava.net/love-sea/archive/2007/05/06/114607.html#115616</link><dc:creator>源自有缘</dc:creator><author>源自有缘</author><pubDate>Sun, 06 May 2007 12:23:00 GMT</pubDate><guid>http://www.blogjava.net/love-sea/archive/2007/05/06/114607.html#115616</guid><description><![CDATA[哦 那个忘了贴上了<img src ="http://www.blogjava.net/love-sea/aggbug/115616.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/love-sea/" target="_blank">源自有缘</a> 2007-05-06 20:23 <a href="http://www.blogjava.net/love-sea/archive/2007/05/06/114607.html#115616#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: iframe链接实现.txt</title><link>http://www.blogjava.net/love-sea/archive/2007/04/30/114607.html#114817</link><dc:creator>我为J狂</dc:creator><author>我为J狂</author><pubDate>Mon, 30 Apr 2007 08:52:00 GMT</pubDate><guid>http://www.blogjava.net/love-sea/archive/2007/04/30/114607.html#114817</guid><description><![CDATA[officeid好像也没有定义呀！<img src ="http://www.blogjava.net/love-sea/aggbug/114817.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/love-sea/" target="_blank">我为J狂</a> 2007-04-30 16:52 <a href="http://www.blogjava.net/love-sea/archive/2007/04/30/114607.html#114817#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: iframe链接实现.txt</title><link>http://www.blogjava.net/love-sea/archive/2007/04/30/114607.html#114749</link><dc:creator>山风小子</dc:creator><author>山风小子</author><pubDate>Mon, 30 Apr 2007 04:58:00 GMT</pubDate><guid>http://www.blogjava.net/love-sea/archive/2007/04/30/114607.html#114749</guid><description><![CDATA[onClick=&quot;change1();changeiframe('/bjgzw/officedescribe/OfficeuserList?userlistid=&lt;%= officeid%&gt;')&quot;中的change1()没有定义，博主应该是忘删除了，对吧 :)<img src ="http://www.blogjava.net/love-sea/aggbug/114749.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/love-sea/" target="_blank">山风小子</a> 2007-04-30 12:58 <a href="http://www.blogjava.net/love-sea/archive/2007/04/30/114607.html#114749#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 初学 hibernate + spring 记录</title><link>http://www.blogjava.net/love-sea/archive/2007/04/29/114512.html#114606</link><dc:creator>源自有缘</dc:creator><author>源自有缘</author><pubDate>Sun, 29 Apr 2007 08:37:00 GMT</pubDate><guid>http://www.blogjava.net/love-sea/archive/2007/04/29/114512.html#114606</guid><description><![CDATA[dao<br><br>package gos.hzyg.hdgos.dao.secu;<br><br>import java.util.List;<br><br>/**<br> * @author renxh<br> * 针对平房完损等级评定做的接口<br> */<br>public interface AroomLevelDao {<br>	<br>	/**<br>	 * 方法 getAllaRoomLevel()<br>	 * 查询所有的相关信息<br>	 * @param  cAreaid<br>	 * <br>	 */<br>	List getAllaRoomLevel();<br><br>}<br><br>接口实现<br><br>/**<br> * 作者：任喜海2007-4-27<br> */<br>package gos.hzyg.hdgos.dao.imp.secu;<br><br>import java.util.List;<br><br>import gos.hzyg.hdgos.dao.secu.AroomLevelDao;<br><br>import org.hibernate.Query;<br>import org.hibernate.Session;<br>import org.springframework.orm.hibernate3.support.HibernateDaoSupport;<br>/**<br> * @author renxh<br> * <br> */<br>public class AroomLevelDaoImp extends HibernateDaoSupport implements<br>		AroomLevelDao {<br><br>	public List getAllaRoomLevel() {<br>		// TODO 自动生成方法存根<br>		Session session = this.getSession();<br>		Query query = null;<br>		String hql = &quot;from AroomLevel where 1=1&quot;;<br><br>		query = session.createQuery(hql);<br>		List info = query.list();<br>		<br><br>		return info;<br>	}<br><br>}<br><br>对应的controller<br><br>/**<br> * 作者：任喜海2007-4-28<br> */<br>package gos.hzyg.hdgos.action.secu;<br><br>import java.util.List;<br><br>import gos.hzyg.hdgos.dao.secu.AroomLevelDao;<br>import gos.hzyg.hdgos.dao.secu.ChutDao;<br><br>import javax.servlet.http.HttpServletRequest;<br>import javax.servlet.http.HttpServletResponse;<br>import javax.servlet.http.HttpSession;<br><br>import org.springframework.web.servlet.ModelAndView;<br>import org.springframework.web.servlet.mvc.Controller;<br><br>/**<br> * @author renxh<br> *<br> */<br>public class AroomLeveListController implements Controller{<br>	<br>	private String listview;<br>	private AroomLevelDao arDao;<br>	<br>	<br><br>	public AroomLevelDao getArDao() {<br>		return arDao;<br>	}<br><br>	public void setArDao(AroomLevelDao arDao) {<br>		this.arDao = arDao;<br>	}<br><br>	public String getListview() {<br>		return listview;<br>	}<br><br>	public void setListview(String listview) {<br>		this.listview = listview;<br>	}<br><br>	public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {<br>		// TODO 自动生成方法存根<br>		System.out.println(&quot;@@@@@aRoomLevel@@@@@@@&quot;);<br>	<br>		List chinfo = arDao.getAllaRoomLevel();//取得所有平房信息<br>		<br>		<br>		HttpSession s=request.getSession();<br>		s.setAttribute(&quot;chinfo&quot;, chinfo);<br>		<br>		System.out.println(&quot;@@@@@III@@@@@@@&quot;);<br>		<br>		return new ModelAndView(this.getListview());<br>	}<br>	<br>	<br><br>}<br><img src ="http://www.blogjava.net/love-sea/aggbug/114606.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/love-sea/" target="_blank">源自有缘</a> 2007-04-29 16:37 <a href="http://www.blogjava.net/love-sea/archive/2007/04/29/114512.html#114606#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 数据库更新语句</title><link>http://www.blogjava.net/love-sea/archive/2007/04/24/113204.html#113234</link><dc:creator>源自有缘</dc:creator><author>源自有缘</author><pubDate>Tue, 24 Apr 2007 08:15:00 GMT</pubDate><guid>http://www.blogjava.net/love-sea/archive/2007/04/24/113204.html#113234</guid><description><![CDATA[删除语句<br>delete from downwater1 where address!='志新小区'<br><br>delete from downwater2 where address!='志新小区'<br><br>delete from upwater1 where address!='志新小区'<br><br>delete from upwater2 where address!='志新小区'<img src ="http://www.blogjava.net/love-sea/aggbug/113234.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/love-sea/" target="_blank">源自有缘</a> 2007-04-24 16:15 <a href="http://www.blogjava.net/love-sea/archive/2007/04/24/113204.html#113234#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 数据库更新语句</title><link>http://www.blogjava.net/love-sea/archive/2007/04/24/113204.html#113224</link><dc:creator>源自有缘</dc:creator><author>源自有缘</author><pubDate>Tue, 24 Apr 2007 08:09:00 GMT</pubDate><guid>http://www.blogjava.net/love-sea/archive/2007/04/24/113204.html#113224</guid><description><![CDATA[修改属性列<br>alter table block alter column otherdept varchar(200);<br>alter table t_politic1 add column content varchar(500);<img src ="http://www.blogjava.net/love-sea/aggbug/113224.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/love-sea/" target="_blank">源自有缘</a> 2007-04-24 16:09 <a href="http://www.blogjava.net/love-sea/archive/2007/04/24/113204.html#113224#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 一个小例子</title><link>http://www.blogjava.net/love-sea/archive/2007/04/22/112192.html#112588</link><dc:creator>我为J狂</dc:creator><author>我为J狂</author><pubDate>Sun, 22 Apr 2007 04:28:00 GMT</pubDate><guid>http://www.blogjava.net/love-sea/archive/2007/04/22/112192.html#112588</guid><description><![CDATA[感觉这样写好一点，<br>public class PrintArguments{<br>　　　public static void main(String[] args){<br>　　　　if (args.length!=4) <br>　　　　　{System.out.println(&quot;Please input 4 arguments&quot;);<br>　　　　　System.exit(1);//0表示正常退出，非零表示异常退出。<br>　　　　}<br>　　　　for (int i=0;i&lt;args.length;i++) System.out.print(args[i]+&quot; &quot;);<br>　　　}<br>　　}<br><img src ="http://www.blogjava.net/love-sea/aggbug/112588.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/love-sea/" target="_blank">我为J狂</a> 2007-04-22 12:28 <a href="http://www.blogjava.net/love-sea/archive/2007/04/22/112192.html#112588#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 用 SQL语句 实现某个字段自增</title><link>http://www.blogjava.net/love-sea/archive/2007/04/19/111865.html#111932</link><dc:creator>小虎(年轻)</dc:creator><author>小虎(年轻)</author><pubDate>Thu, 19 Apr 2007 06:16:00 GMT</pubDate><guid>http://www.blogjava.net/love-sea/archive/2007/04/19/111865.html#111932</guid><description><![CDATA[Oracle 没有自增字段，可以通过以下方式实现：<br>1.建立测试数据表<br>CREATE TABLE TEST<br>(<br> ID NUMBER,<br> NAME VARCHAR2(20),<br> PRIMARY KEY(ID)<br>);<br><br>2.创建序列<br>CREATE SEQUENCE SEQ_TEST;<br><br>3.创建触发器<br>CREATE OR REPLACE TRIGGER AUTOINCREMENT<br>BEFORE INSERT ON TEST<br>FOR EACH ROW<br>WHEN (NEW.ID IS NULL)<br>BEGIN<br>SELECT SEQ_TEST.NEXTVAL INTO :NEW.ID FROM DUAL;<br>END;<br>/<br><br>4.插入数据<br>INSERT INTO TEST(NAME) VALUES('NAME1');<br><br>5.查看插入结果<br>SELECT * FROM TEST;<br><br>但是，这样做有一个缺点，程序移植的时候就要做很大的变动，所以非要用这种数据库自增的方式的话建议建一张表用来记录另一张表中插入数据的最大ID，下一次插入数据时读这张表再加1 。<img src ="http://www.blogjava.net/love-sea/aggbug/111932.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/love-sea/" target="_blank">小虎(年轻)</a> 2007-04-19 14:16 <a href="http://www.blogjava.net/love-sea/archive/2007/04/19/111865.html#111932#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>