⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 connectionwrapper.java

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 JAVA
字号:
/* * Licensed under the X license (see http://www.x.org/terms.htm) */package org.ofbiz.minerva.pool.jdbc;import java.sql.*;/** * Wrapper for database connections.  Tracks open statements, last used time, * and records errors.  In practice, this is used both as a wrapper for * connections in a pool and as a wrapper for connections handed out by an * XAConnection. * @see javax.sql.XAConnection * * @author Aaron Mulder (ammulder@alumni.princeton.edu) */public interface ConnectionWrapper extends Connection {    /**     * Sets the time this connection (or a statement or result set derived from     * it) was used.     */    public void setLastUsed();    /**     * Indicates to the connection that an error occured.  This is typically     * used by statements and result sets derived from this connection.     */    public void setError(SQLException e);    /**     * Indicates that a statement derived from this connection was closed.     * Statements are tracked so that any open statements can be closed when     * the connection is closed (or reused in a pool).     */    public void statementClosed(Statement st);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -