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

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.connector.jdbcconnector.JDBCConnection
All Implemented Interfaces:
EConnection

public class JDBCConnection
extends java.lang.Object
implements EConnection

JDBCConnection is an implementation of the interface EConnection. It represents an application-level handle that is used by a client such as EJB to access a database. The actual physical connection associated with a JDBCConnection instance is represented by a JDBCConnectionConnection instance.

A client gets a JDBCConnection instance by using the getConnection method on a JDBCConnectionFactory instance.


Field Summary
static java.lang.String CONNECTOR_NAME
           
 
Constructor Summary
JDBCConnection()
          JDBCConnection constructor without arguments.
JDBCConnection(JDBCManagedConnection jdbcmanagedconnection)
          JDBCConnection constructor with a Managed Connection as an argument.
 
Method Summary
 void close()
          This method informs ManagedConnection the connection is closed from this class.
 java.util.Vector makeSQLQuery(java.sql.Connection con, java.lang.String sqlString)
          This method is used to do a database query
 java.util.Vector makeSQLUpdate(java.sql.Connection con, java.lang.String sqlString)
          This method is used to preform an database update
 java.lang.Object post(java.lang.Object obj)
          This method is where the request gets passed to the Database.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTOR_NAME

public static java.lang.String CONNECTOR_NAME
Constructor Detail

JDBCConnection

public JDBCConnection()
JDBCConnection constructor without arguments.


JDBCConnection

public JDBCConnection(JDBCManagedConnection jdbcmanagedconnection)
JDBCConnection constructor with a Managed Connection as an argument.

Parameters:
jdbcmanagedconnection - a JDBCManagedConnection
Method Detail

close

public void close()
This method informs ManagedConnection the connection is closed from this class. So the connector will be sent back to the pool.

Specified by:
close in interface EConnection

makeSQLQuery

public java.util.Vector makeSQLQuery(java.sql.Connection con,
                                     java.lang.String sqlString)
                              throws java.lang.Exception
This method is used to do a database query

Parameters:
con - a JDBC Connection
sqlString - a String containing the sql command
Returns:
the database response
Throws:
java.lang.Exception

makeSQLUpdate

public java.util.Vector makeSQLUpdate(java.sql.Connection con,
                                      java.lang.String sqlString)
                               throws java.lang.Exception
This method is used to preform an database update

Parameters:
con - a JDBC Connection
sqlString - a String containing the sql command
Returns:
the database response
Throws:
java.lang.Exception

post

public java.lang.Object post(java.lang.Object obj)
                      throws ProcessingErrorException
This method is where the request gets passed to the Database.

Specified by:
post in interface EConnection
Parameters:
obj - An object representing a transaction that will be forwarded on to the host system by the Connector imnplementation.
Returns:
another Object, which is a Vector of String's in this implementation
Throws:
ProcessingErrorException - if an error occurs


Copyright © 2005, 2007, Oracle. All rights reserved.