在一个业务类有下列属性private SchedulerFactoryBeanscheduler;
public SchedulerFactory BeangetScheduler() { return scheduler; } public void
setS...
分类:
编程语言 时间:
2014-05-27 23:38:16
阅读次数:
1397
/// /// 多数据库服务器事务提交 /// ///
key为connName,value为Sql语句 /// public bool ExecuteMultiTran(List sqlStrings) {
bool reval = true...
分类:
数据库 时间:
2014-05-27 16:14:24
阅读次数:
434
读《Effective Java》的一些收获,会持续添加。 Integer和 int的区别:
int是 Java基本数据类型,表示一个整型值。Integer是对 int基本类型的一个封装(每一个 Integer对象中都包含一个"private final
int value;"的成员变量),...
分类:
编程语言 时间:
2014-05-26 19:39:45
阅读次数:
339
关于控制器工厂的扩展,要么通过实现IControllerFactory接口,要么通过继承DefaultControllerFactory。本篇中,我想体验的是:
1、当请求经过路由,controller, action名称是以key/value键值对形式存放的,我们可以通过RequestContex...
分类:
Web程序 时间:
2014-05-26 18:23:35
阅读次数:
267
1、map简介map是一类关联式容器。它的特点是增加和删除节点对迭代器的影响很小,除了那个操作节点,对其他的节点都没有什么影响。对于迭代器来说,可以修改实值,而不能修改key。2、map的功能自动建立Key
- value的对应。key 和 value可以是任意你需要的类型。根据key值快速查找记录...
分类:
编程语言 时间:
2014-05-26 18:17:17
阅读次数:
279
征服C指针:P70#include "stdio.h"char *int_to_str(int
int_value){ static char buf[20]; sprintf(buf,"%d",int_value); return buf;}int
main(){ c...
分类:
编程语言 时间:
2014-05-26 17:07:52
阅读次数:
249
原文:Object-to-Primitive Conversions in
JavaScript对象转化为基础数据类型,其实最终都是用调用对象自带的valueOf和toString两个方法之一并获得其返回值,作为其基础数据类型。基础数据类型包括这么几种:null,
undefined, number...
分类:
编程语言 时间:
2014-05-26 17:06:33
阅读次数:
335
1、在脚本中使用datagridview.Rows[i].Cells[1].Value并将其转换为string时,遇到int类型
有时可是直接使用.toString()转换为字符有时必须采用str(datagridview.Rows[i].Cells[1].Value)原因不明,待查
分类:
编程语言 时间:
2014-05-26 17:05:14
阅读次数:
259
比如建立一个名为aspcn,值为灌水小鱼的cookieHttpCookie cookie =
new HttpCookie["aspcn"];cookie.Value =
"灌水小鱼";Response.AppendCookie(cookie);取出Cookie值也很简单HttpCookie coo...
分类:
Web程序 时间:
2014-05-25 20:12:14
阅读次数:
259
1、DETERMINISTIC函数-- Create deterministic PV
function.CREATE OR REPLACE FUNCTION pv( future_value NUMBER, periods NUMBER,
interest NUMBER )RETURN NUMBE...
分类:
数据库 时间:
2014-05-25 15:30:11
阅读次数:
625