|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sas.rio.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
Field Summary |
Constructor Summary |
Method Summary | |
boolean |
acceptsURL(String url)
Returns True if the driver thinks that it can open a connection to the given URL, else returns False. |
Connection |
connect(String url,
Properties info)
Attempts to make a database connection to the server specified by the URL. |
int |
getMajorVersion()
Gets the driver's major version number. |
int |
getMinorVersion()
Gets the driver's minor version number. |
DriverPropertyInfo[] |
getPropertyInfo(String url,
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
Constructor Detail |
Method Detail |
public Connection connect(String url, Properties info) throws SQLException
The connect method accepts a string representation of a URL and a java.util.Properties object as input.
connect
in interface Driver
url
- The URL of the database to connect to. If the URL does not specify sasiom, a NULL is returned.
The URL must be of the form:
jdbc:sasiom://hostname:portnumberwhere
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.
The properties for the MVAConnection class are as follows:
userName
password
userName
property.
librefs
librefs
property value must be specifies as follows:
(libname 'filepath'; libname 'filepath';...)
dbms
dbmsOptions
remarks
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.
undoPolicyNone
encryptionPolicy
encryptionContent
encryptionAlgorithms
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.
applyFormats
Note: Users have the ability to pass in properties embedded in the url. The syntax for this is "url?[attr=value]&[...]", where attr is a valid property name, and value is a valid name. If users make use of this functionality, then if properties are also passed in via the Properties object, the properties in the url will, in the case of conflicts, override those in the Properties object. This means that if a user specifies a libref (for example) in both the URL and in the Properties object, the libref in the url will be the one to take precedence, and the one in the Properties object will be ignored.
SQLException
- This exception is thrown if a RIOException is detected.public boolean acceptsURL(String url) throws SQLException
acceptsURL
in interface Driver
url
- The URL of the database.SQLException
- This exception is required by the interface but it is never thrown.public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
userName
password
userName
property.
librefs
librefs
property value must be specifies as follows:
(libname 'filepath'; libname 'filepath';...)
dbms
dbmsOptions
remarks
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.
undoPolicyNone
encryptionPolicy
encryptionContent
encryptionAlgorithms
applyFormats
getPropertyInfo
in interface Driver
url
- The URL of the database to connect to.info
- A list of tag/value pairs.SQLException
- This exception is required by the interface but it is never thrown.public int getMajorVersion()
getMajorVersion
in interface Driver
public int getMinorVersion()
getMinorVersion
in interface Driver
public boolean jdbcCompliant()
jdbcCompliant
in interface Driver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |