当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: package com.laoer.base; impo
 

 

    摘要: 编程:编写一个截取字符串的函数,输入为一个字符串和字节数,输出为按字节截取的字符串。 但是要保证汉字不被截半个,如“我abc”4,应该截为“我ab”,输入“我abc汉def”,6,应该输出为“我abc”而不是“我abc+汉的半个”。package string;class sp......
 ·我的apache与tomcat整合经验    »显示摘要«
    摘要: 我的操作系统是win xp,apache和tomcat都安装在如下目录c:\program files/apache group/apache2 版本apache_2.0.47c:\program files/apache group/tomcat 4.1 版本4.1虽然我的tomcat版本是4.1,但是我看到书上的5.0也是这样配置,如果大家有问题可以把你的版本和情况告诉我。 整合情况1,下......


项目要用到的主要源代码
package com.laoer.base; import java.io.serializable; import java.math.bigdecimal; import java.sql.timestamp; import java.util.calendar; import java.util.date; import java.util.hashmap; import java.util.iterator; import java.util.map; import org.springframework.orm.hibernate.support.hibernatedaosupport; import net.sf.hibernate.criteria; import net.sf.hibernate.hibernateexception; import net.sf.hibernate.query; import net.sf.hibernate.session; import net.sf.hibernate.transaction; import net.sf.hibernate.sessionfactory; import net.sf.hibernate.cfg.configuration; import net.sf.hibernate.expression.expression; import net.sf.hibernate.expression.order; import net.sf.hibernate.type.type; /** * this class has been automatically generated by hibernate synchronizer. * for more information or documentation, visit the hibernate synchronizer page * at http://www.binamics.com/hibernatesync or contact joe hudson at joe@binamics.com. */ public abstract class _baserootdao extends hibernatedaosupport{ protected static map sessionfactorymap = new hashmap(); protected static threadlocal threadedsessions = new threadlocal(); /** * configure the session factory by reading hibernate config file */ public static void initialize () throws hibernateexception { initialize((string) null); } /** * configure the session factory by reading hibernate config file * @param configfilename the name of the configuration file */ public static void initialize (string configfilename) throws hibernateexception { if (null == configfilename && sessionfactorymap.size() > 0) return; else if (null != sessionfactorymap.get(configfilename)) return; else { configuration cfg = new configuration(); if (null == configfilename) cfg.configure(); else cfg.configure(configfilename); setsessionfactory(configfilename, cfg.buildsessionfactory()); } } /** * set the session factory */ // protected static void setsessionfactory (sessionfactory sessionfactory) { // setsessionfactory((string) null, sessionfactory); // } /** * set the session factory */ protected static void setsessionfactory (string configfilename, sessionfactory sessionfactory) { s
...   下一页
 ·scanning text with java.util.scanner    »显示摘要«
    摘要: j2se 5.0 adds classes and methods that can make every day tasks easier to perform. in this tip you will see how the newly added java.util.scanner class makes it easier to read and parse strings and p......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE