org.ow2.opensuit.samples.movies_db.uibeans
Class ListOfDirectorsBean1
java.lang.Object
org.ow2.opensuit.samples.movies_db.uibeans.ListOfDirectorsBean1
public class ListOfDirectorsBean1
- extends java.lang.Object
This bean holds a list of directors.
It initializes itself by loading all directors 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).
|
Method Summary |
org.ow2.opensuit.samples.movies_db.model.to.PersonTO[] |
getDirectors()
|
void |
loadAll()
Loads all directors from the database |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListOfDirectorsBean1
public ListOfDirectorsBean1()
loadAll
public void loadAll()
throws org.ow2.opensuit.core.error.LocalizedError
- Loads all directors from the database
- Throws:
org.ow2.opensuit.core.error.LocalizedError
getDirectors
public org.ow2.opensuit.samples.movies_db.model.to.PersonTO[] getDirectors()
Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.