Interface DatabaseService

All Known Implementing Classes:
XAPoolTxSupportDatabaseService

public interface DatabaseService
Created by The eXo Platform SAS Author : Tuan Nguyen tuan08@users.sourceforge.net Apr 4, 2006 This service should provide a single interface to access the different datasource.
  • Method Details

    • getDatasource

      ExoDatasource getDatasource() throws Exception
      This method should return the default datasource of the application
      Returns:
      Throws:
      Exception
    • getDatasource

      ExoDatasource getDatasource(String dsname) throws Exception
      This method should look up the datasouce by the datasource name and return. If the datasource is not found then the method should return null
      Parameters:
      dsname -
      Returns:
      Throws:
      Exception
    • getConnection

      Connection getConnection() throws Exception
      Throws:
      Exception
    • getConnection

      Connection getConnection(String dsName) throws Exception
      Throws:
      Exception
    • closeConnection

      void closeConnection(Connection conn) throws Exception
      Throws:
      Exception
    • getTransactionService

      org.exoplatform.services.transaction.TransactionService getTransactionService() throws Exception
      This method should return the transaction service
      Returns:
      Throws:
      Exception