posted @ 2014-03-12 20:00 钟悍 阅读(235) 评论(0) 推荐(0) 编辑
摘要:
1, unChecked Exception, represent a defect in programmer(bugs). should inherit RuntimeException or Error.Unchecked runtime exceptions represent conditions that, generally speaking, reflect errors in your program's logic and cannot be reasonably recovered from at run time.2, checked Exception,rep 阅读全文
摘要:
SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM TABLE_NAME) A WHERE ROWNUM = 21 阅读全文
posted @ 2014-03-07 12:54 钟悍 阅读(125) 评论(0) 推荐(0) 编辑
摘要:
select date_part('minute', now() - create_date) from employee;update employee set issue_efficiency=date_part('days', issue_complete_date - review_pass_date)*3600*24+date_part('hour', issue_complete_date - review_pass_date)*3600+date_part('minute', issue_complete_date 阅读全文
posted @ 2014-02-26 18:09 钟悍 阅读(1597) 评论(0) 推荐(0) 编辑
摘要:
create or replace function setPassengerType(num varchar) returns varchar as $$ declare sql varchar; str varchar; re record; begin str=''; sql = 'select passenger_type from tops_order.passenger where flight_order_item_id=''' || num ||''''; for re in execute... 阅读全文
posted @ 2014-02-26 11:37 钟悍 阅读(7502) 评论(0) 推荐(0) 编辑
摘要:
让代码理解时间变短,而不是一味地追求代码行变短 -------------------《编写可读代码的艺术》 阅读全文
posted @ 2014-01-24 11:25 钟悍 阅读(201) 评论(0) 推荐(0) 编辑
摘要:
import org.aspectj.lang.ProceedingJoinPoint;import org.aspectj.lang.annotation.Around;import org.aspectj.lang.annotation.Aspect;import org.perf4j.StopWatch;import org.perf4j.slf4j.Slf4JStopWatch;@Aspectpublic class OrderProfileAspect{ @Around("execution(* com.karl.controller..*.*(..)) || execut 阅读全文
posted @ 2013-12-09 11:33 钟悍 阅读(769) 评论(0) 推荐(0) 编辑
摘要:
常用命令:从本地git仓库中导出工作文件 git checkout查看历史 git log filenamegit log -p #查看每个阶段的具体差异git log --stat --summary #查看改变的概述查看某次提交的文件内容git show commit-name:filename #commit-name来源于git log 的每个条目的第一行增加新文件 git add newfile #执行完此操作后,newfile处于待提交状态,执行git rm --cached newfile,退回到工作目录git commit newfile提交更改 git commit file 阅读全文
posted @ 2013-11-29 11:18 钟悍 阅读(1795) 评论(0) 推荐(0) 编辑