|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sas.net.sharenet.ShareNetDriver
This is the SAS/SHARE Driver for JDBC implementation for java.sql.Driver.
Field Summary | |
static int |
majorVersion
|
static int |
minorVersion
|
Constructor Summary | |
ShareNetDriver()
Constructs a ShareNetDriver object and registers the SAS/SHARE driver for JDBC with the java.sql.DriverManager. |
Method Summary | |
boolean |
acceptsURL(String url)
Returns a value of True if the driver accepts this style of URL and the specified server. |
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/SHARE driver for JDBC. |
boolean |
jdbcCompliant()
Returns whether the Driver is JDBC COMPLIANT. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int majorVersion
public static final int minorVersion
Constructor Detail |
public ShareNetDriver() throws SQLException
SQLException
- This exception is thrown if a ShareNetException is detected.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. If the URL does not specify sharenet, a NULL is returned. The URL must be of the form:
jdbc:sharenet://hostname:portnumberwhere
hostname
is the name of the machine where the SAS/SHARE server is running,
and portnumber
is the port the SAS/SHARE server is configured to use.
The properties argument can be used to pass tag/value pairs as connection arguments. The properties for the ShareNetConnection class are as follows:
shareUser
sharePassword
shareUser
property.
appname
sapw
pt2dbpw
librefs
librefs
property value must be specifies as follows:
(libname 'filepath'; libname 'filepath';...)
dbms
dbms_options
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 ShareNetDatabaseMetaData.getTables() method to retrieve a description of the tables in a catalog.
undoPolicyNone
routerUrl
routerUrl
property value must be specifies as follows:
(routerUrl http://your_server/cgi-bin/shrcgi)
where http://your_server/cgi-bin/shrcgi
is the URL of the Message Router (shrcgi
or shrcgi.exe
), one
of the tunnel feature's server programs.
connect
in interface Driver
url
- The URL of the database to connect to.info
- A list of connection arguments.SQLException
- This exception is thrown if a ShareNetException is detected.public boolean acceptsURL(String url) throws SQLException
acceptsURL
in interface Driver
url
- The URL of the database.SQLException
- This exception is thrown if a ShareNetException is detected.public DriverPropertyInfo[] getPropertyInfo(String url, Properties info)
shareUser
sharePassword
shareUser
property.
appname
sapw
pt2dbpw
librefs
librefs
property value must be specifies as follows:
(libname 'filepath'; libname 'filepath';...)
dbms
dbms_options
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 ShareNetDatabaseMetaData.getTables() method to retrieve a description of the tables in a catalog.
undoPolicyNone
routerUrl
routerUrl
property value must be specifies as follows:
(routerUrl http://your_server/cgi-bin/shrcgi)
where http://your_server/cgi-bin/shrcgi
is the URL of the Message Router (shrcgi
or shrcgi.exe
), one
of the tunnel feature's server programs.
getPropertyInfo
in interface Driver
url
- The URL of the database to connect to.info
- A list of tag/value pairs.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 |