Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
jTDS JDBC Driver Source Code Files
jTDS JDBC Driver Source Code Files are provided in the
source package file, jtds-1.3.1-fyi.zip.
You can browse jTDS JDBC Driver Source Code files below:
✍: FYIcenter.com
⏎ net/sourceforge/jtds/jdbc/cache/SQLCacheKey.java
//jTDS JDBC Driver for Microsoft SQL Server and Sybase //Copyright (C) 2004 The jTDS Project // //This library is free software; you can redistribute it and/or //modify it under the terms of the GNU Lesser General Public //License as published by the Free Software Foundation; either //version 2.1 of the License, or (at your option) any later version. // //This library is distributed in the hope that it will be useful, //but WITHOUT ANY WARRANTY; without even the implied warranty of //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //Lesser General Public License for more details. // //You should have received a copy of the GNU Lesser General Public //License along with this library; if not, write to the Free Software //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // package net.sourceforge.jtds.jdbc.cache; import net.sourceforge.jtds.jdbc.JtdsConnection; /** * Cache key for an SQL query, consisting of the query and server type, major * and minor version. * * @author Brett Wooldridge * @author Alin Sinpalean * @version $Id: SQLCacheKey.java,v 1.2.2.1 2009-07-29 12:10:42 ickzon Exp $ */ public class SQLCacheKey { private final String sql; private final int serverType; private final int majorVersion; private final int minorVersion; private final int hashCode; public SQLCacheKey(String sql, JtdsConnection connection) { this.sql = sql; this.serverType = connection.getServerType(); this.majorVersion = connection.getDatabaseMajorVersion(); this.minorVersion = connection.getDatabaseMinorVersion(); this.hashCode = sql.hashCode() ^ (serverType << 24 | majorVersion << 16 | minorVersion); } public int hashCode() { return hashCode; } public boolean equals(Object object) { try { SQLCacheKey key = (SQLCacheKey) object; return this.hashCode == key.hashCode && this.majorVersion == key.majorVersion && this.minorVersion == key.minorVersion && this.serverType == key.serverType && this.sql.equals(key.sql); } catch (ClassCastException e) { return false; } catch (NullPointerException e) { return false; } } }
⏎ net/sourceforge/jtds/jdbc/cache/SQLCacheKey.java
Or download all of them as a single archive file:
File name: jtds-1.3.1-fyi.zip File size: 323160 bytes Release date: 2013-06-08 Download
⇐ What Is jtds-1.3.1-dist.zip?
2016-11-26, 8575👍, 0💬
Popular Posts:
What Is commons-fileupload-1.3.3 .jar?commons-fileupload-1.3.3 .jaris the JAR file for Apache Common...
JDK 11 java.xml.crypto.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) Crypto modu...
XOM™ is a new XML object model. It is an open source (LGPL), tree-based API for processing XML with ...
Where Can I see Java Source Code files for Xerces Java 2.11.2? Here are Java Source Code files for X...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....