IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.samples.business.sna.lu0
Class DummyLu0ManagedConnectionFactory

java.lang.Object
  extended bycom.ibm.btt.samples.business.sna.lu0.DummyLu0ManagedConnectionFactory
All Implemented Interfaces:
javax.resource.spi.ManagedConnectionFactory, java.io.Serializable

public class DummyLu0ManagedConnectionFactory
extends java.lang.Object
implements javax.resource.spi.ManagedConnectionFactory

DummyLu0ManagedConnectionFactory instance is a factory of both ManagedConnection and EIS-specific connection factory instances

See Also:
Serialized Form

Constructor Summary
DummyLu0ManagedConnectionFactory()
           
 
Method Summary
 java.lang.Object createConnectionFactory()
          Creates an instance of com.ibm.connector.lu0.LU0ConnectionFactory
 java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager connectionManager)
          Creates an instance of com.ibm.connector.lu0.LU0ConnectionFactory
 javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
          Creates a new physical connection - LU0 Session
 boolean equals(java.lang.Object obj)
           
 java.lang.Boolean getBIDManaged()
          Gets the bIDManaged
 java.lang.Boolean getChaining()
          Gets the chaining
 java.lang.String getCodeSet()
          Gets the codeSet
 java.lang.Boolean getCompression()
          Gets the compression
 DummyLu0SnaSessionConfigurationProperties getConfigurationProperties()
          Gets the configurationProperties
 java.lang.String getCurrentLuName()
          Gets the currentLuName
 java.lang.Boolean getDefiniteResponseSolicited()
          Gets the definiteResponseSolicited
 java.lang.Boolean getEndBracketSent()
          Gets the endBracketSent
 java.lang.Integer getEstablishSessionRetries()
          Gets the establishSessionRetries
 java.lang.Integer getEstablishSessionTimeout()
          Gets the establishSessionTimeout
 java.lang.Boolean getFmhHeaderSent()
          Gets the fmhHeaderSent
 java.lang.Boolean getFmhIncluded()
          Gets the fmhIncluded
 java.lang.String getHostApplicationName()
          Gets the hostApplicationName
 java.lang.Integer getIDLength()
          Gets the ID Length
 java.lang.Boolean getJmsPublish()
          Returns the _jmsPublish.
 java.io.PrintWriter getLogWriter()
          Returns LogWriter
 java.lang.String[] getLuNames()
          Gets the getLuNames
 java.lang.Boolean getManageResponses()
          Gets the menagesResponse
 java.lang.Boolean getMessageToLu()
          Gets the messageToLu
 java.lang.String getModeName()
          Gets the modeName
 java.lang.String getTestFile()
          Gets the testFile Name
 java.lang.Integer getTimeBetweenRetries()
          Gets the timeBetweenRetries
 java.lang.String getUserName()
          Returns the _userName.
 java.lang.String getUserPassword()
          Returns the _userPassword.
 int hashCode()
           
 javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
          This method selects the matching LU0ManagedConnection from the candidate set provided by the application server by comparing properties of the LU0ManagedConnection from the candidate set with the default values of the ManagedConnectionFactory properties.
 void setBIDManaged(java.lang.Boolean bIDManaged)
          Sets the bIDManaged
 void setChaining(java.lang.Boolean chaining)
          Sets the chaining
 void setCodeSet(java.lang.String codeSet)
          Sets the codeSet
 void setCompression(java.lang.Boolean compression)
          Sets the compression
 void setCurrentLuName(java.lang.String currentLuName)
          Sets the currentLuName
 void setDefiniteResponseSolicited(java.lang.Boolean definiteResponseSolicited)
          Sets the definiteResponseSolicited
 void setEndBracketSent(java.lang.Boolean endBracketSent)
          Sets the endBracketSent
 void setEstablishSessionRetries(java.lang.Integer establishSessionRetries)
          Sets the establishSessionRetries
 void setEstablishSessionTimeout(java.lang.Integer establishSessionTimeout)
          Sets the establishSessionTimeout
 void setFmhHeaderSent(java.lang.Boolean fmhHeaderSent)
          Sets the fmhHeaderSent
 void setFmhIncluded(java.lang.Boolean fmhIncluded)
          Sets the fmhIncluded
 void setHostApplicationName(java.lang.String hostApplicationName)
          Sets the hostApplicationName
 void setIDLength(java.lang.Integer idLength)
          Sets the idLength
 void setJmsPublish(java.lang.Boolean jmsPublish)
          Sets the _jmsPublish.
 void setLogWriter(java.io.PrintWriter out)
          Sets LogWriter
 void setLuNames(java.lang.String luNames)
          Sets setLuNames
 void setManageResponses(java.lang.Boolean manageResponses)
          Sets the menagesResponse
 void setMessageToLu(java.lang.Boolean messageToLu)
          Sets the messageToLu
 void setModeName(java.lang.String modeName)
          Sets the modeName
 void setTestFile(java.lang.String testFileName)
          Sets the testFile
 void setTimeBetweenRetries(java.lang.Integer timeBetweenRetries)
          Sets the timeBetweenRetries
 void setUserName(java.lang.String userName)
          Sets the _userName.
 void setUserPassword(java.lang.String userPassword)
          Sets the _userPassword.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyLu0ManagedConnectionFactory

