FileDocCategorySizeDatePackage
PrintActors.javaAPI DocExample721Tue Dec 24 13:49:14 GMT 2002com.mediamania.prototype

PrintActors

public class PrintActors extends com.mediamania.MediaManiaApp

Fields Summary
Constructors Summary
Methods Summary
public voidexecute()

public static voidmain(java.lang.String[] args)

    PrintActors actors = new PrintActors();
    actors.print();
public voidprint()

    Transaction tx = pm.currentTransaction();
    tx.begin();
    Extent extent = pm.getExtent(Actor.class, true);
    Iterator iter = extent.iterator();
    while( iter.hasNext() ){
        Actor actor = (Actor) iter.next();
        System.out.println(actor.getName());
    }
    extent.close(iter);
    tx.commit();