com.hardcode.gdbms.engine.data.driver
Interface DBTransactionalDriver

All Known Implementing Classes:
HSQLDBTransactionalDriver

public interface DBTransactionalDriver

Interface to be implemented by those db drivers whose management system support transactions

Author:
Fernando González Cortés

Method Summary
 void beginTrans(java.sql.Connection con)
          Begins a transaction
 void commitTrans(java.sql.Connection con)
          Commits the changes made during the transaction
 void rollBackTrans(java.sql.Connection con)
          Cancels the changes made during the transaction
 

Method Detail

beginTrans

void beginTrans(java.sql.Connection con)
                throws java.sql.SQLException
Begins a transaction

Parameters:
Connection - to perform the transacion begining
Throws:
java.sql.SQLException - If the transaction could not be started

commitTrans

void commitTrans(java.sql.Connection con)
                 throws java.sql.SQLException
Commits the changes made during the transaction

Parameters:
Connection - to perform the transacion commitment
Throws:
java.sql.SQLException - If the transaction could not be commited

rollBackTrans

void rollBackTrans(java.sql.Connection con)
                   throws java.sql.SQLException
Cancels the changes made during the transaction

Parameters:
Connection - to perform the transacion rollback
Throws:
java.sql.SQLException - If the transaction could not be cancelled


Copyright © 2005-2006 . All Rights Reserved.