org.dspace.browse
Class ItemCountDAOOracle

java.lang.Object
  extended by org.dspace.browse.ItemCountDAOOracle
All Implemented Interfaces:
ItemCountDAO

public class ItemCountDAOOracle
extends Object
implements ItemCountDAO

Oracle driver implementing ItemCountDAO interface to cache item count information in communities and collections

Author:
Richard Jones

Constructor Summary
ItemCountDAOOracle()
           
 
Method Summary
 void collectionCount(Collection collection, int count)
          Store the count of the given collection
 void communityCount(Community community, int count)
          Store the count of the given community
 int getCount(DSpaceObject dso)
          get the count of the items in the given container
 void remove(DSpaceObject dso)
          remove the cache for the given container
 void setContext(Context context)
          Set the dspace context to use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemCountDAOOracle

public ItemCountDAOOracle()
Method Detail

collectionCount

public void collectionCount(Collection collection,
                            int count)
                     throws ItemCountException
Store the count of the given collection

Specified by:
collectionCount in interface ItemCountDAO
Parameters:
collection -
count -
Throws:
ItemCountException

communityCount

public void communityCount(Community community,
                           int count)
                    throws ItemCountException
Store the count of the given community

Specified by:
communityCount in interface ItemCountDAO
Parameters:
community -
count -
Throws:
ItemCountException

setContext

public void setContext(Context context)
                throws ItemCountException
Set the dspace context to use

Specified by:
setContext in interface ItemCountDAO
Parameters:
context -
Throws:
ItemCountException

getCount

public int getCount(DSpaceObject dso)
             throws ItemCountException
get the count of the items in the given container

Specified by:
getCount in interface ItemCountDAO
Parameters:
dso -
Returns:
Throws:
ItemCountException

remove

public void remove(DSpaceObject dso)
            throws ItemCountException
remove the cache for the given container

Specified by:
remove in interface ItemCountDAO
Parameters:
dso -
Throws:
ItemCountException


Copyright © 2010 DuraSpace. All Rights Reserved.