net.sourceforge.jtds.jdbc

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database JDBC Connection Pool » jTDS » net.sourceforge.jtds.jdbc 
net.sourceforge.jtds.jdbc
Java Source File NameTypeComment
BlobImpl.javaClass An in-memory or disk based representation of binary data.
CachedResultSet.javaClass A memory cached scrollable/updateable result set.

Notes:

  1. For maximum performance use the scroll insensitive result set type.
  2. As the result set is cached in memory this implementation is limited to small result sets.
  3. Updateable or scroll sensitive result sets are limited to selects which reference one table only.
  4. Scroll sensitive result sets must have primary keys.
  5. Updates are optimistic.
CharsetInfo.javaClass Loads and stores information about character sets.
ClobImpl.javaClass An in-memory or disk based representation of character data.

Implementation note:

  1. This implementation stores the CLOB data in a byte array managed by the BlobBuffer class.
ColInfo.javaClass This class is a descriptor for result set columns.
ConnectionJDBC2.javaClass jTDS implementation of the java.sql.Connection interface.

Implementation notes:

  1. Environment setting code carried over from old jTDS otherwise generally a new implementation of Connection.
  2. Connection properties and SQLException text messages are loaded from a properties file.
  3. Character set choices are also loaded from a resource file and the original Encoder class has gone.
  4. Prepared SQL statements are converted to procedures in the prepareSQL method.
  5. Use of Stored procedures is optional and controlled via connection property.
  6. This Connection object maintains a table of weak references to associated statements.
ConnectionJDBC3.javaClass Implements JDBC 3.0 specific functionality.
DateTime.javaClass Encapsulates Sybase date/time values and provides conversions to and from Java classes.
DefaultProperties.javaClass Container for default property constants.

This class also provides static utility methods for Properties and Settings objects.

To add new properties to the jTDS driver, do the following:

  1. Add prop.foo and prop.desc.foo properties to Messages.properties.
  2. Add a static final default field to DefaultProperties .
  3. Update DefaultProperties.addDefaultProperties(java.util.Properties) to set the default.
  4. Update Driver.createChoicesMap() and DriverUnitTest.test_getPropertyInfo_Choices() if the property has a specific set of inputs, e.g., "true" and "false", or "1" and "2".
  5. Update Driver.createRequiredTrueMap() and DriverUnitTest.test_getPropertyInfo_Required() if the property is required.
  6. Add a new test to DefaultPropertiesTestLibrary for the new property.

author:
   David D.
Driver.javaClass jTDS implementation of the java.sql.Driver interface.
JtdsCallableStatement.javaClass jTDS implementation of the java.sql.CallableStatement interface.
JtdsDatabaseMetaData.javaClass jTDS implementation of the java.sql.DatabaseMetaData interface.

Implementation note:

This is basically the code from the original jTDS driver. Main changes relate to the need to support the new ResultSet implementation.

TODO: Many of the system limits need to be revised to more accurately reflect the target database constraints.

JtdsPreparedStatement.javaClass jTDS implementation of the java.sql.PreparedStatement interface.

Implementation notes:

  1. Generally a simple subclass of Statement mainly adding support for the setting of parameters.
  2. The stream logic is taken over from the work Brian did to add Blob support to the original jTDS.
  3. Use of Statement specific method calls eg executeQuery(sql) is blocked by this version of the driver.
JtdsResultSet.javaClass jTDS Implementation of the java.sql.ResultSet interface supporting forward read only result sets.
JtdsResultSetMetaData.javaClass jTDS implementation of the java.sql.ResultSetMetaData interface.
JtdsStatement.javaClass jTDS implementation of the java.sql.Statement interface.

NB.

Messages.javaClass Support class for Messages.properties.
author:
   David D.
MSCursorResultSet.javaClass This class extends the JtdsResultSet to support scrollable and or updateable cursors on Microsoft servers.
MSSqlServerInfo.javaClass This class communicates with SQL Server 2k to determine what ports its instances are listening to.
NtlmAuth.javaClass This class calculates the two "responses" to the nonce supplied by the server as a part of NTLM authentication. Much gratitude to the authors of this page, esp.
ParameterMetaDataImpl.javaClass jTDS implementation of ParameterMetaData.

For Sybase it is usually possible to obtain true parameter data for prepared statements.

ParamInfo.javaClass This class is a descriptor for procedure and prepared statement parameters.
ProcEntry.javaClass Stores information about a cached stored procedure or statement handle.
ProtocolException.javaClass Exception class used to report errors in the TDS protocol.
RequestStream.javaClass Class to implement an output stream for the server request.
ResponseStream.javaClass Implements an input stream for the server response.
SavepointImpl.javaClass Savepoint implementation class.
Semaphore.javaClass Simple semaphore class used to serialize access requests over the network connection.

Based on the code originally written by Doug Lea.

SharedLocalNamedPipe.javaClass This class implements inter-process communication (IPC) to the database server using local named pipes (will only work on Windows).
SharedNamedPipe.javaClass This class implements inter-process communication (IPC) to the database server using named pipes.
author:
   David D.
SharedSocket.javaClass This class mananges the physical connection to the SQL Server and serialises its use amongst a number of virtual sockets. This allows one physical connection to service a number of concurrent statements.

Constraints and assumptions:

  1. Callers will not attempt to read from the server without issuing a request first.
  2. The end of a server reply can be identified as byte 2 of the header is non zero.

Comments:
  1. This code will discard unread server data if a new request is issued. Currently the higher levels of the driver attempt to do this but may be we can just rely on this code instead.
  2. A cancel can be issued by a caller only if the server is currently sending data for the caller otherwise the cancel is ignored.
  3. Cancel packets on their own are returned as extra records appended to the previous packet so that the TdsCore module can process them.
This version of the class will start to cache results to disk once a predetermined maximum buffer memory threshold has been passed.
SQLDiagnostic.javaClass Helper class for handling SQL warnings and errors.
SQLParser.javaClass Process JDBC escape strings and parameter markers in the SQL string.
Support.javaClass This class contains static utility methods designed to support the main driver classes.
TdsCore.javaClass This class implements the Sybase / Microsoft TDS protocol.
TdsData.javaClass Implement TDS data types and related I/O logic.
TypeInfo.javaClass Represents an SQL data type as required by getTypeInfo().
UniqueIdentifier.javaClass This class encapsulates the MS SQL2000 UniqueIdentifer data type.
XASupport.javaClass This class contains static utility methods used to implement distributed transactions. For SQL Server 2000 the driver can provide true distributed transactions provided that the external stored procedure in JtdsXA.dll is installed.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.