FileDocCategorySizeDatePackage
CacheAccess.javaAPI DocExample548Sun Mar 02 16:20:54 GMT 2003com.mediamania.hotcache

CacheAccess.java

package com.mediamania.hotcache;

import com.mediamania.prototype.Movie;

/** Manage a cache of persistent Movie instances.
 */
public interface CacheAccess {
    
    /** Get the Movie by title.
     * @param title the title of the movie
     * @return the movie instance
     */    
    Movie getMovieByTitle (String title);
    
    /** Update the Movie website.
     * @param title the title of the movie
     * @param website the new website for the movie
     */    
    void updateWebSite (String title, String website);
}