net.sourceforge.jtds.jdbc |
|
Java Source File Name | Type | Comment |
BlobImpl.java | Class | An in-memory or disk based representation of binary data. |
CachedResultSet.java | Class | A memory cached scrollable/updateable result set.
Notes:
- For maximum performance use the scroll insensitive result set type.
- As the result set is cached in memory this implementation is limited
to small result sets.
- Updateable or scroll sensitive result sets are limited to selects
which reference one table only.
- Scroll sensitive result sets must have primary keys.
- Updates are optimistic.
|
CharsetInfo.java | Class | Loads and stores information about character sets. |
ClobImpl.java | Class | An in-memory or disk based representation of character data.
Implementation note:
- This implementation stores the CLOB data in a byte array managed by
the
BlobBuffer class. |
ColInfo.java | Class | This class is a descriptor for result set columns. |
ConnectionJDBC2.java | Class | jTDS implementation of the java.sql.Connection interface.
Implementation notes:
- Environment setting code carried over from old jTDS otherwise
generally a new implementation of Connection.
- Connection properties and SQLException text messages are loaded from
a properties file.
- Character set choices are also loaded from a resource file and the original
Encoder class has gone.
- Prepared SQL statements are converted to procedures in the prepareSQL method.
- Use of Stored procedures is optional and controlled via connection property.
- This Connection object maintains a table of weak references to associated
statements.
|
ConnectionJDBC3.java | Class | Implements JDBC 3.0 specific functionality. |
DateTime.java | Class | Encapsulates Sybase date/time values and provides conversions to and from
Java classes. |
DefaultProperties.java | Class | 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:
- Add
prop.foo and prop.desc.foo
properties to Messages.properties .
- Add a
static final default field to
DefaultProperties .
- Update
DefaultProperties.addDefaultProperties(java.util.Properties) to set the default.
- 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".
- Update
Driver.createRequiredTrueMap() and
DriverUnitTest.test_getPropertyInfo_Required() if the property
is required.
- Add a new test to
DefaultPropertiesTestLibrary for the new
property.
author: David D. |
Driver.java | Class | jTDS implementation of the java.sql.Driver interface. |
JtdsCallableStatement.java | Class | jTDS implementation of the java.sql.CallableStatement interface. |
JtdsDatabaseMetaData.java | Class | 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.java | Class | jTDS implementation of the java.sql.PreparedStatement interface.
Implementation notes:
- Generally a simple subclass of Statement mainly adding support for the
setting of parameters.
- The stream logic is taken over from the work Brian did to add Blob support
to the original jTDS.
- Use of Statement specific method calls eg executeQuery(sql) is blocked by
this version of the driver.
|
JtdsResultSet.java | Class | jTDS Implementation of the java.sql.ResultSet interface supporting forward read
only result sets. |
JtdsResultSetMetaData.java | Class | jTDS implementation of the java.sql.ResultSetMetaData interface. |
JtdsStatement.java | Class | jTDS implementation of the java.sql.Statement interface.
NB. |
Messages.java | Class | Support class for Messages.properties .
author: David D. |
MSCursorResultSet.java | Class | This class extends the JtdsResultSet to support scrollable and or
updateable cursors on Microsoft servers. |
MSSqlServerInfo.java | Class | This class communicates with SQL Server 2k to determine what ports its
instances are listening to. |
NtlmAuth.java | Class | 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.java | Class | jTDS implementation of ParameterMetaData .
For Sybase it is usually possible to obtain true parameter data for prepared
statements. |
ParamInfo.java | Class | This class is a descriptor for procedure and prepared statement parameters. |
ProcEntry.java | Class | Stores information about a cached stored procedure or statement handle. |
ProtocolException.java | Class | Exception class used to report errors in the TDS protocol. |
RequestStream.java | Class | Class to implement an output stream for the server request. |
ResponseStream.java | Class | Implements an input stream for the server response. |
SavepointImpl.java | Class | Savepoint implementation class. |
Semaphore.java | Class | Simple semaphore class used to serialize access requests over the network
connection.
Based on the code originally written by Doug Lea. |
SharedLocalNamedPipe.java | Class | This class implements inter-process communication (IPC) to the database
server using local named pipes (will only work on Windows). |
SharedNamedPipe.java | Class | This class implements inter-process communication (IPC) to the
database server using named pipes.
author: David D. |
SharedSocket.java | Class | 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:
- Callers will not attempt to read from the server without issuing a request first.
- The end of a server reply can be identified as byte 2 of the header is non zero.
Comments:
- 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.
- A cancel can be issued by a caller only if the server is currently sending
data for the caller otherwise the cancel is ignored.
- 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.java | Class | Helper class for handling SQL warnings and errors. |
SQLParser.java | Class | Process JDBC escape strings and parameter markers in the SQL string. |
Support.java | Class | This class contains static utility methods designed to support the
main driver classes. |
TdsCore.java | Class | This class implements the Sybase / Microsoft TDS protocol. |
TdsData.java | Class | Implement TDS data types and related I/O logic. |
TypeInfo.java | Class | Represents an SQL data type as required by getTypeInfo() . |
UniqueIdentifier.java | Class | This class encapsulates the MS SQL2000 UniqueIdentifer data type. |
XASupport.java | Class | 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. |