Package com.microsoft.sqlserver.jdbc
Class SQLServerDriver
- java.lang.Object
-
- com.microsoft.sqlserver.jdbc.SQLServerDriver
-
- All Implemented Interfaces:
java.sql.Driver
public final class SQLServerDriver extends java.lang.Object implements java.sql.Driver
Provides methods to connect to a SQL Server database and to obtain information about the JDBC driver.
-
-
Constructor Summary
Constructors Constructor Description SQLServerDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptsURL(java.lang.String url)
java.sql.Connection
connect(java.lang.String Url, java.util.Properties suppliedProperties)
int
getMajorVersion()
int
getMinorVersion()
java.util.logging.Logger
getParentLogger()
java.sql.DriverPropertyInfo[]
getPropertyInfo(java.lang.String Url, java.util.Properties Info)
boolean
jdbcCompliant()
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
connect
public java.sql.Connection connect(java.lang.String Url, java.util.Properties suppliedProperties) throws SQLServerException
- Specified by:
connect
in interfacejava.sql.Driver
- Throws:
SQLServerException
-
acceptsURL
public boolean acceptsURL(java.lang.String url) throws SQLServerException
- Specified by:
acceptsURL
in interfacejava.sql.Driver
- Throws:
SQLServerException
-
getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String Url, java.util.Properties Info) throws SQLServerException
- Specified by:
getPropertyInfo
in interfacejava.sql.Driver
- Throws:
SQLServerException
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion
in interfacejava.sql.Driver
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion
in interfacejava.sql.Driver
-
getParentLogger
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
- Specified by:
getParentLogger
in interfacejava.sql.Driver
- Throws:
java.sql.SQLFeatureNotSupportedException
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliant
in interfacejava.sql.Driver
-
-