net.wotonomy.jdbcadaptor
Class JDBCContext

java.lang.Object
  extended by net.wotonomy.access.EOAdaptorContext
      extended by net.wotonomy.jdbcadaptor.JDBCContext

public class JDBCContext
extends net.wotonomy.access.EOAdaptorContext

Concrete implementation of EOAdaptorContext for use with JDBC.

Version:
$Revision: 903 $
Author:
ezamudio@nasoft.com, $Author: cgruber $

Field Summary
protected  java.sql.Connection _jdbcConnection
           
 
Fields inherited from class net.wotonomy.access.EOAdaptorContext
_adaptor, _channels, _hasOpenTransaction, AdaptorContextBeginTransactionNotification, AdaptorContextCommitTransactionNotification, AdaptorContextRollbackTransactionNotification
 
Constructor Summary
JDBCContext(net.wotonomy.access.EOAdaptor adaptor)
          Creates a new instance.
 
Method Summary
 void beginTransaction()
           
 void commitTransaction()
           
 void connect()
           
 java.sql.Connection connection()
           
 net.wotonomy.access.EOAdaptorChannel createAdaptorChannel()
           
 void disconnect()
           
 void handleDroppedConnection()
           
 void rollbackTransaction()
           
 
Methods inherited from class net.wotonomy.access.EOAdaptorContext
adaptor, channels, hasBusyChannels, hasOpenChannels, hasOpenTransaction, transactionDidBegin, transactionDidCommit, transactionDidRollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_jdbcConnection

protected java.sql.Connection _jdbcConnection
Constructor Detail

JDBCContext

public JDBCContext(net.wotonomy.access.EOAdaptor adaptor)
Creates a new instance.

Parameters:
adaptor - The adaptor this context belongs to.
Method Detail

connect

public void connect()
             throws JDBCAdaptorException
Throws:
JDBCAdaptorException

disconnect

public void disconnect()
                throws JDBCAdaptorException
Throws:
JDBCAdaptorException

connection

public java.sql.Connection connection()

beginTransaction

public void beginTransaction()
Specified by:
beginTransaction in class net.wotonomy.access.EOAdaptorContext

commitTransaction

public void commitTransaction()
Specified by:
commitTransaction in class net.wotonomy.access.EOAdaptorContext

rollbackTransaction

public void rollbackTransaction()
Specified by:
rollbackTransaction in class net.wotonomy.access.EOAdaptorContext

createAdaptorChannel

public net.wotonomy.access.EOAdaptorChannel createAdaptorChannel()
Specified by:
createAdaptorChannel in class net.wotonomy.access.EOAdaptorContext

handleDroppedConnection

public void handleDroppedConnection()
Specified by:
handleDroppedConnection in class net.wotonomy.access.EOAdaptorContext


Copyright © 2006 null. All Rights Reserved.