`
xxj
  • 浏览: 420590 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
在上面篇文章,我们的测试代码如下:  1package com.martin.pdo; 2 3import org.springframework.context.ApplicationContext; 4 5import junit.framework.Assert; 6import junit.framework.TestCase; 7 8
我们可以让Domain Object更rich:)  1package com.martin.pdo; 2 3import java.io.Serializable; 4import java.util.List; 5 6/** *//**
我们建一个简单的表如下: +-------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+-------+ | id | varchar(32) | | PRI | | | | name | varchar(80) | YES | | NULL | | | sex ...
http://www.theserverside.com/patterns/thread.tss?thread_id=33387
python中提供一个pickle 标准类 来 存储/读取 任意的对象。如下: import pickle as p class PickleTest: def __init__(self,o,filename): if not 0: self.obj=o self.filename=filename def dump(self): print 'save data ',self.obj,' >> ',self.filename f = file(filen ...
也许说法不正确,但是目前我能理解的就是替换,替换指定文本中的内容。 例如: <a name="$code$"></a> <div class="infomark">$title$</div> <div class="info" style="background:#F4F4F4"> <pre> $content$ </pre> </div> <div align="right&quo ...
很遗憾,好多聊天记录都没有了,我需要那些东西,那些是我思考的过程,也是我和同事,朋友讨论的过程。希望gmail talk下个版本能加上。
我喜欢这本书 http://diveintopython.org/
需要生成: http://www.softcomplex.com/products/tigra_menu_tree/ 最终生成的菜单:  首先按需求定义了一个model. package com.jxlt.db.parse; import java.io.Serializable; public class TreeModel implements Serializable { private static final long serialVersionUID = 7896562831509010976L; private String ...
按照需求,从新改写了一下,而这些只是几分钟时间而已。 import cx_Oracle from Template import * def parse(): '''generate the content html''' sql = '''select t.bz_code code, t.bz_title title, t.bz_content content from bz_czzs t order by t.bz_code''' connection = cx_Oracle.connect( 'etasadmin/e ...
Martin Fowler:闭包 原著:Martin Fowler  http://martinfowler.com/bliki/Closures.html 翻译:<liubin <at="">huangpuzhuang.com> http://www.ruby-cn.org/ 另外一片文章总结了各种语言实现的本文中的例子。 闭包(Closures)在各种语言中的例子 2004/11/23 本文地址:http://www.ruby-cn.org/articles/closures.html     随着人们对动态语言兴趣的 ...
http://ftp.cdut.edu.cn/pub/linux/language/http://www.miex.org/python/
    http://wiki.woodpecker.org.cn/moin/PyProgFaq
昨天的问题,终于知道了,是oracle8搞的鬼,懒的再去找什么驱动了。便想起了python幸好张骏 的帮忙,让我从一知半解到写出代码。 用python的代码明显简洁多了,而且我喜欢代码的灵活。 import cx_Oracle def parse(): '''generate the content html''' sql = '''select t.bz_code code, t.bz_title title, t.bz_content content from bz_czzs t order by t.bz_code'' ...
注:问题已经解决,oracle8的问题,处理lob需要oci 昨天处理数据的时候,遇到oracle的clob的问题。解决不了,郁闷。 oracle.sql.CLOB clob = (oracle.sql.CLOB) rs.getClob("content"); Reader reader = rs.getCharacterStream("content"); reader.read(c); System.out.println("content:" + new String(c)); if (null != cl ...
Global site tag (gtag.js) - Google Analytics