com.bankframe.ei.txnhandler.connector.jdbcconnector
Class JDBCManagedConnection

java.lang.Object
  |
  +--com.bankframe.ei.txnhandler.connector.jdbcconnector.JDBCManagedConnection
All Implemented Interfaces:
EManagedConnection

public class JDBCManagedConnection
extends java.lang.Object
implements EManagedConnection

This class represents a physical connection to JDBC.


Field Summary
 java.lang.String mode
           
 
Constructor Summary
JDBCManagedConnection()
          Default MQManagedConnection constructor.
JDBCManagedConnection(EManagedConnectionFactory emanagedconnectionfactory, java.sql.Connection connection)
          JDBCManagedConnection constructor with EManagedConnectionFactory argument.
JDBCManagedConnection(java.lang.String type)
          JDBCManagedConnection constructor with String argument
 
Method Summary
 void addConnectionEventListener(EConnectionEventListener econnectioneventlistener)
          This method adds an event listener to this managed connection's list of listeners.
 boolean checkIfDestroyed()
          This method checks to see if the connection is destroyed.
 void cleanup()
          This method will close any live connections still associated with the managed connection.
 void destroy()
          This method will close any live connections still associated with the managed connection.
 java.lang.Object getConnection()
          This method creates a new connection handle for the underlying physical connection represented by the EManagedConnection instance.
 java.lang.String getConnectorType()
          This method will return the type of connection
 java.lang.Object getPhysicalConnection()
           
 void removeConnectionEventListener(EConnectionEventListener econnectioneventlistener)
          This connection removes a specified event listener from it's list.
 void setConnectorType(java.lang.String type)
          This method sets the connection type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mode

public java.lang.String mode
Constructor Detail

JDBCManagedConnection

public JDBCManagedConnection()
Default MQManagedConnection constructor.


JDBCManagedConnection

public JDBCManagedConnection(EManagedConnectionFactory emanagedconnectionfactory,
                             java.sql.Connection connection)
JDBCManagedConnection constructor with EManagedConnectionFactory argument.

Parameters:
emanagedconnectionfactory - The EManagedConnectionFactory instance associated with this connection.
connection - the connection.

JDBCManagedConnection

public JDBCManagedConnection(java.lang.String type)
JDBCManagedConnection constructor with String argument

Parameters:
type - the type of connection
Method Detail

addConnectionEventListener

public void addConnectionEventListener(EConnectionEventListener econnectioneventlistener)
This method adds an event listener to this managed connection's list of listeners.

Specified by:
addConnectionEventListener in interface EManagedConnection
Parameters:
econnectioneventlistener - The listener to be added to this list.

checkIfDestroyed

public boolean checkIfDestroyed()
This method checks to see if the connection is destroyed.

Returns:
true or false

cleanup

public void cleanup()
This method will close any live connections still associated with the managed connection. not used.

Specified by:
cleanup in interface EManagedConnection

destroy

public void destroy()
This method will close any live connections still associated with the managed connection. not used.

Specified by:
destroy in interface EManagedConnection

getConnection

public java.lang.Object getConnection()
This method creates a new connection handle for the underlying physical connection represented by the EManagedConnection instance.

Specified by:
getConnection in interface EManagedConnection
Returns:
A new connection handle.

getConnectorType

public java.lang.String getConnectorType()
This method will return the type of connection

Returns:
String the connection type

getPhysicalConnection

public java.lang.Object getPhysicalConnection()

removeConnectionEventListener

public void removeConnectionEventListener(EConnectionEventListener econnectioneventlistener)
This connection removes a specified event listener from it's list.

Specified by:
removeConnectionEventListener in interface EManagedConnection
Parameters:
econnectioneventlistener - The listener to remove from the list.

setConnectorType

public void setConnectorType(java.lang.String type)
This method sets the connection type.

Parameters:
type - the connection type.


Copyright © 2005 Siebel Systems, Inc. All rights reserved.