org.ow2.opensuit.samples.movies_db.uibeans
Class ListOfMoviesBean1

java.lang.Object
  extended by org.ow2.opensuit.samples.movies_db.uibeans.ListOfMoviesBean1

public class ListOfMoviesBean1
extends java.lang.Object

This bean holds a list of movies. It initializes itself by loading all movies from the database.

This version of the bean performs the search when loading, then lets the framework manage sort and pagination. This design may only be used if you're sure the amount of data is "reasonable" and under control.

See SearchMovieBean2 for a dynamic version of it (that have the model layer manage sorting and pagination).


Constructor Summary
ListOfMoviesBean1()
           
 
Method Summary
 org.ow2.opensuit.samples.movies_db.model.to.MovieTO[] getMovies()
           
 void loadAll()
          Loads all movies from the database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListOfMoviesBean1

public ListOfMoviesBean1()
Method Detail

loadAll

public void loadAll()
             throws org.ow2.opensuit.core.error.LocalizedError
Loads all movies from the database

Throws:
org.ow2.opensuit.core.error.LocalizedError

getMovies

public org.ow2.opensuit.samples.movies_db.model.to.MovieTO[] getMovies()


Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.