FileDocCategorySizeDatePackage
SlaveCache.javaAPI DocExample1197Sun Mar 02 16:22:10 GMT 2003com.mediamania.hotcache

SlaveCache

public class SlaveCache extends AbstractCache implements com.mediamania.hotcache.CacheAccess

Fields Summary
Constructors Summary
public SlaveCache()
Creates a new instance of SlaveCache. The SlaveCache performs lookups of the database and manages a cache of Movie.

    
Methods Summary
public voidexecute()

    
protected static java.util.MapgetPropertyOverrides()

        Map overrides = new HashMap();
        overrides.put ("javax.jdo.options.NontransactionalRead", "true");
        overrides.put ("javax.jdo.options.NontransactionalWrite", "true");
        return overrides;
    
public voidupdateWebSite(java.lang.String title, java.lang.String website)
Update the Movie website in the cache, only if it is already there. The datastore will be updated by the MasterCache.

param
title the title of the movie
param
website the new website for the movie

        Movie movie = (Movie)cache.get (title);
        if (movie == null) 
            return;
        movie.setWebSite (website);