org.jboss.messaging.ra
Class JBMConnectionRequestInfo

java.lang.Object
  extended by org.jboss.messaging.ra.JBMConnectionRequestInfo
All Implemented Interfaces:
javax.resource.spi.ConnectionRequestInfo

public class JBMConnectionRequestInfo
extends java.lang.Object
implements javax.resource.spi.ConnectionRequestInfo

Connection request information

Version:
$Revision: $
Author:
Adrian Brock, Jesper Pedersen, Andy Taylor

Constructor Summary
JBMConnectionRequestInfo(boolean transacted, int acknowledgeMode, int type)
          Constructor
JBMConnectionRequestInfo(int type)
          Constructor
JBMConnectionRequestInfo(JBMRAProperties prop, int type)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 int getAcknowledgeMode()
          Get the acknowledge mode
 java.lang.String getClientID()
          Get the client id
 java.lang.String getPassword()
          Get the password
 int getType()
          Get the connection type
 java.lang.String getUserName()
          Get the user name
 int hashCode()
          Return the hash code for the object
 boolean isTransacted()
          Use transactions
 boolean isUseXA()
          Use XA communication
 void setClientID(java.lang.String clientID)
          Set the client id
 void setDefaults(JBMRAProperties prop)
          Fill in default values if they are missing
 void setPassword(java.lang.String password)
          Set the password
 void setUserName(java.lang.String userName)
          Set the user name
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBMConnectionRequestInfo

public JBMConnectionRequestInfo(JBMRAProperties prop,
                                int type)
Constructor

Parameters:
prop - The resource adapter properties
type - The connection type

JBMConnectionRequestInfo

public JBMConnectionRequestInfo(int type)
Constructor

Parameters:
type - The connection type

JBMConnectionRequestInfo

public JBMConnectionRequestInfo(boolean transacted,
                                int acknowledgeMode,
                                int type)
Constructor

Parameters:
transacted - Use transactions
acknowledgeMode - The acknowledge mode
type - The connection type
Method Detail

setDefaults

public void setDefaults(JBMRAProperties prop)
Fill in default values if they are missing

Parameters:
prop - The resource adapter properties

getUserName

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

Returns:
The value

setUserName

public void setUserName(java.lang.String userName)
Set the user name

Parameters:
userName - The value

getPassword

public java.lang.String getPassword()
Get the password

Returns:
The value

setPassword

public void setPassword(java.lang.String password)
Set the password

Parameters:
password - The value

getClientID

public java.lang.String getClientID()
Get the client id

Returns:
The value

setClientID

public void setClientID(java.lang.String clientID)
Set the client id

Parameters:
clientID - The value

getType

public int getType()
Get the connection type

Returns:
The type

isUseXA

public boolean isUseXA()
Use XA communication

Returns:
True if XA; otherwise false

isTransacted

public boolean isTransacted()
Use transactions

Returns:
True if transacted; otherwise false

getAcknowledgeMode

public int getAcknowledgeMode()
Get the acknowledge mode

Returns:
The mode

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

Specified by:
equals in interface javax.resource.spi.ConnectionRequestInfo
Overrides:
equals in class java.lang.Object
Parameters:
obj - Object with which to compare
Returns:
True if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Return the hash code for the object

Specified by:
hashCode in interface javax.resource.spi.ConnectionRequestInfo
Overrides:
hashCode in class java.lang.Object
Returns:
The hash code


Copyright © 2006 JBoss Inc. All Rights Reserved.