org.wso2.carbon.registry.core.dataaccess
Interface DataAccessManager

All Known Implementing Classes:
JDBCDataAccessManager

public interface DataAccessManager

This describes a an instance of the manager class that can be used to obtain access to the back-end database.


Method Summary
 void createDatabase()
          Method to create the database for the registry.
 ClusterLock getClusterLock()
          Method to obtain an instance of the cluster lock.
 DAOManager getDAOManager()
          Method to obtain an instance of the data access object manager.
 DatabaseTransaction getDatabaseTransaction()
          Method to obtain an instance of the database transaction.
 QueryProcessor getQueryProcessor()
          Method obtain an instance of the query processor used to run queries.
 TransactionManager getTransactionManager()
          Method to obtain an instance of the transaction manager.
 boolean isDatabaseExisting()
          Method to test whether the registry database is existing.
 

Method Detail

getClusterLock

ClusterLock getClusterLock()
Method to obtain an instance of the cluster lock.

Returns:
instance of the lock implementation.

getTransactionManager

TransactionManager getTransactionManager()
Method to obtain an instance of the transaction manager.

Returns:
instance of the transaction manager implementation.

getDatabaseTransaction

DatabaseTransaction getDatabaseTransaction()
Method to obtain an instance of the database transaction.

Returns:
instance of the database transaction implementation.

getDAOManager

DAOManager getDAOManager()
Method to obtain an instance of the data access object manager.

Returns:
instance of the data access object manager implementation.

createDatabase

void createDatabase()
                    throws RegistryException
Method to create the database for the registry.

Throws:
RegistryException - if the operation failed.

isDatabaseExisting

boolean isDatabaseExisting()
Method to test whether the registry database is existing.

Returns:
true if the database is existing or false if not.

getQueryProcessor

QueryProcessor getQueryProcessor()
Method obtain an instance of the query processor used to run queries.

Returns:
the query processor to execute sql queries.


Copyright © 2011 WSO2 Inc. All Rights Reserved.