FileDocCategorySizeDatePackage
UpdateWebSite.javaAPI DocExample885Tue Dec 24 13:29:12 GMT 2002com.mediamania.prototype

UpdateWebSite

public class UpdateWebSite extends com.mediamania.MediaManiaApp

Fields Summary
private String
movieTitle
private String
newWebSite
Constructors Summary
public UpdateWebSite(String title, String site)

        movieTitle = title;
        newWebSite = site;
    
Methods Summary
public voidexecute()

        Movie movie = PrototypeQueries.getMovie(pm, movieTitle);
        if( movie == null ){
            System.err.print("Could not access movie with title of ");
            System.err.println(movieTitle);
            return;
        }
        movie.setWebSite(newWebSite);
    
public static voidmain(java.lang.String[] args)

        String title = args[0];
        String website = args[1];
        UpdateWebSite update = new UpdateWebSite(title, website);
        update.executeTransaction();