org.jtheque.films.persistence.od
Class FilmImpl

java.lang.Object
  extended by org.jtheque.core.managers.persistence.Entity
      extended by org.jtheque.primary.od.abstraction.Data
          extended by org.jtheque.films.persistence.od.abstraction.Film
              extended by org.jtheque.films.persistence.od.FilmImpl
All Implemented Interfaces:
Comparable<org.jtheque.core.managers.persistence.Entity>, org.jtheque.primary.od.abstraction.Notable, org.jtheque.primary.view.impl.models.tree.Element

public final class FilmImpl
extends Film

Cette classe représente un film et toutes ses données.

Author:
Baptiste Wicht

Field Summary
 
Fields inherited from class org.jtheque.core.managers.persistence.Entity
HASHCODEPRIME
 
Constructor Summary
FilmImpl()
          Construct a new FilmImpl.
 
Method Summary
 boolean equals(Object obj)
           
 String getAffichableText()
           
 Icon getIcon()
           
 FilmTemporaryContext getTemporaryContext()
           
 boolean hasActors()
          Indicate if the film has actors or not.
 boolean hasComment()
          Indicate if the film has a comment or not.
 int hashCode()
           
 boolean hasImage()
          Indicate if the film has an image or not.
 boolean hasKinds()
          Indicate if the film has kinds or not.
 boolean hasLanguage()
          Indicate if the film has a language or not.
 boolean hasLending()
          Indicate if the film is in lending or not.
 boolean hasRealizer()
          Indicate if the film has a realizer or not.
 boolean hasResume()
          Indicate if the film has a resume or not.
 boolean hasType()
          Indicate if the film is in lending or not.
 void restoreMemento()
           
 void saveToMemento()
           
 String toString()
           
 
Methods inherited from class org.jtheque.films.persistence.od.abstraction.Film
getActors, getComment, getDuration, getFilePath, getImage, getKinds, getNote, getResume, getTheCollection, getTheLanguage, getTheLending, getTheRealizer, getTheSaga, getTheType, getTitle, getYear, setActors, setComment, setDuration, setFilePath, setImage, setKinds, setNote, setResume, setTheCollection, setTheLanguage, setTheLending, setTheRealizer, setTheSaga, setTheType, setTitle, setYear
 
Methods inherited from class org.jtheque.primary.od.abstraction.Data
getElementName
 
Methods inherited from class org.jtheque.core.managers.persistence.Entity
compareTo, getId, isSaved, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilmImpl

public FilmImpl()
Construct a new FilmImpl.

Method Detail

getTemporaryContext

public FilmTemporaryContext getTemporaryContext()
Overrides:
getTemporaryContext in class org.jtheque.core.managers.persistence.Entity

getAffichableText

public String getAffichableText()
Specified by:
getAffichableText in class org.jtheque.core.managers.persistence.Entity

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Specified by:
hashCode in class org.jtheque.core.managers.persistence.Entity

equals

public boolean equals(Object obj)
Specified by:
equals in class org.jtheque.core.managers.persistence.Entity

getIcon

public Icon getIcon()
Specified by:
getIcon in interface org.jtheque.primary.view.impl.models.tree.Element
Overrides:
getIcon in class org.jtheque.primary.od.abstraction.Data

saveToMemento

public void saveToMemento()
Overrides:
saveToMemento in class org.jtheque.core.managers.persistence.Entity

restoreMemento

public void restoreMemento()
Overrides:
restoreMemento in class org.jtheque.core.managers.persistence.Entity

hasLending

public boolean hasLending()
Indicate if the film is in lending or not.

Returns:
true if the film has a lending else false

hasType

public boolean hasType()
Indicate if the film is in lending or not.

Returns:
true if the film has a lending else false

hasKinds

public boolean hasKinds()
Indicate if the film has kinds or not.

Returns:
true if the film has kinds else false

hasActors

public boolean hasActors()
Indicate if the film has actors or not.

Returns:
true if the film has actors else false

hasLanguage

public boolean hasLanguage()
Indicate if the film has a language or not.

Returns:
true if the film has a language else false

hasRealizer

public boolean hasRealizer()
Indicate if the film has a realizer or not.

Returns:
true if the film has a realizer else false

hasResume

public boolean hasResume()
Indicate if the film has a resume or not.

Returns:
true if the film has a resume else false

hasComment

public boolean hasComment()
Indicate if the film has a comment or not.

Returns:
true if the film has a comment else false

hasImage

public boolean hasImage()
Indicate if the film has an image or not.

Returns:
true if the film has an image else false


Copyright © 2009 JTheque. All Rights Reserved.