org.firebirdsql.jca
Class FBConnectionRequestInfo

java.lang.Object
  extended byorg.firebirdsql.jca.FBConnectionRequestInfo
All Implemented Interfaces:
javax.resource.spi.ConnectionRequestInfo, javax.resource.cci.ConnectionSpec, java.io.Serializable

public class FBConnectionRequestInfo
extends java.lang.Object
implements javax.resource.spi.ConnectionRequestInfo, javax.resource.cci.ConnectionSpec, java.io.Serializable

The class FBConnectionRequestInfo holds a clumplet that is used to store and transfer connection-specific information such as user, password, and other dpb information..

Version:
1.0
Author:
David Jencks
See Also:
Serialized Form

Method Summary
 FBConnectionRequestInfo deepCopy()
           
 boolean equals(java.lang.Object other)
          Checks whether this instance is equal to another.
 DatabaseParameterBuffer getDpb()
           
 int getIntProperty(int type)
           
 java.lang.String getPassword()
           
 java.lang.String getStringProperty(int type)
           
 java.lang.String getUser()
           
 boolean hasArgument(int type)
           
 int hashCode()
          Returns the hashCode of the ConnectionRequestInfo.
static FBConnectionRequestInfo newInstance(GDS gds)
           
 void setPassword(java.lang.String password)
           
 void setProperty(int type)
           
 void setProperty(int type, byte[] content)
           
 void setProperty(int type, int content)
           
 void setProperty(int type, java.lang.String content)
           
 void setUser(java.lang.String user)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static FBConnectionRequestInfo newInstance(GDS gds)

deepCopy

public FBConnectionRequestInfo deepCopy()

getDpb

public DatabaseParameterBuffer getDpb()

setProperty

public void setProperty(int type,
                        java.lang.String content)

setProperty

public void setProperty(int type)

setProperty

public void setProperty(int type,
                        int content)

setProperty

public void setProperty(int type,
                        byte[] content)

getStringProperty

public java.lang.String getStringProperty(int type)

getIntProperty

public int getIntProperty(int type)

hasArgument

public boolean hasArgument(int type)

setUser

public void setUser(java.lang.String user)

getUser

public java.lang.String getUser()

setPassword

public void setPassword(java.lang.String password)

getPassword

public java.lang.String getPassword()

equals

public boolean equals(java.lang.Object other)
Checks whether this instance is equal to another. Since connectionRequestInfo is defined specific to a resource adapter, the resource adapter is required to implement this method. The conditions for equality are specific to the resource adapter. Overrides: equals in class java.lang.Object Returns: True if the two instances are equal.

Specified by:
equals in interface javax.resource.spi.ConnectionRequestInfo

hashCode

public int hashCode()
Returns the hashCode of the ConnectionRequestInfo. Overrides: hashCode in class java.lang.Object Returns: hash code os this instance

Specified by:
hashCode in interface javax.resource.spi.ConnectionRequestInfo


Copyright © 2001 David Jencks and other authors. All rights reserved.