org.jboss.test.jca.adapter
Class TestManagedConnectionFactory

java.lang.Object
  extended byorg.jboss.test.jca.adapter.TestManagedConnectionFactory
All Implemented Interfaces:
ManagedConnectionFactory (src) , java.io.Serializable

public class TestManagedConnectionFactory
extends java.lang.Object
implements ManagedConnectionFactory (src)

ManagedConnectionFactory.java Created: Mon Dec 31 17:01:55 2001

See Also:
Serialized Form

Constructor Summary
TestManagedConnectionFactory()
           
 
Method Summary
 java.lang.Object createConnectionFactory()
          Creates a connection factory instance.
 java.lang.Object createConnectionFactory(ConnectionManager (src)  cm)
          Creates a connection factory instance.
 ManagedConnection (src) createManagedConnection(javax.security.auth.Subject subject, ConnectionRequestInfo (src)  cri)
          Creates a new ManagedConnection
 boolean equals(java.lang.Object other)
          Tests object for equality
 java.lang.Boolean getBooleanProperty()
          Get the BooleanProperty value.
 java.lang.Integer getDefaultIntegerProperty()
          Get the DefaultIntegerProperty value.
 java.lang.Double getDoubleProperty()
          Get the DoubleProperty value.
 java.lang.Integer getIntegerProperty()
          Get the IntegerProperty value.
 java.io.PrintWriter getLogWriter()
          Gets the logwriter for this instance.
 java.lang.Long getLongProperty()
          Get the LongProperty value.
 java.net.URL getUrlProperty()
          Get the UrlProperty value.
 int hashCode()
          Generates a hashCode for this object
 ManagedConnection (src) matchManagedConnections(java.util.Set candidates, javax.security.auth.Subject subject, ConnectionRequestInfo (src)  cri)
          Describe matchManagedConnections method here.
 void setBooleanProperty(java.lang.Boolean booleanProperty)
          Set the BooleanProperty value.
 void setDefaultIntegerProperty(java.lang.Integer defaultIntegerProperty)
          Set the DefaultIntegerProperty value.
 void setDoubleProperty(java.lang.Double doubleProperty)
          Set the DoubleProperty value.
 void setFailure(java.lang.String failure)
           
 void setIntegerProperty(java.lang.Integer integerProperty)
          Set the IntegerProperty value.
 void setLogWriter(java.io.PrintWriter param1)
          Sets the logwriter for this instance.
 void setLongProperty(java.lang.Long longProperty)
          Set the LongProperty value.
 void setUrlProperty(java.net.URL urlProperty)
          Set the UrlProperty value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestManagedConnectionFactory

public TestManagedConnectionFactory()
Method Detail

setFailure

public void setFailure(java.lang.String failure)

hashCode

public int hashCode()
Description copied from interface: ManagedConnectionFactory (src)
Generates a hashCode for this object

Specified by:
hashCode in interface ManagedConnectionFactory (src)
Returns:

equals

public boolean equals(java.lang.Object other)
Description copied from interface: ManagedConnectionFactory (src)
Tests object for equality

Specified by:
equals in interface ManagedConnectionFactory (src)
Returns:

setLogWriter

public void setLogWriter(java.io.PrintWriter param1)
                  throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Sets the logwriter for this instance.

Specified by:
setLogWriter in interface ManagedConnectionFactory (src)
Parameters:
param1 -
Throws:
ResourceException (src) -

getLogWriter

public java.io.PrintWriter getLogWriter()
                                 throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Gets the logwriter for this instance.

Specified by:
getLogWriter in interface ManagedConnectionFactory (src)
Returns:
Throws:
ResourceException (src) -

createConnectionFactory

public java.lang.Object createConnectionFactory(ConnectionManager (src)  cm)
                                         throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Creates a connection factory instance. the connection manager is provided by the application server

Specified by:
createConnectionFactory in interface ManagedConnectionFactory (src)
Parameters:
cm - the connection manager
Returns:
Throws:
ResourceException (src) -

createConnectionFactory

public java.lang.Object createConnectionFactory()
                                         throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Creates a connection factory instance. The connection manager is provided by the resource adapter.

Specified by:
createConnectionFactory in interface ManagedConnectionFactory (src)
Returns:
Throws:
ResourceException (src) -

createManagedConnection

public ManagedConnection (src)  createManagedConnection(javax.security.auth.Subject subject,
                                                 ConnectionRequestInfo (src)  cri)
                                          throws ResourceException (src) 
Description copied from interface: ManagedConnectionFactory (src)
Creates a new ManagedConnection

Specified by:
createManagedConnection in interface ManagedConnectionFactory (src)
Parameters:
subject - the subject
cri - the connection request info
Returns:
Throws:
ResourceException (src) -

matchManagedConnections

public ManagedConnection (src)  matchManagedConnections(java.util.Set candidates,
                                                 javax.security.auth.Subject subject,
                                                 ConnectionRequestInfo (src)  cri)
                                          throws ResourceException (src) 
Describe matchManagedConnections method here.

Specified by:
matchManagedConnections in interface ManagedConnectionFactory (src)
Parameters:
candidates - a Set value
subject - a Subject value
cri - a ConnectionRequestInfo value
Returns:
a ManagedConnection value
Throws:
ResourceException (src) - if an error occurs

getIntegerProperty

public java.lang.Integer getIntegerProperty()
Get the IntegerProperty value.

Returns:
the IntegerProperty value.

setIntegerProperty

public void setIntegerProperty(java.lang.Integer integerProperty)
Set the IntegerProperty value.


getDefaultIntegerProperty

public java.lang.Integer getDefaultIntegerProperty()
Get the DefaultIntegerProperty value.

Returns:
the DefaultIntegerProperty value.

setDefaultIntegerProperty

public void setDefaultIntegerProperty(java.lang.Integer defaultIntegerProperty)
Set the DefaultIntegerProperty value.


getBooleanProperty

public java.lang.Boolean getBooleanProperty()
Get the BooleanProperty value.

Returns:
the BooleanProperty value.

setBooleanProperty

public void setBooleanProperty(java.lang.Boolean booleanProperty)
Set the BooleanProperty value.


getLongProperty

public java.lang.Long getLongProperty()
Get the LongProperty value.

Returns:
the LongProperty value.

setLongProperty

public void setLongProperty(java.lang.Long longProperty)
Set the LongProperty value.


getDoubleProperty

public java.lang.Double getDoubleProperty()
Get the DoubleProperty value.

Returns:
the DoubleProperty value.

setDoubleProperty

public void setDoubleProperty(java.lang.Double doubleProperty)
Set the DoubleProperty value.


getUrlProperty

public java.net.URL getUrlProperty()
Get the UrlProperty value. (this is a jboss specific property editor)

Returns:
the UrlProperty value.

setUrlProperty

public void setUrlProperty(java.net.URL urlProperty)
Set the UrlProperty value.