资源简介
jforum-2.1.8-src.zip,源码
代码片段和文件信息
/*
* Copyright (c) JForum Team
* All rights reserved.
*
* Redistribution and use in source and binary forms
* with or without modification are permitted provided
* that the following conditions are met:
*
* 1) Redistributions of source code must retain the above
* copyright notice this list of conditions and the
* following disclaimer.
* 2) Redistributions in binary form must reproduce the
* above copyright notice this list of conditions and
* the following disclaimer in the documentation and/or
* other materials provided with the distribution.
* 3) Neither the name of “Rafael Steil“ nor
* the names of its contributors may be used to endorse
* or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
* HOLDERS AND CONTRIBUTORS “AS IS“ AND ANY
* EXPRESS OR IMPLIED WARRANTIES INCLUDING
* BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL
* EXEMPLARY OR CONSEQUENTIAL DAMAGES
* (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY WHETHER
* IN CONTRACT STRICT LIABILITY OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
*
* Created on 30/11/2005 17:07:51
* The JForum Project
* http://www.jforum.net
*/
package net.jforum;
import java.lang.reflect.Method;
import java.sql.Connection;
import net.jforum.exceptions.DatabaseException;
import net.jforum.util.preferences.ConfigKeys;
import net.jforum.util.preferences.SystemGlobals;
import com.mchange.v2.c3p0.ComboPooledDataSource;
import com.mchange.v2.c3p0.DataSources;
/**
* @author Rafael Steil
* @version $Id: C3P0PooledConnection.javav 1.7 2007/04/12 02:11:52 rafaelsteil Exp $
*/
public class C3P0PooledConnection extends DBConnection
{
private ComboPooledDataSource ds;
/**
*
* @see net.jforum.DBConnection#init()
*/
public void init() throws Exception
{
this.ds = new ComboPooledDataSource();
this.ds.setDriverClass(SystemGlobals.getValue(ConfigKeys.DATAbase_CONNECTION_DRIVER));
this.ds.setJdbcUrl(SystemGlobals.getValue(ConfigKeys.DATAbase_CONNECTION_STRING));
this.ds.setMinPoolSize(SystemGlobals.getIntValue(ConfigKeys.DATAbase_POOL_MIN));
this.ds.setMaxPoolSize(SystemGlobals.getIntValue(ConfigKeys.DATAbase_POOL_MAX));
this.ds.setIdleConnectionTestPeriod(SystemGlobals.getIntValue(ConfigKeys.DATAbase_PING_DELAY));
this.extraParams();
}
private void extraParams()
{
String extra = SystemGlobals.getValue(ConfigKeys.C3P0_EXTRA_PARAMS);
if (extra != null && extra.trim().length() > 0) {
String
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2007-08-31 19:20 .settings\
目录 0 2007-10-11 01:37 WEB-INF\
目录 0 2007-10-10 01:53 WEB-INF\classes\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\api\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\api\integration\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\api\integration\mail\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\api\integration\mail\pop\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\api\rest\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\cache\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\context\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\context\standard\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\context\web\
目录 0 2007-09-12 10:21 WEB-INF\classes\net\jforum\dao\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\dao\generic\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\dao\generic\security\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\dao\hsqldb\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\dao\mysql\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\dao\mysql\security\
目录 0 2007-09-10 18:58 WEB-INF\classes\net\jforum\dao\oracle\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\dao\postgresql\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\dao\sqlserver\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\entities\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\exceptions\
目录 0 2007-09-13 10:29 WEB-INF\classes\net\jforum\repository\
目录 0 2007-09-09 19:26 WEB-INF\classes\net\jforum\search\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\security\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\sso\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\summary\
目录 0 2007-09-09 19:24 WEB-INF\classes\net\jforum\util\
............此处省略1480个文件信息
- 上一篇:振动数据采集系统
- 下一篇:数字图像中边缘检测算法研究
相关资源
- kettle6.1.0.1-196 MyEclipse源码工程包 par
- 3D太空射击游戏unity3d完整源码
- 党建网站源码1.rar
- 李建忠_设计模式源码和课件.rar
- spring cloud项目源码
- 平衡小车pcb与原理图,源码,蓝牙,
- 自己动手写网络爬虫PDF+源码.zip
- 《Windows高级编程指南》 (第三版)
- 鱼虾蟹源码
- 网狐6603内核KernelEngine和WHSocket源码
- Linux命令行与shell脚本编程大全第3版高
- LINUX内核完全剖析、源码及Bochs编译环
- 基于FFmpegQt的视频播放器完整源码.r
- STM32F373 DAC生成三角波 源码
- Unity3D狙击手游戏源码
- 大话数据结构高清版+带目录+程序源码
- 基于SSH的项目源码(尚硅谷整合代码
- NewBluePill深入理解硬件虚拟机(PDF+配
- ecshop仿小米商城整站源码(含数据库
- 马克斯X站h站源码程序整站x站带采集
- 源码交易平台虚拟交易系统(商家版
- E盾网络验证易语言源码附带模块+支持
- 易支付源码.zip
- 直播平台盒子E4A源码+直播采集器源码
- u-boot-2017.07移植到s5pv210教程(含对应
- DIBR源码
- Struts2+Hibernate+Spring的考勤系统实现的
- 生产过程管理系统
- 模拟城市地理信息系统源码
- unity贪吃蛇大作战源码
评论
共有 条评论