public DummyLu0ManagedConnectionFactory()
Method Detail

createConnectionFactory

public java.lang.Object createConnectionFactory()
                                         throws javax.resource.ResourceException
Creates an instance of com.ibm.connector.lu0.LU0ConnectionFactory

Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Returns:
java.lang.Object
Throws:
javax.resource.ResourceException

createConnectionFactory

public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager connectionManager)
                                         throws javax.resource.ResourceException
Creates an instance of com.ibm.connector.lu0.LU0ConnectionFactory

Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Parameters:
connectionManager - javax.resource.spi.ConnectionManager
Returns:
java.lang.Object
Throws:
javax.resource.ResourceException

createManagedConnection

public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
                                                                    javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
                                                             throws javax.resource.ResourceException
Creates a new physical connection - LU0 Session

Specified by:
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactory
Parameters:
subject - javax.security.auth.Subject
connectionRequestInfo - javax.resource.spi.ConnectionRequestInfo
Throws:
javax.resource.ResourceException

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface javax.resource.spi.ManagedConnectionFactory

hashCode

public int hashCode()
Specified by:
hashCode in interface javax.resource.spi.ManagedConnectionFactory

getLogWriter

public java.io.PrintWriter getLogWriter()
Returns LogWriter

Specified by:
getLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Returns:
java.io.PrintWriter

matchManagedConnections

public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet,
                                                                    javax.security.auth.Subject subject,
                                                                    javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
                                                             throws javax.resource.ResourceException
This method selects the matching LU0ManagedConnection from the candidate set provided by the application server by comparing properties of the LU0ManagedConnection from the candidate set with the default values of the ManagedConnectionFactory properties. If there is a match, the LU0ManagedConnection is returned to the caller, otherwise null is returned.

Specified by:
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactory
Parameters:
connectionSet - java.util.Set
subject - javax.security.auth.Subject
connectionRequestInfo - javax.resource.spi.ConnectionRequestInfo
Returns:
javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

setLogWriter

public void setLogWriter(java.io.PrintWriter out)
Sets LogWriter

Specified by:
setLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Parameters:
out - java.io.PrintWriter

setLuNames

public void setLuNames(java.lang.String luNames)
                throws javax.resource.ResourceException
Sets setLuNames

Parameters:
luNames - The luNames to set
Throws:
javax.resource.ResourceException

getLuNames

public java.lang.String[] getLuNames()
Gets the getLuNames

Returns:
Returns a String[]

getHostApplicationName

public java.lang.String getHostApplicationName()
Gets the hostApplicationName

Returns:
Returns a String

setHostApplicationName

public void setHostApplicationName(java.lang.String hostApplicationName)
                            throws javax.resource.ResourceException
Sets the hostApplicationName

Parameters:
hostApplicationName - The hostApplicationName to set
Throws:
javax.resource.ResourceException

getMessageToLu

public java.lang.Boolean getMessageToLu()
Gets the messageToLu

Returns:
Returns a Boolean

setMessageToLu

public void setMessageToLu(java.lang.Boolean messageToLu)
Sets the messageToLu

Parameters:
messageToLu - The messageToLu to set

getChaining

public java.lang.Boolean getChaining()
Gets the chaining

Returns:
Returns a Boolean

setChaining

public void setChaining(java.lang.Boolean chaining)
Sets the chaining

Parameters:
chaining - The chaining to set

getManageResponses

public java.lang.Boolean getManageResponses()
Gets the menagesResponse

Returns:
Returns a Boolean

setManageResponses

public void setManageResponses(java.lang.Boolean manageResponses)
Sets the menagesResponse

Parameters:
manageResponses - The menagesResponse to set

getFmhHeaderSent

public java.lang.Boolean getFmhHeaderSent()
Gets the fmhHeaderSent

Returns:
Returns a Boolean

setFmhHeaderSent

public void setFmhHeaderSent(java.lang.Boolean fmhHeaderSent)
Sets the fmhHeaderSent

Parameters:
fmhHeaderSent - The fmhHeaderSent to set

getFmhIncluded

public java.lang.Boolean getFmhIncluded()
Gets the fmhIncluded

Returns:
Returns a Boolean

setFmhIncluded

public void setFmhIncluded(java.lang.Boolean fmhIncluded)
Sets the fmhIncluded

Parameters:
fmhIncluded - The fmhIncluded to set

