CICS® Transaction Gateway Programming Reference v1.1.0.0

com.ibm.connector2.cics
Class CICSConnectionSpec

java.lang.Object
  extended by com.ibm.connector2.cics.CICSConnectionSpec
All Implemented Interfaces:
CICSLogTraceLevels, javax.resource.cci.ConnectionSpec
Direct Known Subclasses:
ECIConnectionSpec, EPIConnectionSpec

public abstract class CICSConnectionSpec
extends java.lang.Object
implements javax.resource.cci.ConnectionSpec, CICSLogTraceLevels

Framework class for the connection spec.


Field Summary
 
Fields inherited from interface com.ibm.connector2.cics.CICSLogTraceLevels
RAS_TRACE_ENTRY_EXIT, RAS_TRACE_ERROR_EXCEPTION, RAS_TRACE_INTERNAL, RAS_TRACE_OFF
 
Constructor Summary
CICSConnectionSpec()
          Default constructor.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Adds a PropertyChangeListener.
 void firePropertyChange(java.lang.String strPropertyName, java.lang.Object oOld, java.lang.Object oNew)
          Fires a PropertyChangeEvent to any listeners.
 java.lang.String getPassword()
          Gets the password for this connection spec.
 java.lang.String getUserName()
          Gets the username for this connection spec.
 void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Removes a PropertyChangeListener.
 void setPassword(java.lang.String newPass)
          Sets the password for this connection spec.
 void setUserName(java.lang.String newUser)
          Sets the username for this connection spec.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CICSConnectionSpec

public CICSConnectionSpec()
Default constructor. Set properties using the setters. All properties will have initial values.

Username will be null.
Password will be null.

Method Detail

setUserName

public void setUserName(java.lang.String newUser)
Sets the username for this connection spec.

Parameters:
newUser - The new username.

getUserName

public java.lang.String getUserName()
Gets the username for this connection spec.

Returns:
The username.

setPassword

public void setPassword(java.lang.String newPass)
Sets the password for this connection spec.

Parameters:
newPass - The new password.

getPassword

public java.lang.String getPassword()
Gets the password for this connection spec.

Returns:
The password.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Adds a PropertyChangeListener.

Parameters:
pcl - java.beans.PropertyChangeListener.

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes a PropertyChangeListener.

Parameters:
pcl - java.beans.PropertyChangeListener.

firePropertyChange

public void firePropertyChange(java.lang.String strPropertyName,
                               java.lang.Object oOld,
                               java.lang.Object oNew)
Fires a PropertyChangeEvent to any listeners.

Parameters:
strPropertyName - java.lang.String.
oOld - java.lang.Object.
oNew - java.lang.Object.

©Copyright IBM Corp. 1994, 2014
Legal