oracle.cle.persistence
Class DeploymentAutoConnector

java.lang.Object
  |
  +--oracle.cle.persistence.DeploymentConnector
        |
        +--oracle.cle.persistence.DeploymentAutoConnector
Direct Known Subclasses:
Handler

public abstract class DeploymentAutoConnector
extends DeploymentConnector

Classes of this type can automatically get a connection via the DeploymentManager and ConnectionManager by calling the getReferenceClass() method.

See Also:
ConnectionManager, DeploymentManager

Constructor Summary
DeploymentAutoConnector()
           
 
Method Summary
 java.lang.Object getConnection()
          Call this method to get the Connection specific to the Class that this DeploymentConnector was written for.
 java.lang.Object getConnection(java.lang.Object sessionId)
          Call this method to get the Connection specific to the Class that this DeploymentConnector was written for.
 java.lang.Object getConnection(java.lang.Object sessionId, java.lang.String connectionId)
          Call this method to get the Connection specific to the Class that this DeploymentConnector was written for.
 java.lang.Object getConnection(java.util.Properties dynamicConnectionProperties)
          Call this method to get the Connection specific to the Class that this DeploymentConnector was written for.
 java.lang.Object getConnection(java.util.Properties dynamicConnectionProperties, java.lang.Object sessionId)
          Call this method to get the Connection specific to the Class that this DeploymentConnector was written for.
 java.lang.Object getConnection(java.util.Properties dynamicConnectionProperties, java.lang.Object sessionId, java.lang.String connectionId)
          Call this method to get the Connection specific to the Class that this DeploymentConnector was written for.
 java.lang.Object getConnection(java.util.Properties dynamicConnectionProperties, java.lang.String connectionId)
          Call this method to get the Connection specific to the Class that this DeploymentConnector was written for.
 java.lang.Object getConnection(java.lang.String connectionId)
          Call this method to get the Connection specific to the Class that this DeploymentConnector was written for.
abstract  java.lang.Class getReferenceClass()
          Returns the Class for which the concrete DeploymentConnector is written.
 void releaseConnection()
          Release the connection associated to the sessionId The SessionId is pickedup from the CLEUtil.sessionId.get()
 void releaseConnection(java.lang.Object sessionId)
          Release the connection associated to the sessionId
 void releaseConnection(java.lang.Object sessionId, java.lang.String connectionId)
          Release the connection associated to the sessionId
 void releaseConnection(java.lang.String connectionId)
          Release the connection associated to the sessionId and connectionId The SessionId is pickedup from the CLEUtil.sessionId.get()
 
Methods inherited from class oracle.cle.persistence.DeploymentConnector
deploymentKeyNotFound, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getDeploymentKey, getDeploymentKey, getDeploymentKey, getProvider, getProvider, providerNotSupported, releaseConnection, releaseConnection, releaseConnection, releaseConnection, releaseConnection, releaseConnection, releaseConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentAutoConnector

public DeploymentAutoConnector()
Method Detail

getReferenceClass

public abstract java.lang.Class getReferenceClass()
Returns the Class for which the concrete DeploymentConnector is written.

getConnection

public java.lang.Object getConnection(java.lang.Object sessionId)
                               throws java.lang.Exception
Call this method to get the Connection specific to the Class that this DeploymentConnector was written for.
Parameters:
sessionId - : Object the sessionId

getConnection

public java.lang.Object getConnection()
                               throws java.lang.Exception
Call this method to get the Connection specific to the Class that this DeploymentConnector was written for. The sessionId from CLEUtil.sessionId.get() is used.

getConnection

public java.lang.Object getConnection(java.lang.Object sessionId,
                                      java.lang.String connectionId)
                               throws java.lang.Exception
Call this method to get the Connection specific to the Class that this DeploymentConnector was written for. Only specify a connectionId for the second, third, etc. connection of the same type, i.e. for the first connection it is recommended to use the equivalent method without the connectionId argument. This will give a better performance.
Parameters:
sessionId - : Object the sessionId
connectionId - : an identifier to differentiate between multiple connections of the same type. E.g. "1".

getConnection

public java.lang.Object getConnection(java.lang.String connectionId)
                               throws java.lang.Exception
Call this method to get the Connection specific to the Class that this DeploymentConnector was written for. Only specify a connectionId for the second, third, etc. connection of the same type, i.e. for the first connection it is recommended to use the equivalent method without the connectionId argument. This will give a better performance. The sessionId from CLEUtil.sessionId.get() is used.
Overrides:
getConnection in class DeploymentConnector
Parameters:
connectionId - : an identifier to differentiate between multiple connections of the same type. E.g. "1".

getConnection

public java.lang.Object getConnection(java.util.Properties dynamicConnectionProperties,
                                      java.lang.Object sessionId)
                               throws java.lang.Exception
Call this method to get the Connection specific to the Class that this DeploymentConnector was written for. Pass in the specific properties with spezialized values which will overwrite the default values
Parameters:
dynamicConnectionProperties - : Properties the dynamic properties
sessionId - : Object the sessionId

getConnection

public java.lang.Object getConnection(java.util.Properties dynamicConnectionProperties)
                               throws java.lang.Exception
Call this method to get the Connection specific to the Class that this DeploymentConnector was written for. Pass in the specific properties with spezialized values which will overwrite the default values The sessionId from CLEUtil.sessionId.get() is used.
Parameters:
dynamicConnectionProperties - : Properties the dynamic properties

getConnection

public java.lang.Object getConnection(java.util.Properties dynamicConnectionProperties,
                                      java.lang.Object sessionId,
                                      java.lang.String connectionId)
                               throws java.lang.Exception
Call this method to get the Connection specific to the Class that this DeploymentConnector was written for. Pass in the specific properties with spezialized values which will overwrite the default values. Only specify a connectionId for the second, third, etc. connection of the same type, i.e. for the first connection it is recommended to use the equivalent method without the connectionId argument. This will give a better performance.
Parameters:
dynamicConnectionProperties - : Properties the dynamic properties
sessionId - : Object the sessionId
connectionId - : an identifier to differentiate between multiple connections of the same type. E.g. "1".

getConnection

public java.lang.Object getConnection(java.util.Properties dynamicConnectionProperties,
                                      java.lang.String connectionId)
                               throws java.lang.Exception
Call this method to get the Connection specific to the Class that this DeploymentConnector was written for. Pass in the specific properties with spezialized values which will overwrite the default values. Only specify a connectionId for the second, third, etc. connection of the same type, i.e. for the first connection it is recommended to use the equivalent method without the connectionId argument. This will give a better performance. The sessionId from CLEUtil.sessionId.get() is used.
Parameters:
dynamicConnectionProperties - : Properties the dynamic properties
connectionId - : an identifier to differentiate between multiple connections of the same type. E.g. "1".

releaseConnection

public void releaseConnection(java.lang.Object sessionId)
                       throws java.lang.Exception
Release the connection associated to the sessionId

releaseConnection

public void releaseConnection()
                       throws java.lang.Exception
Release the connection associated to the sessionId The SessionId is pickedup from the CLEUtil.sessionId.get()

releaseConnection

public void releaseConnection(java.lang.Object sessionId,
                              java.lang.String connectionId)
                       throws java.lang.Exception
Release the connection associated to the sessionId

releaseConnection

public void releaseConnection(java.lang.String connectionId)
                       throws java.lang.Exception
Release the connection associated to the sessionId and connectionId The SessionId is pickedup from the CLEUtil.sessionId.get()
Overrides:
releaseConnection in class DeploymentConnector
Parameters:
connectionId -  


Copyright © 2003 ORACLE Corp. All Rights Reserved.