org.dspace.browse
Interface ItemCountDAO

All Known Implementing Classes:
ItemCountDAOOracle, ItemCountDAOPostgres

public interface ItemCountDAO

Interface for data access of cached community and collection item count information

Author:
Richard Jones

Method Summary
 void collectionCount(Collection collection, int count)
          Set the given count as the number of items in the given collection
 void communityCount(Community community, int count)
          Set the given count as the number of items in the given community
 int getCount(DSpaceObject dso)
          Get the number of items in the given DSpaceObject container.
 void remove(DSpaceObject dso)
          Remove any cached data regarding the given DSpaceObject container.
 void setContext(Context context)
          Set the DSpace Context to use during data access
 

Method Detail

setContext

void setContext(Context context)
                throws ItemCountException
Set the DSpace Context to use during data access

Parameters:
context -
Throws:
ItemCountException

communityCount

void communityCount(Community community,
                    int count)
                    throws ItemCountException
Set the given count as the number of items in the given community

Parameters:
community -
count -
Throws:
ItemCountException

collectionCount

void collectionCount(Collection collection,
                     int count)
                     throws ItemCountException
Set the given count as the number of items in the given collection

Parameters:
collection -
count -
Throws:
ItemCountException

getCount

int getCount(DSpaceObject dso)
             throws ItemCountException
Get the number of items in the given DSpaceObject container. This method will only succeed if the DSpaceObject is an instance of either a Community or a Collection. Otherwise it will throw an exception

Parameters:
dso -
Returns:
Throws:
ItemCountException

remove

void remove(DSpaceObject dso)
            throws ItemCountException
Remove any cached data regarding the given DSpaceObject container. This method will only succeed if the DSpaceObject is an instance of either a Community or a Collection. Otherwise it will throw an exception

Parameters:
dso -
Throws:
ItemCountException


Copyright © 2010 DuraSpace. All Rights Reserved.