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

📄 pscachekey.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.Connection;import java.sql.ResultSet;/** * Temporarily not used.  Identifies a PreparedStatement by * SQL, type, and concurrency. * * @author Aaron Mulder ammulder@alumni.princeton.edu */public class PSCacheKey {    public Connection con;    public String sql;    public int rsType;    public int rsConcur;    public PSCacheKey(Connection con, String sql) {        this.con = con;        this.sql = sql;        this.rsType = ResultSet.TYPE_FORWARD_ONLY;        this.rsConcur = ResultSet.CONCUR_READ_ONLY;    }    public PSCacheKey(Connection con, String sql, int rsType, int rsConcur) {        this.con = con;        this.sql = sql;        this.rsType = rsType;        this.rsConcur = rsConcur;    }    public boolean equals(Object o) {        PSCacheKey key = (PSCacheKey) o;        return key.con.equals(con) && key.sql.equals(sql) && key.rsType == rsType && key.rsConcur == rsConcur;    }    public int hashCode() {        return con.hashCode() ^ sql.hashCode() ^ rsType ^ rsConcur;    }}

⌨️ 快捷键说明

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