本文整理汇总了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;
}
}
}
示例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;
}
}
}
示例3: JDBC4PreparedStatementWrapper
import com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection; //导入依赖的package包/类
public JDBC4PreparedStatementWrapper(ConnectionWrapper c, MysqlPooledConnection conn, PreparedStatement toWrap) {
super(c, conn, toWrap);
}
示例4: JDBC42CallableStatementWrapper
import com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection; //导入依赖的package包/类
public JDBC42CallableStatementWrapper(ConnectionWrapper c, MysqlPooledConnection conn, CallableStatement toWrap) {
super(c, conn, toWrap);
}
示例5: JDBC4CallableStatementWrapper
import com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection; //导入依赖的package包/类
public JDBC4CallableStatementWrapper(ConnectionWrapper c, MysqlPooledConnection conn, CallableStatement toWrap) {
super(c, conn, toWrap);
}
示例6: JDBC4StatementWrapper
import com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection; //导入依赖的package包/类
public JDBC4StatementWrapper(ConnectionWrapper c, MysqlPooledConnection conn, Statement toWrap) {
super(c, conn, toWrap);
}
示例7: JDBC42PreparedStatementWrapper
import com.mysql.jdbc.jdbc2.optional.MysqlPooledConnection; //导入依赖的package包/类
public JDBC42PreparedStatementWrapper(ConnectionWrapper c, MysqlPooledConnection conn, PreparedStatement toWrap) {
super(c, conn, toWrap);
}