|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.ei.txnhandler.connector.jdbcconnector.JDBCConnection
public class JDBCConnection
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 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. |
Vector |
makeSQLQuery(Connection con,
String sqlString)
This method is used to do a database query |
Vector |
makeSQLUpdate(Connection con,
String sqlString)
This method is used to preform an database update |
Object |
post(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 |
---|
public static String CONNECTOR_NAME
Constructor Detail |
---|
public JDBCConnection()
public JDBCConnection(JDBCManagedConnection jdbcmanagedconnection)
jdbcmanagedconnection
- a JDBCManagedConnectionMethod Detail |
---|
public void close()
close
in interface EConnection
public Vector makeSQLQuery(Connection con, String sqlString) throws Exception
con
- a JDBC ConnectionsqlString
- a String containing the sql command
Exception
public Vector makeSQLUpdate(Connection con, String sqlString) throws Exception
con
- a JDBC ConnectionsqlString
- a String containing the sql command
Exception
public Object post(Object obj) throws ProcessingErrorException
post
in interface EConnection
obj
- Object an Object, which is a Vector of String's in this implementation
ProcessingErrorException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |