Class Hierarchy        Index

Class COM.cloudscape.core.WebLogicDriver

java.lang.Object
   |
   +----COM.cloudscape.core.WebLogicDriver

public class WebLogicDriver
extends Object
implements Driver
Copyright © 1998-1999, Cloudscape, Inc. All rights reserved.

This driver connects to a remote COM.cloudscape.core.JDBCDriver via BEA WebLogic's jdbc driver. This class translates the short URL into the standard WebLogic URL. This driver recognizes two forms of the URL: jdbc:cloudcape:weblogic or jdbc:cloudscape:weblogic-ssl. The second URL is to get a secure access to WebLogic using SSL.

You can load both this driver and COM.cloudscape.core.JDBCDriver to talk to a cloudscape database server and an embedded Cloudscape database in the same JVM.

When the SSL connection is desired, weblogic uses t3s protocol rather than t3. ie if the URL is jdbc:cloudscape:weblogic, the protocol used would be t3. In case of jdbc:cloudscape:weblogic-ssl, the protocol used would be t3s. The standard weblogic URL is of the following form (all in 1 line with no space):
jdbc:weblogic:t3?weblogic.t3.serverURL=t3://hostname:portnum &weblogic.t3.driverClassName=COM.cloudscape.core.JDBCDriver &weblogic.t3.driverURL=jdbc:cloudscape:[dbname] [;cloudscapeAttributes]* [&weblogicAttributes]*
The short URL is of the form (all in one line with no space): jdbc:cloudscape:weblogic:[//hostname:portnum/][dbname] [;cloudscapeAttributes]*[&weblogicAttributes]*
where [x] means 0 or 1 and [x]* means 0 or many

For example
jdbc:cloudscape:weblogic://bigMachine:4444/c:foo/bar/jbmsDB;create=true &weblogic.t3.prefetch=0 is translated to
jdbc:weblogic:t3?weblogic.t3.serverURL=t3://bigMachine:4444 &weblogic.t3.driverClassName=COM.cloudscape.core.JDBCDriver &weblogic.t3.driverURL=jdbc:cloudscape:c:foo/bar/jbmsDB;create=true &weblogic.t3.prefetch=0
For an SSL connection, notice the change in serverURL jdbc:weblogic:t3?weblogic.t3.serverURL=t3s://bigMachine:4444 &weblogic.t3.driverClassName=COM.cloudscape.core.JDBCDriver &weblogic.t3.driverURL=jdbc:cloudscape:c:foo/bar/jbmsDB;create=true &weblogic.t3.prefetch=0

if //hostname:portnum/ is missing, it is translated to the default, which is //localhost:7001. If an SSL connection is desired, the default would be //localhost:7002. In other words,
jdbc:cloudsacpe:weblogic:/e:/foobar is translated to
jdbc:weblogic:t3?weblogic.t3.serverURL=t3://localhost:7001 &weblogic.t3.driverClassName=COM.cloudscape.core.JDBCDriver &weblogic.t3.driverURL=jdbc:cloudscape:/e:/foobar
Or it is translated to the following if SSL connection is used: jdbc:weblogic:t3?weblogic.t3.serverURL=t3s://localhost:7002 &weblogic.t3.driverClassName=COM.cloudscape.core.JDBCDriver &weblogic.t3.driverURL=jdbc:cloudscape:/e:/foobar


if //host:port/ is replaced by the word 'local:' it is treated as if it is missing. In othe words,
jdbc:cloduscape:weblogic:local:c|abc/mydb is transated to
jdbc:weblogic:t3?weblogic.t3.serverURL=t3://localhost:7001 &weblogic.t3.driverClassName=COM.cloudscape.core.JDBCDriver &weblogic.t3.driverURL=jdbc:cloudscape:c|abc/mydb


Variable Index

 o WEBLOGIC_PROTOCOL
 o WEBLOGIC_SSL_PROTOCOL

Constructor Index

 o WebLogicDriver()

Method Index

 o acceptsURL(String)
Accept anything that starts with jdbc:cloudscape:weblogic
 o connect(String, Properties)
Connect to the URL if possible
 o getMajorVersion()
Returns the driver's major version number.
 o getMinorVersion()
Returns the driver's minor version number.
 o getPropertyInfo(String, Properties)
Returns an array of DriverPropertyInfo objects describing possible properties.
 o jdbcCompliant()
Report whether the Driver is a genuine JDBC COMPLIANT (tm) driver.

Variables

 o WEBLOGIC_PROTOCOL
 public static final String WEBLOGIC_PROTOCOL
 o WEBLOGIC_SSL_PROTOCOL
 public static final String WEBLOGIC_SSL_PROTOCOL

Constructors

 o WebLogicDriver
 public WebLogicDriver()

Methods

 o acceptsURL
 public boolean acceptsURL(String url)
Accept anything that starts with jdbc:cloudscape:weblogic

See Also:
Driver
 o connect
 public Connection connect(String url,
                           Properties info) throws SQLException
Connect to the URL if possible

Throws: SQLException
illegal url or problem with connectiong
See Also:
Driver
 o getPropertyInfo
 public DriverPropertyInfo[] getPropertyInfo(String url,
                                             Properties info) throws SQLException
Returns an array of DriverPropertyInfo objects describing possible properties.

Throws: SQLException
if a database-access error occurs.
See Also:
Driver
 o getMajorVersion
 public int getMajorVersion()
Returns the driver's major version number.

See Also:
Driver
 o getMinorVersion
 public int getMinorVersion()
Returns the driver's minor version number.

See Also:
Driver
 o jdbcCompliant
 public boolean jdbcCompliant()
Report whether the Driver is a genuine JDBC COMPLIANT (tm) driver.

See Also:
Driver

  Class Hierarchy        Index