原创 ibatis 實體映射(一對多)
可以通過ibatis建立一對多的映射 POJO Java code public class Customer { private Long id; private String name; private String addr
原创 oracle 錯誤總結-ora-01033
ora-01033 解決方法 今天研究Oracle遇到了這個問題 ora-01033 : oracle initialization or shutdown in progress,經過分析研究終於解決了,寫下來紀念一下。我的庫是
原创 oracle表連接詳解
(參考http://www.bitscn.com/pdb/oracle/201009/190891.html) 1. 內連接(自然連接) 2. 外連接 (1)左外連接 (左邊的表不加限制) (2)右外連接(右邊的表不加限制) (3)全外
原创 Java斷言——assert(轉自http://cnet…
Java斷言——assert Java從1.4 版本 開始提供了一個新特性—— 斷言 ( assertion )。在軟件開發中,斷言是一種經典的調試與測試方式。 簡單來看 斷言其實就是在程序中的一條語句(assert),它對
原创 ibatis 插入操作 對於空值的處理
使用Ibatis作爲數據庫持久層的人都有體會,Ibatis 對NULL值的處理並不優雅.本文討論常見的NULL值處理方案.jdbcType 應該是java.sql.Types 中所列舉的類型中的一種. 1.String爲NULL的處理:
原创 js button
<input type=button value="修改" width=20px high=15px style={background-image:url(../images/button/button-1.png);} onM
原创 ext4 treePanel 設計節點級聯選中
1、panel代碼: Ext.create('Ext.tree.Panel', { id : 'addRolePanelId2', title: '權限', region : 'center', layout :
原创 ActiveXObject 代理設置 …
function calling(){ try{ var wsh = new ActiveXObject("WScript.shell"); var reg=wsh.RegRead("HKEY_LOCAL_MACHINE\\SOFT
原创 bat文件命令(摘自網絡)
擴展名是bat(在nt/2000/xp/2003下也可以是cmd)的文件就是批處理文件。 ==== 注 ======================================= .bat是dos下的批處理文件 .cmd是nt內核命
原创 spring bean ref l…
<</span> bean id = "userDAOProxy" class = "org.springframework.transaction.interceptor.TransactionProxyFact
原创 Httpserver 例子
package httpserver; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.ne
原创 "Automation服務器不能創建對…
摘自:http://www.cnblogs.com/BTQ/archive/2008/05/29/1209738.html "Automation服務器不能創建對象" 的多種解決辦法 方法一: 開始-運行:regsvr32 scr
原创 java中 Process的使用
學習了原文地址:java中 Process的使用作者:libin1346http://docs.oracle.com/javase/1.5.0/docs/api/ The ProcessBuilder.start() a
原创 oracle sysdate 時間跟…
1、首先通過語句查詢一下當前的時區是什麼? SELECT DBTIMEZONE FROM DUAL;此時返回的結果是'+00:00',這就意味着當前的Oracle時間是GMT+0.00,就是格林威治標準時間。 2、修改Oracle
原创 ORA-12519, TNS:no appr…
參考:http://www.cnblogs.com/ungshow/archive/2008/10/16/1312846.html 數據庫連接時,時斷時續,從網上看的解決方法! select count(*) from v$p