org.wso2.carbon.registry.core.jdbc.dataaccess
Class JDBCDAOManager

java.lang.Object
  extended by org.wso2.carbon.registry.core.jdbc.dataaccess.JDBCDAOManager
All Implemented Interfaces:
DAOManager

public class JDBCDAOManager
extends Object
implements DAOManager

An implementation of DAOManager to obtain access to the object representations of various data stored on a back-end JDBC-based database.


Constructor Summary
JDBCDAOManager()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCDAOManager

public JDBCDAOManager()
Method Detail

getAssociationDAO

public AssociationDAO getAssociationDAO()
Description copied from interface: DAOManager
Method to obtain an instance of an association data access object.

Specified by:
getAssociationDAO in interface DAOManager
Returns:
instance of the association data access object implementation.

getCommentsDAO

public CommentsDAO getCommentsDAO(boolean isVersioned)
Description copied from interface: DAOManager
Method to obtain an instance of a comments data access object.

Specified by:
getCommentsDAO in interface DAOManager
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

public RatingsDAO getRatingsDAO(boolean isVersioned)
Description copied from interface: DAOManager
Method to obtain an instance of a ratings data access object.

Specified by:
getRatingsDAO in interface DAOManager
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

public TagsDAO getTagsDAO(boolean isVersioned)
Description copied from interface: DAOManager
Method to obtain an instance of a tags data access object.

Specified by:
getTagsDAO in interface DAOManager
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

public LogsDAO getLogsDAO()
Description copied from interface: DAOManager
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.

Specified by:
getLogsDAO in interface DAOManager
Returns:
instance of the logs data access object implementation.

getResourceDAO

public ResourceDAO getResourceDAO()
Description copied from interface: DAOManager
Method to obtain an instance of a resource data access object.

Specified by:
getResourceDAO in interface DAOManager
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 DAOManager.getResourceVersionDAO() method. Automatic versioning of resources can be disabled by setting a parameter on the XML-based registry configuration.

getResourceVersionDAO

public ResourceVersionDAO getResourceVersionDAO()
Description copied from interface: DAOManager
Method to obtain an instance of a versioned-resource data access object.

Specified by:
getResourceVersionDAO in interface DAOManager
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 DAOManager.getResourceDAO() method. Automatic versioning of resources can be enabled by setting a parameter on the XML-based registry configuration.


Copyright © 2012 WSO2 Inc. All Rights Reserved.