FileDocCategorySizeDatePackage
MasterCache.javaAPI DocExample1190Sun Mar 02 16:21:16 GMT 2003com.mediamania.hotcache

MasterCache

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

Fields Summary
Constructors Summary
public MasterCache()
Creates a new instance of MasterCache. The MasterCache performs updates 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.RetainValues", "true");
        return overrides;
    
public voidupdateWebSite(java.lang.String title, java.lang.String website)
Update the Movie website.

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

        Movie movie = getMovieByTitle (title);
        if (movie != null) {
            tx.begin();
            movie.setWebSite (website);
            tx.commit();
        }