getEndBracketSent

public java.lang.Boolean getEndBracketSent()
Gets the endBracketSent

Returns:
Returns a Boolean

setEndBracketSent

public void setEndBracketSent(java.lang.Boolean endBracketSent)
Sets the endBracketSent

Parameters:
endBracketSent - The endBracketSent to set

getEstablishSessionRetries

public java.lang.Integer getEstablishSessionRetries()
Gets the establishSessionRetries

Returns:
Returns a Integer

setEstablishSessionRetries

public void setEstablishSessionRetries(java.lang.Integer establishSessionRetries)
Sets the establishSessionRetries

Parameters:
establishSessionRetries - The establishSessionRetries to set

getTimeBetweenRetries

public java.lang.Integer getTimeBetweenRetries()
Gets the timeBetweenRetries

Returns:
Returns a Integer

setTimeBetweenRetries

public void setTimeBetweenRetries(java.lang.Integer timeBetweenRetries)
Sets the timeBetweenRetries

Parameters:
timeBetweenRetries - The timeBetweenRetries to set

getDefiniteResponseSolicited

public java.lang.Boolean getDefiniteResponseSolicited()
Gets the definiteResponseSolicited

Returns:
Returns a Boolean

setDefiniteResponseSolicited

public void setDefiniteResponseSolicited(java.lang.Boolean definiteResponseSolicited)
Sets the definiteResponseSolicited

Parameters:
definiteResponseSolicited - The definiteResponseSolicited to set

getBIDManaged

public java.lang.Boolean getBIDManaged()
Gets the bIDManaged

Returns:
Returns a Boolean

setBIDManaged

public void setBIDManaged(java.lang.Boolean bIDManaged)
Sets the bIDManaged

Parameters:
bIDManaged - The bIDManaged to set

getCompression

public java.lang.Boolean getCompression()
Gets the compression

Returns:
Returns a Boolean

setCompression

public void setCompression(java.lang.Boolean compression)
Sets the compression

Parameters:
compression - The compression to set

getCodeSet

public java.lang.String getCodeSet()
Gets the codeSet

Returns:
Returns a String

setCodeSet

public void setCodeSet(java.lang.String codeSet)
                throws DummyLu0Exception
Sets the codeSet

Parameters:
codeSet - The codeSet to set
Throws:
DummyLu0Exception

getCurrentLuName

public java.lang.String getCurrentLuName()
Gets the currentLuName

Returns:
Returns a String

setCurrentLuName

public void setCurrentLuName(java.lang.String currentLuName)
Sets the currentLuName

Parameters:
currentLuName - The currentLuName to set

getEstablishSessionTimeout

public java.lang.Integer getEstablishSessionTimeout()
Gets the establishSessionTimeout

Returns:
Returns a Integer

setEstablishSessionTimeout

public void setEstablishSessionTimeout(java.lang.Integer establishSessionTimeout)
Sets the establishSessionTimeout

Parameters:
establishSessionTimeout - The establishSessionTimeout to set

getModeName

public java.lang.String getModeName()
Gets the modeName

Returns:
Returns a String

setModeName

public void setModeName(java.lang.String modeName)
Sets the modeName

Parameters:
modeName - The modeName to set

getConfigurationProperties

public DummyLu0SnaSessionConfigurationProperties getConfigurationProperties()
Gets the configurationProperties

Returns:
Returns a Lu0SnaSessionConfigurationProperties

getJmsPublish

public java.lang.Boolean getJmsPublish()
Returns the _jmsPublish.

Returns:
boolean

setJmsPublish

public void setJmsPublish(java.lang.Boolean jmsPublish)
Sets the _jmsPublish.

Parameters:
jmsPublish - The _jmsPublish to set

getUserName

public java.lang.String getUserName()
Returns the _userName.

Returns:
String

setUserName

public void setUserName(java.lang.String userName)
Sets the _userName.

Parameters:
userName - The _userName to set

getUserPassword

public java.lang.String getUserPassword()
Returns the _userPassword.

Returns:
String

setUserPassword

public void setUserPassword(java.lang.String userPassword)
Sets the _userPassword.

Parameters:
userPassword - The _userPassword to set

getTestFile

public java.lang.String getTestFile()
Gets the testFile Name

Returns:
Returns a String

setTestFile

public void setTestFile(java.lang.String testFileName)
                 throws javax.resource.ResourceException
Sets the testFile

Parameters:
testFileName - The testFileName to set
Throws:
javax.resource.ResourceException

getIDLength

public java.lang.Integer getIDLength()
Gets the ID Length

Returns:
Returns the ID Length

setIDLength

public void setIDLength(java.lang.Integer idLength)
                 throws javax.resource.ResourceException
Sets the idLength

Parameters:
idLength - The idLength to set
Throws:
javax.resource.ResourceException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005