com.metamatrix.common.pooling.jdbc
Class JDBCConnectionResourceAdapter

java.lang.Object
  extended by com.metamatrix.common.pooling.jdbc.JDBCConnectionResourceAdapter
All Implemented Interfaces:
ResourceAdapter
Direct Known Subclasses:
SimpleJDBCConnectionResourceAdapter

public class JDBCConnectionResourceAdapter
extends java.lang.Object
implements ResourceAdapter


Constructor Summary
JDBCConnectionResourceAdapter()
           
 
Method Summary
 void closePhyicalResourceObject(Resource resource)
          Called to have the adpater have the resource object close itself.
 java.lang.Object createPhysicalResourceObject(ResourceDescriptor descriptor)
          Creates a specific resource based on the descriptor.
 Resource createResource(java.lang.Object physicalResource)
          Creates the Resource specific wrapper that will contain the physicalResource.
 boolean isDecryptRequired()
          Returns the decryptRequired.
protected  void setDecryptRequired(boolean decryptRequired)
          Sets the decryptRequired.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCConnectionResourceAdapter

public JDBCConnectionResourceAdapter()
Method Detail

createResource

public Resource createResource(java.lang.Object physicalResource)
                        throws ResourcePoolException
Description copied from interface: ResourceAdapter
Creates the Resource specific wrapper that will contain the physicalResource.

Specified by:
createResource in interface ResourceAdapter
Parameters:
physicalResource - that will be contained in the wrapper
Throws:
ResourcePoolException - if an error occurs wrapping the physical resource

createPhysicalResourceObject

public java.lang.Object createPhysicalResourceObject(ResourceDescriptor descriptor)
                                              throws ResourcePoolException
Description copied from interface: ResourceAdapter
Creates a specific resource based on the descriptor.

Specified by:
createPhysicalResourceObject in interface ResourceAdapter
Returns:
Object created by the adapter
Throws:
ResourcePoolException - if an error occurs creating the resource

closePhyicalResourceObject

public void closePhyicalResourceObject(Resource resource)
                                throws ResourcePoolException
Description copied from interface: ResourceAdapter
Called to have the adpater have the resource object close itself.

Specified by:
closePhyicalResourceObject in interface ResourceAdapter
Throws:
ResourcePoolException - if an error occurs closing resource object.

isDecryptRequired

public boolean isDecryptRequired()
Returns the decryptRequired.

Returns:
boolean

setDecryptRequired

protected void setDecryptRequired(boolean decryptRequired)
Sets the decryptRequired.

Parameters:
decryptRequired - The decryptRequired to set


Copyright © 2009. All Rights Reserved.