FileDocCategorySizeDatePackage
CreateMovie.javaAPI DocExample656Tue Dec 24 13:49:14 GMT 2002com.mediamania.prototype

CreateMovie

public class CreateMovie extends com.mediamania.MediaManiaApp

Fields Summary
Constructors Summary
Methods Summary
public voidexecute()

        Calendar cal = Calendar.getInstance();
        cal.clear();
        cal.set(Calendar.YEAR, 1997);
        Date date = cal.getTime();

        Movie movie = new Movie("Titanic", date, 194, "PG-13",
                                "historical, drama");
        pm.makePersistent(movie);
    
public static voidmain(java.lang.String[] args)

        CreateMovie createMovie = new CreateMovie();
        createMovie.executeTransaction();