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 Summary
Modifier and TypeMethodDescriptionvoidcloseConnection(Connection conn) getConnection(String dsName) This method should return the default datasource of the applicationgetDatasource(String dsname) This method should look up the datasouce by the datasource name and return.org.exoplatform.services.transaction.TransactionServiceThis method should return the transaction service
-
Method Details
-
getDatasource
This method should return the default datasource of the application- Returns:
- Throws:
Exception
-
getDatasource
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
- Throws:
Exception
-
getConnection
- Throws:
Exception
-
closeConnection
- Throws:
Exception
-
getTransactionService
This method should return the transaction service- Returns:
- Throws:
Exception
-