org.outerj.daisy.cache
Interface DocumentCache

All Known Implementing Classes:
DocumentCacheImpl

public interface DocumentCache

The service that caches Documents.


Method Summary
 void clear()
          Clears the entire cache.
 org.outerj.daisy.repository.commonimpl.DocumentImpl get(long documentId, long branchId, long languageId)
          Returns the cached Document, or null if it is not in the cache.
 org.outerj.daisy.repository.AvailableVariants getAvailableVariants(long documentId)
           
 void put(long documentId, org.outerj.daisy.repository.AvailableVariants availableVariants)
           
 void put(long documentId, long branchId, long languageId, org.outerj.daisy.repository.commonimpl.DocumentImpl document)
           
 void remove(long documentId)
          Removes all cached variants of the document.
 void remove(long documentId, long branchId, long languageId)
          Removes a cached Document, or does nothing if it is not in the cache.
 void removeAvailableVariants(long documentId)
           
 

Method Detail

put

public void put(long documentId,
                long branchId,
                long languageId,
                org.outerj.daisy.repository.commonimpl.DocumentImpl document)

get

public org.outerj.daisy.repository.commonimpl.DocumentImpl get(long documentId,
                                                               long branchId,
                                                               long languageId)
Returns the cached Document, or null if it is not in the cache.


remove

public void remove(long documentId,
                   long branchId,
                   long languageId)
Removes a cached Document, or does nothing if it is not in the cache.


remove

public void remove(long documentId)
Removes all cached variants of the document.


clear

public void clear()
Clears the entire cache. Should only be used exceptionally to avoid performance drops.


put

public void put(long documentId,
                org.outerj.daisy.repository.AvailableVariants availableVariants)

getAvailableVariants

public org.outerj.daisy.repository.AvailableVariants getAvailableVariants(long documentId)

removeAvailableVariants

public void removeAvailableVariants(long documentId)


Copyright © -2005 . All Rights Reserved.