|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jtds.jdbc.Driver
jTDS implementation of the java.sql.Driver interface.
Implementation note:
Driver
Field Summary | |
static java.lang.String |
APPNAME
|
static java.lang.String |
AUTOCOMMIT
|
static java.lang.String |
BATCHSIZE
|
static java.lang.String |
BINDADDRESS
|
static java.lang.String |
BUFFERDIR
|
static java.lang.String |
BUFFERMAXMEMORY
|
static java.lang.String |
BUFFERMINPACKETS
|
static java.lang.String |
CACHEMETA
|
static java.lang.String |
CHARSET
|
static java.lang.String |
DATABASENAME
|
static java.lang.String |
DOMAIN
|
private static java.lang.String |
driverPrefix
URL prefix used by the driver (i.e jdbc:jtds: ). |
static java.lang.String |
INSTANCE
|
static boolean |
JDBC3
Set if the JDBC specification to implement is 3.0 or greater. |
static java.lang.String |
LANGUAGE
|
static java.lang.String |
LASTUPDATECOUNT
|
static java.lang.String |
LOBBUFFER
|
static java.lang.String |
LOGFILE
|
static java.lang.String |
LOGINTIMEOUT
|
static java.lang.String |
MACADDRESS
|
(package private) static int |
MAJOR_VERSION
Driver major version. |
static java.lang.String |
MAXSTATEMENTS
|
(package private) static int |
MINOR_VERSION
Driver minor version. |
(package private) static java.lang.String |
MISC_VERSION
Driver version miscellanea (e.g "-rc2", ".1" or null ). |
static java.lang.String |
NAMEDPIPE
|
static java.lang.String |
PACKETSIZE
|
static java.lang.String |
PASSWORD
|
static java.lang.String |
PORTNUMBER
|
static java.lang.String |
PREPARESQL
|
static java.lang.String |
PROCESSID
|
static java.lang.String |
PROGNAME
|
static java.lang.String |
SENDSTRINGPARAMETERSASUNICODE
|
static java.lang.String |
SERVERNAME
|
static java.lang.String |
SERVERTYPE
|
static java.lang.String |
SOKEEPALIVE
|
static java.lang.String |
SOTIMEOUT
|
static int |
SQLSERVER
Microsoft SQL Server. |
static java.lang.String |
SSL
|
static int |
SYBASE
Sybase ASE. |
static java.lang.String |
TCPNODELAY
|
static java.lang.String |
TDS
|
static int |
TDS42
TDS 4.2 protocol (SQL Server 6.5 and later and Sybase 9 and later). |
static int |
TDS50
TDS 5.0 protocol (Sybase 10 and later). |
static int |
TDS70
TDS 7.0 protocol (SQL Server 7.0 and later). |
static int |
TDS80
TDS 8.0 protocol (SQL Server 2000 and later) |
static int |
TDS81
TDS 8.1 protocol (SQL Server 2000 SP1 and later). |
static java.lang.String |
USECURSORS
|
static java.lang.String |
USEJCIFS
|
static java.lang.String |
USELOBS
|
static java.lang.String |
USENTLMV2
|
static java.lang.String |
USER
|
static java.lang.String |
WSID
|
static java.lang.String |
XAEMULATION
|
Constructor Summary | |
Driver()
|
Method Summary | |
boolean |
acceptsURL(java.lang.String url)
|
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties info)
|
private static java.util.Map |
createChoicesMap()
Creates a map of driver properties whose choices
field should be set when calling
getPropertyInfo(String, Properties) .
|
private static java.util.Map |
createRequiredTrueMap()
Creates a map of driver properties that should be marked as required when calling getPropertyInfo(String, Properties) .
|
int |
getMajorVersion()
|
int |
getMinorVersion()
|
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties props)
|
static java.lang.String |
getVersion()
Returns the driver version. |
boolean |
jdbcCompliant()
|
static void |
main(java.lang.String[] args)
|
private static int |
nextToken(java.lang.String url,
int pos,
java.lang.StringBuffer token)
Extract the next lexical token from the URL. |
private static java.util.Properties |
parseURL(java.lang.String url,
java.util.Properties info)
Parse the driver URL and extract the properties. |
private java.util.Properties |
setupConnectProperties(java.lang.String url,
java.util.Properties info)
Sets up properties for the connect(String, java.util.Properties) method. |
java.lang.String |
toString()
Returns the string form of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static java.lang.String driverPrefix
jdbc:jtds:
).
static final int MAJOR_VERSION
static final int MINOR_VERSION
static final java.lang.String MISC_VERSION
null
).
public static final boolean JDBC3
public static final int TDS42
public static final int TDS50
public static final int TDS70
public static final int TDS80
public static final int TDS81
public static final int SQLSERVER
public static final int SYBASE
public static final java.lang.String APPNAME
public static final java.lang.String AUTOCOMMIT
public static final java.lang.String BATCHSIZE
public static final java.lang.String BINDADDRESS
public static final java.lang.String BUFFERDIR
public static final java.lang.String BUFFERMAXMEMORY
public static final java.lang.String BUFFERMINPACKETS
public static final java.lang.String CACHEMETA
public static final java.lang.String CHARSET
public static final java.lang.String DATABASENAME
public static final java.lang.String DOMAIN
public static final java.lang.String INSTANCE
public static final java.lang.String LANGUAGE
public static final java.lang.String LASTUPDATECOUNT
public static final java.lang.String LOBBUFFER
public static final java.lang.String LOGFILE
public static final java.lang.String LOGINTIMEOUT
public static final java.lang.String MACADDRESS
public static final java.lang.String MAXSTATEMENTS
public static final java.lang.String NAMEDPIPE
public static final java.lang.String PACKETSIZE
public static final java.lang.String PASSWORD
public static final java.lang.String PORTNUMBER
public static final java.lang.String PREPARESQL
public static final java.lang.String PROGNAME
public static final java.lang.String SERVERNAME
public static final java.lang.String SERVERTYPE
public static final java.lang.String SOTIMEOUT
public static final java.lang.String SOKEEPALIVE
public static final java.lang.String PROCESSID
public static final java.lang.String SSL
public static final java.lang.String TCPNODELAY
public static final java.lang.String TDS
public static final java.lang.String USECURSORS
public static final java.lang.String USEJCIFS
public static final java.lang.String USENTLMV2
public static final java.lang.String USELOBS
public static final java.lang.String USER
public static final java.lang.String SENDSTRINGPARAMETERSASUNICODE
public static final java.lang.String WSID
public static final java.lang.String XAEMULATION
Constructor Detail |
public Driver()
Method Detail |
public int getMajorVersion()
getMajorVersion
in interface java.sql.Driver
public int getMinorVersion()
getMinorVersion
in interface java.sql.Driver
public static final java.lang.String getVersion()
Per [908906] 0.7: Static Version information, please.
public java.lang.String toString()
Per [887120] DriverVersion.getDriverVersion(); this will return a short version name.
Added back to driver per [1006449] 0.9rc1: Driver version broken
public boolean jdbcCompliant()
jdbcCompliant
in interface java.sql.Driver
public boolean acceptsURL(java.lang.String url) throws java.sql.SQLException
acceptsURL
in interface java.sql.Driver
java.sql.SQLException
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
connect
in interface java.sql.Driver
java.sql.SQLException
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties props) throws java.sql.SQLException
getPropertyInfo
in interface java.sql.Driver
java.sql.SQLException
private java.util.Properties setupConnectProperties(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
connect(String, java.util.Properties)
method.
url
- the URL of the database to which to connectinfo
- a list of arbitrary string tag/value pairs as
connection arguments.
java.sql.SQLException
- if an error occurs parsing the URLprivate static java.util.Map createChoicesMap()
choices
field should be set when calling
getPropertyInfo(String, Properties)
.
The values in the map are the String[]
objects
that should be set to the choices
field.
DriverPropertyInfo
objects whose
choices
should be set.private static java.util.Map createRequiredTrueMap()
getPropertyInfo(String, Properties)
.
Note that only the key of the map is used to determine whether
the required
field should be set to true
.
If the key does not exist in the map, then the required
field is set to false
.
DriverPropertyInfo
objects where
required
should be set to true
.private static java.util.Properties parseURL(java.lang.String url, java.util.Properties info)
url
- the URL to parseinfo
- any existing properties already loaded in a
Properties
object
Properties
objectprivate static int nextToken(java.lang.String url, int pos, java.lang.StringBuffer token)
url
- The URL being parsedpos
- The current position in the URL string.token
- The buffer containing the extracted token.
int
.public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |