Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
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/SavepointImpl.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;
import java.sql.Savepoint;
import java.sql.SQLException;
/**
* Savepoint implementation class.
*
* @author Brian Heineman
* @version $Id: SavepointImpl.java,v 1.5 2005-04-28 14:29:27 alin_sinpalean Exp $
*/
class SavepointImpl implements Savepoint {
private final int id;
private final String name;
/**
* Constructs a savepoint with a specific identifier.
*
* @param id a savepoint identifier
*/
SavepointImpl(int id) {
this(id, null);
}
/**
* Constructs a savepoint with a specific identifier and name.
*
* @param id a savepoint identifier
* @param name the savepoint name
*/
SavepointImpl(int id, String name) {
this.id = id;
this.name = name;
}
public int getSavepointId() throws SQLException {
if (name != null) {
throw new SQLException(Messages.get("error.savepoint.named"), "HY024");
}
return id;
}
public String getSavepointName() throws SQLException {
if (name == null) {
throw new SQLException(Messages.get("error.savepoint.unnamed"), "HY024");
}
return name;
}
/**
* Returns the savepoint id. This will not throw an exception for
* named savepoints as would {@link #getSavepointId}.
*
* @return the savepoint id
*/
int getId() {
return id;
}
}
⏎ net/sourceforge/jtds/jdbc/SavepointImpl.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, ≈35🔥, 0💬
Popular Posts:
JDK 11 jdk.management.agent.jmo dis the JMOD file for JDK 11 Management Agent module. JDK 11 Managem...
HttpComponents Client Source Code Files are provided in the source package file, httpcomponents-clie...
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...
commons-net.jar is the bytecode of Apache Commons Net library, which implements the client side of m...