当前位置: 首页>>代码示例>>Java>>正文


Java MysqlPooledConnection类代码示例

本文整理汇总了Java中com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection的典型用法代码示例。如果您正苦于以下问题:Java MysqlPooledConnection类的具体用法?Java MysqlPooledConnection怎么用?Java MysqlPooledConnection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MysqlPooledConnection类属于com.mysql.jdbc.jdbc2.optional包,在下文中一共展示了MysqlPooledConnection类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: close

import com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection; //导入依赖的package包/类
public synchronized void close() throws SQLException {
    if (this.pooledConnection == null) {
        // no-op
        return;
    }

    MysqlPooledConnection con = this.pooledConnection; // we need this later...

    try {
        super.close();
    } finally {
        try {
            StatementEvent e = new StatementEvent(con, this);
            // todo: pull this all up into base classes when we support *only* JDK6 or newer
            if (con instanceof JDBC4MysqlPooledConnection) {
                ((JDBC4MysqlPooledConnection) con).fireStatementEvent(e);
            } else if (con instanceof JDBC4MysqlXAConnection) {
                ((JDBC4MysqlXAConnection) con).fireStatementEvent(e);
            } else if (con instanceof JDBC4SuspendableXAConnection) {
                ((JDBC4SuspendableXAConnection) con).fireStatementEvent(e);
            }
        } finally {
            this.unwrappedInterfaces = null;
        }
    }
}
 
开发者ID:bragex,项目名称:the-vigilantes,代码行数:27,代码来源:JDBC4PreparedStatementWrapper.java

示例2: close

import com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection; //导入依赖的package包/类
public synchronized void close() throws SQLException {
	if (this.pooledConnection == null) {
		// no-op
		return;
	}
	
	MysqlPooledConnection con = this.pooledConnection; // we need this
													   // later...

	try {
		super.close();
	} finally {
		try {
			StatementEvent e = new StatementEvent(con, this);
			// todo: pull this all up into base classes when we support *only* JDK6 or newer
			if (con instanceof JDBC4MysqlPooledConnection) {
				((JDBC4MysqlPooledConnection) con).fireStatementEvent(e);
			} else if (con instanceof JDBC4MysqlXAConnection) {
				((JDBC4MysqlXAConnection) con).fireStatementEvent(e);
			} else if (con instanceof JDBC4SuspendableXAConnection) {
				((JDBC4SuspendableXAConnection) con).fireStatementEvent(e);
			}
		} finally {
			this.unwrappedInterfaces = null;
		}
	}
}
 
开发者ID:hinsenchan,项目名称:fil_project_mgmt_app_v2,代码行数:28,代码来源:JDBC4PreparedStatementWrapper.java

示例3: JDBC4PreparedStatementWrapper

import com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection; //导入依赖的package包/类
public JDBC4PreparedStatementWrapper(ConnectionWrapper c, MysqlPooledConnection conn, PreparedStatement toWrap) {
    super(c, conn, toWrap);
}
 
开发者ID:bragex,项目名称:the-vigilantes,代码行数:4,代码来源:JDBC4PreparedStatementWrapper.java

示例4: JDBC42CallableStatementWrapper

import com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection; //导入依赖的package包/类
public JDBC42CallableStatementWrapper(ConnectionWrapper c, MysqlPooledConnection conn, CallableStatement toWrap) {
    super(c, conn, toWrap);
}
 
开发者ID:bragex,项目名称:the-vigilantes,代码行数:4,代码来源:JDBC42CallableStatementWrapper.java

示例5: JDBC4CallableStatementWrapper

import com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection; //导入依赖的package包/类
public JDBC4CallableStatementWrapper(ConnectionWrapper c, MysqlPooledConnection conn, CallableStatement toWrap) {
    super(c, conn, toWrap);
}
 
开发者ID:bragex,项目名称:the-vigilantes,代码行数:4,代码来源:JDBC4CallableStatementWrapper.java

示例6: JDBC4StatementWrapper

import com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection; //导入依赖的package包/类
public JDBC4StatementWrapper(ConnectionWrapper c, MysqlPooledConnection conn, Statement toWrap) {
    super(c, conn, toWrap);
}
 
开发者ID:bragex,项目名称:the-vigilantes,代码行数:4,代码来源:JDBC4StatementWrapper.java

示例7: JDBC42PreparedStatementWrapper

import com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection; //导入依赖的package包/类
public JDBC42PreparedStatementWrapper(ConnectionWrapper c, MysqlPooledConnection conn, PreparedStatement toWrap) {
    super(c, conn, toWrap);
}
 
开发者ID:bragex,项目名称:the-vigilantes,代码行数:4,代码来源:JDBC42PreparedStatementWrapper.java


注:本文中的com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。