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

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

public class DirectorBean
extends java.lang.Object

This is a UI bean that represents a director.


Constructor Summary
DirectorBean()
           
 
Method Summary
 void clear()
          Clears the director.
 java.lang.String create()
          Creates a director object with current attributes
 java.lang.String delete()
          Deletes the current director from the database
 java.util.Date getBirth()
           
 java.util.Date getDeath()
           
 int getId()
           
 org.ow2.opensuit.samples.movies_db.model.to.MovieTO[] getMovies()
           
 java.lang.String getName()
           
 java.lang.String getNationality()
           
 void load(javax.servlet.http.HttpServletRequest iRequest)
          Loads a director from the request parameted 'id'.
 void reset()
          Resets changes made to the current director attributes.
 java.lang.String save()
          Saves the current director with changes.
 void setBirth(java.util.Date birth)
           
 void setDeath(java.util.Date death)
           
 void setName(java.lang.String name)
           
 void setNationality(java.lang.String nationality)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectorBean

public DirectorBean()
Method Detail

load

public void load(javax.servlet.http.HttpServletRequest iRequest)
          throws org.ow2.opensuit.core.error.LocalizedError
Loads a director from the request parameted 'id'.

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

save

public java.lang.String save()
                      throws org.ow2.opensuit.core.error.LocalizedError
Saves the current director with changes.

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

create

public java.lang.String create()
                        throws org.ow2.opensuit.core.error.LocalizedError
Creates a director object with current attributes

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

delete

public java.lang.String delete()
                        throws org.ow2.opensuit.core.error.LocalizedError
Deletes the current director from the database

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

reset

public void reset()
Resets changes made to the current director attributes.


clear

public void clear()
Clears the director.


getId

public int getId()

getBirth

public java.util.Date getBirth()

setBirth

public void setBirth(java.util.Date birth)

getDeath

public java.util.Date getDeath()

setDeath

public void setDeath(java.util.Date death)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getNationality

public java.lang.String getNationality()

setNationality

public void setNationality(java.lang.String nationality)

getMovies

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


Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.