com.ibm.redback.redbeans
Class Connection

java.lang.Object
  |
  +--com.ibm.redback.redbeans.Connection

public class Connection
extends java.lang.Object

Connection class that stores URL reference and is used to set the current active connection in a RedObject instance


Constructor Summary
Connection()
          Connection class that stores URL reference and is used to set the current active connection in a RedObject instance
Connection(java.lang.String URL)
          Connection class that stores URL reference and is used to set the current active connection in a RedObject instance
Connection(java.lang.String URL, java.lang.String userId, java.lang.String password)
          This constructor used when connecting via the Explorer class on the RedBack Server, used to reference classes.
 
Method Summary
 java.lang.String getConnectionURL()
          Gets the current URL used for the connectiion.
 java.lang.String getPassword()
          Gets the current Password.
 java.lang.String getUserId()
          Gets the current UserID.User ID (and password) are only used by the RBO devclasses that are referenced by the Designer and the Scopes.
 void setConnectionURL(java.lang.String URL)
          Sets the current URL
 void setPassword(java.lang.String newPasswd)
          Sets the current password.
 void setUserId(java.lang.String newUserId)
          Sets the current User ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connection

public Connection()
Connection class that stores URL reference and is used to set the current active connection in a RedObject instance

Connection

public Connection(java.lang.String URL)
Connection class that stores URL reference and is used to set the current active connection in a RedObject instance
Parameters:
URL - the URL of the RedBack Server to connect to

Connection

public Connection(java.lang.String URL,
                  java.lang.String userId,
                  java.lang.String password)
This constructor used when connecting via the Explorer class on the RedBack Server, used to reference classes. For example used by the Java RBOScope. Requires a user id and password
Parameters:
userId - the user id
password - the password
Method Detail

setConnectionURL

public void setConnectionURL(java.lang.String URL)
Sets the current URL
Parameters:
URL - the current URL

getConnectionURL

public java.lang.String getConnectionURL()
Gets the current URL used for the connectiion.

getUserId

public java.lang.String getUserId()
Gets the current UserID.User ID (and password) are only used by the RBO devclasses that are referenced by the Designer and the Scopes.

getPassword

public java.lang.String getPassword()
Gets the current Password. The Password is only used by the RBO devclasses that are referenced by the Designer and the Scopes.

setUserId

public void setUserId(java.lang.String newUserId)
Sets the current User ID. User ID (and password) are only used by the RBO devclasses that are referenced by the Designer and the Scopes.
Parameters:
User - Id the current User Id

setPassword

public void setPassword(java.lang.String newPasswd)
Sets the current password. Password is only used by the RBO devclasses that are referenced by the Designer and the Scopes
Parameters:
Password - the current Password