org.perfectjpattern.example.datamodel
Class Movie

java.lang.Object
  extended by org.perfectjpattern.example.datamodel.Movie

public class Movie
extends Object

Movie Data model object

Version:
$Revision: 1.0 $Date: Feb 11, 2009 11:51:40 AM $
Author:
Giovanni Azua
 

Constructor Summary
Movie()
           
Movie(String aDirector, String aTitle, int aYear)
           
 
Method Summary
 String getDirector()
          Returns the director
 Long getId()
          Returns the id
 String getTitle()
          Returns the title
 int getYear()
          Returns the year
 void setDirector(String anDirector)
          Sets the director
 void setId(Long anId)
          Sets the id
 void setTitle(String anTitle)
          Sets the title
 void setYear(int anYear)
          Sets the year
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Movie

public Movie()

Movie

public Movie(String aDirector,
             String aTitle,
             int aYear)
Method Detail

getId

public final Long getId()
Returns the id

Returns:
the id

setId

public final void setId(Long anId)
Sets the id

Parameters:
anId - the id to set

getDirector

public final String getDirector()
Returns the director

Returns:
the director

setDirector

public final void setDirector(String anDirector)
Sets the director

Parameters:
anDirector - the director to set

getTitle

public final String getTitle()
Returns the title

Returns:
the title

setTitle

public final void setTitle(String anTitle)
Sets the title

Parameters:
anTitle - the title to set

getYear

public final int getYear()
Returns the year

Returns:
the year

setYear

public final void setYear(int anYear)
Sets the year

Parameters:
anYear - the year to set


Copyright © 2007-2009. All Rights Reserved.