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/jdbcx/JtdsXAResource.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.jdbcx; import java.sql.Connection; import javax.transaction.xa.XAException; import javax.transaction.xa.XAResource; import javax.transaction.xa.Xid; import net.sourceforge.jtds.jdbc.JtdsConnection; import net.sourceforge.jtds.jdbc.XASupport; import net.sourceforge.jtds.util.Logger; /** * jTDS implementation of the XAResource interface. * * @version $Id: JtdsXAResource.java,v 1.4 2005-04-28 14:29:30 alin_sinpalean Exp $ */ public class JtdsXAResource implements XAResource { private final Connection connection; private final JtdsXAConnection xaConnection; private final String rmHost; public JtdsXAResource(JtdsXAConnection xaConnection, Connection connection) { this.xaConnection = xaConnection; this.connection = connection; rmHost = ((JtdsConnection) connection).getRmHost(); Logger.println("JtdsXAResource created"); } protected JtdsXAConnection getResourceManager() { return xaConnection; } protected String getRmHost() { return this.rmHost; } // // ------------------- javax.transaction.xa.XAResource interface methods ------------------- // public int getTransactionTimeout() throws XAException { Logger.println("XAResource.getTransactionTimeout()"); return 0; } public boolean setTransactionTimeout(int arg0) throws XAException { Logger.println("XAResource.setTransactionTimeout("+arg0+')'); return false; } public boolean isSameRM(XAResource xares) throws XAException { Logger.println("XAResource.isSameRM("+xares.toString()+')'); if (xares instanceof JtdsXAResource) { if (((JtdsXAResource)xares).getRmHost().equals(this.rmHost)) { return true; } } return false; } public Xid[] recover(int flags) throws XAException { Logger.println("XAResource.recover("+flags+')'); return XASupport.xa_recover(connection, xaConnection.getXAConnectionID(), flags); } public int prepare(Xid xid) throws XAException { Logger.println("XAResource.prepare("+xid.toString()+')'); return XASupport.xa_prepare(connection, xaConnection.getXAConnectionID(), xid); } public void forget(Xid xid) throws XAException { Logger.println("XAResource.forget(" + xid + ')'); XASupport.xa_forget(connection, xaConnection.getXAConnectionID(), xid); } public void rollback(Xid xid) throws XAException { Logger.println("XAResource.rollback(" +xid.toString()+')'); XASupport.xa_rollback(connection, xaConnection.getXAConnectionID(), xid); } public void end(Xid xid, int flags) throws XAException { Logger.println("XAResource.end(" +xid.toString()+')'); XASupport.xa_end(connection, xaConnection.getXAConnectionID(), xid, flags); } public void start(Xid xid, int flags) throws XAException { Logger.println("XAResource.start(" +xid.toString()+','+flags+')'); XASupport.xa_start(connection, xaConnection.getXAConnectionID(), xid, flags); } public void commit(Xid xid, boolean commit) throws XAException { Logger.println("XAResource.commit(" +xid.toString()+','+commit+')'); XASupport.xa_commit(connection, xaConnection.getXAConnectionID(), xid, commit); } }
⏎ net/sourceforge/jtds/jdbcx/JtdsXAResource.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, 7848👍, 0💬
Popular Posts:
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...
commons-collections4-4.2 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...