org.dspace.browse
Class BrowseDAOFactory

java.lang.Object
  extended by org.dspace.browse.BrowseDAOFactory

public class BrowseDAOFactory
extends Object

Factory class to generate DAOs based on the configuration

Author:
Richard Jones

Constructor Summary
BrowseDAOFactory()
           
 
Method Summary
static BrowseCreateDAO getCreateInstance(Context context)
          Get an instance of the relevant Write Only DAO class, which will conform to the BrowseCreateDAO interface
static BrowseDAO getInstance(Context context)
          Get an instance of the relevant Read Only DAO class, which will conform to the BrowseDAO interface
static BrowseItemDAO getItemInstance(Context context)
          Get an instance of the relevant Read Only DAO class, which will conform to the BrowseItemDAO interface
static BrowseDAOUtils getUtils(Context context)
          Get an instance of the relevant DAO Utilities class, which will conform to the BrowseDAOUtils interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowseDAOFactory

public BrowseDAOFactory()
Method Detail

getInstance

public static BrowseDAO getInstance(Context context)
                             throws BrowseException
Get an instance of the relevant Read Only DAO class, which will conform to the BrowseDAO interface

Parameters:
context - the DSpace context
Returns:
the relevant DAO
Throws:
BrowseException

getCreateInstance

public static BrowseCreateDAO getCreateInstance(Context context)
                                         throws BrowseException
Get an instance of the relevant Write Only DAO class, which will conform to the BrowseCreateDAO interface

Parameters:
context - the DSpace context
Returns:
the relevant DAO
Throws:
BrowseException

getItemInstance

public static BrowseItemDAO getItemInstance(Context context)
                                     throws BrowseException
Get an instance of the relevant Read Only DAO class, which will conform to the BrowseItemDAO interface

Parameters:
context - the DSpace context
Returns:
the relevant DAO
Throws:
BrowseException

getUtils

public static BrowseDAOUtils getUtils(Context context)
                               throws BrowseException
Get an instance of the relevant DAO Utilities class, which will conform to the BrowseDAOUtils interface

Parameters:
context - the DSpace context
Returns:
the relevant DAO
Throws:
BrowseException


Copyright © 2010 DuraSpace. All Rights Reserved.