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

All Known Implementing Classes:
JDBCDAOManager

public interface DAOManager

This describes a an instance of a data access object manager class that can be used to obtain access to the object representations of various data stored on the back-end database.


Method Summary
 AssociationDAO getAssociationDAO()
          Method to obtain an instance of an association data access object.
 CommentsDAO getCommentsDAO(boolean isVersioned)
          Method to obtain an instance of a comments data access object.
 LogsDAO getLogsDAO()
          Method to obtain an instance of a logs data access object.
 RatingsDAO getRatingsDAO(boolean isVersioned)
          Method to obtain an instance of a ratings data access object.
 ResourceDAO getResourceDAO()
          Method to obtain an instance of a resource data access object.
 ResourceVersionDAO getResourceVersionDAO()
          Method to obtain an instance of a versioned-resource data access object.
 TagsDAO getTagsDAO(boolean isVersioned)
          Method to obtain an instance of a tags data access object.
 

Method Detail

getAssociationDAO

AssociationDAO getAssociationDAO()
Method to obtain an instance of an association data access object.

Returns:
instance of the association data access object implementation.

getCommentsDAO

CommentsDAO getCommentsDAO(boolean isVersioned)
Method to obtain an instance of a comments data access object.

Parameters:
isVersioned - whether the returned data access object should handle versioned data or non-versioned data. Versioning can be enabled by setting a parameter on the XML-based registry configuration.
Returns:
instance of the comments data access object implementation. If versioning has been enabled, it is mandatory to request for a versioned data access object. And, the returned data access object is only capable of handling versioned resources. Also, if versioning has been disabled, a non-versioned data access object must be requested.

getRatingsDAO

RatingsDAO getRatingsDAO(boolean isVersioned)
Method to obtain an instance of a ratings data access object.

Parameters:
isVersioned - whether the returned data access object should handle versioned data or non-versioned data. Versioning can be enabled by setting a parameter on the XML-based registry configuration.
Returns:
instance of the ratings data access object implementation. If versioning has been enabled, it is mandatory to request for a versioned data access object. And, the returned data access object is only capable of handling versioned resources. Also, if versioning has been disabled, a non-versioned data access object must be requested.

getTagsDAO

TagsDAO getTagsDAO(boolean isVersioned)
Method to obtain an instance of a tags data access object.

Parameters:
isVersioned - whether the returned data access object should handle versioned data or non-versioned data. Versioning can be enabled by setting a parameter on the XML-based registry configuration.
Returns:
instance of the tags data access object implementation. If versioning has been enabled, it is mandatory to request for a versioned data access object. And, the returned data access object is only capable of handling versioned resources. Also, if versioning has been disabled, a non-versioned data access object must be requested.

getLogsDAO

LogsDAO getLogsDAO()
Method to obtain an instance of a logs data access object. This can be used to access audit logs stored on a database, that are related to the registry operations performed.

Returns:
instance of the logs data access object implementation.

getResourceDAO

ResourceDAO getResourceDAO()
Method to obtain an instance of a resource data access object.

Returns:
instance of the resource data access object implementation. The returned data access object can only handle non-versioned resources, and should only be used when versioning has been disabled. If versioning has been enabled, use the getResourceVersionDAO() method. Automatic versioning of resources can be disabled by setting a parameter on the XML-based registry configuration.

getResourceVersionDAO

ResourceVersionDAO getResourceVersionDAO()
Method to obtain an instance of a versioned-resource data access object.

Returns:
instance of the versioned-resource data access object implementation. The returned data access object can only handle versioned resources, and should only be used when versioning has been enabled. If versioning has not been enabled, use the getResourceDAO() method. Automatic versioning of resources can be enabled by setting a parameter on the XML-based registry configuration.


Copyright © 2014 WSO2 Inc. All Rights Reserved.