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/StatementCache.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 java.util.Collection; /** * Interface for a statement cache. Abstraction of the caching mechanism by use * of this interface will allow developers to create custom caching schemes * that are optimal for their specific applications. Any synchronization * required by an implementation should utilize the implementing object for the * lock. * <p> * There are two types of attributes that the cache is concerned with: * <dl> * <dt>statement key</dt> * <dd><code>String</code> generated from the SQL query for which the * prepared statement was created, the database name and the parameter * types; this key uniquely identifies a server-side preparation of the * statement and is used to retrieve the handle of the statement when it * needs to be executed</dd> * <dt>temporary procedure name or <code>sp_prepare</code> or * <code>sp_cursorprepare</code> handle on the server</dt> * <dd>One <code>PreparedStatement</code> can map to multiple handles, depending on * the types of the parameters it is called with (hence the need to be able * to map both keys and SQL strings to handles)</dd> * </dl> * The cache can retrieve statement handles using statement keys. * <p> * The caching types provided by jTDS should be: * <ul> * <li>Arbitrary first un-latched (initial default until other caches are * implemented)</li> * <li>Fast caching (never latches and never releases handles)</li> * <li>FIFO</li> * <li>LRU</li> * <li>No caching</li> * <li>Touch Count / Most Frequently Used</li> * </ul> * * @author Brian Heineman * @version $Id: StatementCache.java,v 1.6 2007-07-11 19:57:06 bheineman Exp $ */ public interface StatementCache { /** * Returns a statement handle associated with the specified key or * <code>null</code> if the key specified does not have an associated * statement handle. * * @param key the statement key whose associated handle is to be returned * @return statement handle */ Object get(String key); /** * Places the specified statement handle in the cache for the given key. If * a key already exists in the cache, the handle will be overwritten. * * @param key the statement key to associated with the handle * @param handle the statement handle */ void put(String key, Object handle); /** * Removes a statement key and handle from the cache for the specified key. * * @param key the statement key whose associated handle is to be removed * from the cache */ void remove(String key); /** * Returns a <code>Collection</code> of obsolete statement handles that may * be released, or <code>null</code> if no statement handles are obsolete. * * @param handles the statement handles that are no longer being used * @return <code>Collection</code> of obsolete statement handles to be * removed */ Collection getObsoleteHandles(Collection handles); }
⏎ net/sourceforge/jtds/jdbc/cache/StatementCache.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, 7824👍, 0💬
Popular Posts:
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-...
What Is javax.websocket-api-1.1. jar?javax.websocket-api-1.1. jaris the JAR file for Java API for We...
JDK 11 jdk.internal.vm.compiler .jmodis the JMOD file for JDK 11 Internal VM Compiler module. JDK 11...
Provides support for the runtime platform, core utility methods and the extension registry. JAR File...
How to download and install ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is a Java 5 J...