Oracle Data-aware Controls Reference

oracle.dacf.dataset.connections
Class NamedConnection

java.lang.Object
  extended byoracle.dacf.dataset.connections.NamedConnection

public class NamedConnection
extends java.lang.Object


Constructor Summary
NamedConnection(java.lang.String name)
          Constructor constructs the named connection
 
Method Summary
 java.lang.String getConnectionURL()
          returns the connection url
 java.lang.String getName()
          returns the name of the Connection
 java.lang.String getPassWord()
          returns the password
 java.lang.String getUserName()
          returns the user name
 void setConnectionURL(java.lang.String connectionURL)
          Overwrites the connection url definition as gotten from the ConnectionManager
 void setName(java.lang.String name)
          initializes the connection definitions.
 void setPassWord(java.lang.String passWord)
          Overwrites the password definition as gotten from the ConnectionManager
 void setUserName(java.lang.String userName)
          Overwrites the user name definition as gotten from the ConnectionManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedConnection

public NamedConnection(java.lang.String name)
Constructor constructs the named connection

Parameters:
name - the connection name
Method Detail

setName

public void setName(java.lang.String name)
initializes the connection definitions. It reads the connection definitions from the connection manager and inializes the following attributes
  1. UserName
  2. Password
  3. ConnectionURL

NOTE : When setting the name attribute, it reads the ConnectionManager and reinitializes the connection definition


getName

public java.lang.String getName()
returns the name of the Connection

Returns:
the connection name (as defined in the Connection Manager)

setUserName

public void setUserName(java.lang.String userName)
Overwrites the user name definition as gotten from the ConnectionManager

Parameters:
userName - the new user name

getUserName

public java.lang.String getUserName()
returns the user name

Returns:
the user name

setPassWord

public void setPassWord(java.lang.String passWord)
Overwrites the password definition as gotten from the ConnectionManager

Parameters:
passWord - the new password

getPassWord

public java.lang.String getPassWord()
returns the password

Returns:
the password

setConnectionURL

public void setConnectionURL(java.lang.String connectionURL)
Overwrites the connection url definition as gotten from the ConnectionManager

NOTE : The connection URL defines the following elements

  1. port
  2. type
  3. host
  4. sid
These elements can be overwritten individualy


getConnectionURL

public java.lang.String getConnectionURL()
returns the connection url

Returns:
the connection url

Oracle Data-aware Controls Reference

 

Copyright © 1997, 2003, Oracle. All rights reserved.