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/UniqueIdentifier.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; /** * This class encapsulates the MS SQL2000 UniqueIdentifer data type. * * @author Mike Hutchinson. * @version $Id: UniqueIdentifier.java,v 1.4 2005-04-28 14:29:30 alin_sinpalean Exp $ */ public class UniqueIdentifier { private final byte[] bytes; /** * Construct a unique identifier with the supplied byte array. */ public UniqueIdentifier(byte[] id) { bytes = id; } /** * Retrieve the unique identifier as a byte array. * * @return The unique identifier as a <code>byte[]</code>. */ public byte[] getBytes() { return bytes.clone(); } /** * Retrieve the unique identifier as a formatted string. * <p>Format is NNNNNNNN-NNNN-NNNN-NNNN-NNNNNNNNNNNN. * * @return The uniqueidentifier as a <code>String</code>. */ public String toString() { byte[] tmp = bytes; if (bytes.length == 16) { // Need to swap some bytes for correct text version tmp = new byte[bytes.length]; System.arraycopy(bytes, 0, tmp, 0, bytes.length); tmp[0] = bytes[3]; tmp[1] = bytes[2]; tmp[2] = bytes[1]; tmp[3] = bytes[0]; tmp[4] = bytes[5]; tmp[5] = bytes[4]; tmp[6] = bytes[7]; tmp[7] = bytes[6]; } byte bb[] = new byte[1]; StringBuilder buf = new StringBuilder(36); for (int i = 0; i < bytes.length; i++) { bb[0] = tmp[i]; buf.append(Support.toHex(bb)); if (i == 3 || i == 5 || i == 7 || i == 9) { buf.append('-'); } } return buf.toString(); } }
⏎ net/sourceforge/jtds/jdbc/UniqueIdentifier.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, 7804👍, 0💬
Popular Posts:
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...
Swingx is the SwingLabs Swing Component Extensions. JAR File Size and Download Location: File name: ...
What Is commons-codec-1.4.jar? commons-codec-1.4.jar is the JAR file for Apache Commons Codec 1.4, w...
What Is js.jar in Rhino JavaScript 1.7R5? js.jar in Rhino JavaScript 1.7R5 is the JAR file for Rhino...
xml-commons Resolver Source Code Files are provided in the source package file, xml-commons-resolver...