BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.jdbc.informix4
Class ConnectionInfo

java.lang.Object
  |
  +--weblogic.jdbc.informix4.ConnectionInfo

public class ConnectionInfo
extends java.lang.Object

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
ConnectionInfo(java.lang.String url)
           
ConnectionInfo(java.lang.String iUrl, java.util.Properties iInfo)
          The constructor for this class takes a complete url constructed as specified in jdbc's documentation (see url syntax).
 
Method Summary
 java.lang.String getCharset()
          Returns the character set specified by the user in the connection's url (if any).
 java.lang.String getDatabase()
          Return the name of the database (note: does not include host name)
 boolean getEscQuotes()
           
 java.lang.String getHost()
          Return the name of the host or null if the database is local
 java.lang.String getPassword()
           
 int getPort()
          Return port number or 5000 if a port number was not specified
 java.util.Properties getProperties()
          Return properties given to the constructor and/or extracted from the url.
 boolean getSQLTrace()
           
 java.lang.String getSubprotocol()
          Return the subprotocol to be used for this connection, eg.
 java.lang.String getURL()
          Return the URL for this connection.
 java.lang.String getUserName()
          Return the user name as encoded in the url or in the properties' 'user' key.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionInfo

public ConnectionInfo(java.lang.String url)
               throws java.sql.SQLException

ConnectionInfo

public ConnectionInfo(java.lang.String iUrl,
                      java.util.Properties iInfo)
               throws java.sql.SQLException
The constructor for this class takes a complete url constructed as specified in jdbc's documentation (see url syntax). The url goes like this, jdbc:weblogic:informix4:dbname@servername[?=] Each attribute in the url is extracted and added to the given properties. Attributes in the url will override existing attributes in the given properties.
Method Detail

getURL

public java.lang.String getURL()
Return the URL for this connection.

getSubprotocol

public java.lang.String getSubprotocol()
Return the subprotocol to be used for this connection, eg. 'odbc', 'Sybase', etc.

getHost

public java.lang.String getHost()
Return the name of the host or null if the database is local

getPort

public int getPort()
Return port number or 5000 if a port number was not specified

getDatabase

public java.lang.String getDatabase()
Return the name of the database (note: does not include host name)

getProperties

public java.util.Properties getProperties()
Return properties given to the constructor and/or extracted from the url.

getUserName

public java.lang.String getUserName()
Return the user name as encoded in the url or in the properties' 'user' key.

getPassword

public java.lang.String getPassword()

getCharset

public java.lang.String getCharset()
Returns the character set specified by the user in the connection's url (if any).

getSQLTrace

public boolean getSQLTrace()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

getEscQuotes

public boolean getEscQuotes()

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.