|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.rio.MVADriver
public class MVADriver
MVADriver class implements the Driver interface.
The DriverManager will try to load as many drivers as it can find and then for any given connection request, it will ask each driver in turn to try to connect to the target URL.
When a Driver class is loaded, it should create an instance of itself and register it with the DriverManager. This means that a user can load and register a driver by doing Class.forName("foo.bah.Driver").
MVAConnection
Method Summary | |
---|---|
boolean |
acceptsURL(java.lang.String url)
Returns True if the driver thinks that it can open a connection to the given URL, else returns False. |
java.sql.Connection |
connect(com.sas.iom.SAS.IDataService sasDataService,
java.util.Properties info)
|
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties info)
Attempts to make a database connection to the server specified by the URL. |
static void |
deregisterDriver()
|
int |
getMajorVersion()
Gets the driver's major version number. |
int |
getMinorVersion()
Gets the driver's minor version number. |
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info)
Gets a DriverPropertyInfo object that lists the properties for the SAS/Integrated Object Model driver for JDBC. |
boolean |
jdbcCompliant()
Reports whether the Driver is a genuine JDBC COMPLIANT (tm) driver. |
Method Detail |
---|
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
The connect method accepts a string representation of a URL and a java.util.Properties object as input.
connect
in interface java.sql.Driver
url
- The URL of the database to connect to. The URL must be of the form:
jdbc:sasiom://hostname:portnumber
where hostname
is the name of the machine where the MVA server is running,
and portnumber
is the port the MVA server is configured to use.
info
- A list of connection arguments as a Properties object.
Properties for obtaining an MVAConnection are treated case-insensitively.
The properties are as follows:
Note that the server's encryption policy is, by default, optional so no special action is needed to prepare an IOM BRIDGE server to use encryption. However, it is possible to set up the server so that encryption is required. Consult IOM BRIDGE server documentation for details.
librefs property.
The librefs
property value must be specified as:
(libname 'filepath'; libname 'filepath';...)
user
property.Note: When this property is set to True, any operation that involves reading and returning data set labels can result in poor performance because each data set must be opened in order to read the label. For example, if this property is set to True, performance may be degraded when using the MVADatabaseMetaData.getTables() method to retrieve a description of the tables in a catalog.
true
.user
java.sql.SQLException
- This exception is thrown if a RIOException is detected.public java.sql.Connection connect(com.sas.iom.SAS.IDataService sasDataService, java.util.Properties info) throws java.sql.SQLException
java.sql.SQLException
public boolean acceptsURL(java.lang.String url) throws java.sql.SQLException
acceptsURL
in interface java.sql.Driver
url
- The URL of the database.
java.sql.SQLException
- This exception is required by the interface but it is never thrown.public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
getPropertyInfo
in interface java.sql.Driver
url
- The URL of the database to connect to.info
- A list of tag/value pairs.
java.sql.SQLException
- This exception is required by the interface but it is
never thrown.connect(String, java.util.Properties)
public int getMajorVersion()
getMajorVersion
in interface java.sql.Driver
public int getMinorVersion()
getMinorVersion
in interface java.sql.Driver
public boolean jdbcCompliant()
jdbcCompliant
in interface java.sql.Driver
public static void deregisterDriver() throws java.sql.SQLException
java.sql.SQLException
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |