net.sf.webphotos.model
Class PhotoVO

java.lang.Object
  extended by net.sf.webphotos.entity.PhotoEntity
      extended by net.sf.webphotos.model.PhotoVO
All Implemented Interfaces:
Serializable, Comparable<IsPhoto>, HasID<Integer>, IsPhoto

@Entity
public class PhotoVO
extends PhotoEntity
implements Serializable, HasID<Integer>

Author:
Guilherme
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface net.sf.webphotos.entity.IsPhoto
BY_KEY_ASCENDING, BY_KEY_DESCENDING
 
Constructor Summary
PhotoVO()
          Deprecated. 
PhotoVO(Integer fotoid, int albumid, String legenda, int creditoid, Integer largura, Integer altura)
          Deprecated. 
PhotoVO(String nmfoto, String legenda, CreditsVO creditos, String caminhoArquivo)
          Default Constructor for new albuns
PhotoVO(String nmfoto, String legenda, CreditsVO creditos, String caminhoArquivo, AlbumVO album)
          Constructor to add photos to existing album
 
Method Summary
 AlbumVO getAlbum()
           
 Integer getAltura()
           
 String getCaminhoArquivo()
           
 CreditsVO getCreditos()
           
 Integer getFotoid()
           
 Integer getId()
           
 String getKey()
           
 Integer getLargura()
           
 String getLegenda()
           
 String getNmfoto()
           
 void setAlbum(AlbumVO album)
           
 void setCreditos(CreditsVO creditos)
           
 void setFotoid(Integer fotoid)
           
 void setLegenda(String legenda)
           
 void setNmfoto(String nmfoto)
           
 String toString()
           
 
Methods inherited from class net.sf.webphotos.entity.PhotoEntity
compareTo, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhotoVO

@Deprecated
public PhotoVO()
Deprecated. 

TODO: remove


PhotoVO

@Deprecated
public PhotoVO(Integer fotoid,
                          int albumid,
                          String legenda,
                          int creditoid,
                          Integer largura,
                          Integer altura)
Deprecated. 


PhotoVO

public PhotoVO(String nmfoto,
               String legenda,
               CreditsVO creditos,
               String caminhoArquivo)
Default Constructor for new albuns

Parameters:
nmfoto -
legenda -
creditos -
album -

PhotoVO

public PhotoVO(String nmfoto,
               String legenda,
               CreditsVO creditos,
               String caminhoArquivo,
               AlbumVO album)
Constructor to add photos to existing album

Parameters:
nmfoto -
legenda -
creditos -
album -
Method Detail

getFotoid

public Integer getFotoid()

setFotoid

public void setFotoid(Integer fotoid)

getNmfoto

public String getNmfoto()

setNmfoto

public void setNmfoto(String nmfoto)

getLegenda

public String getLegenda()
Specified by:
getLegenda in interface IsPhoto

setLegenda

public void setLegenda(String legenda)

toString

public String toString()
Overrides:
toString in class Object

getCreditos

public CreditsVO getCreditos()
Specified by:
getCreditos in interface IsPhoto

setCreditos

public void setCreditos(CreditsVO creditos)

getAlbum

public AlbumVO getAlbum()

setAlbum

public void setAlbum(AlbumVO album)

getCaminhoArquivo

public String getCaminhoArquivo()
Returns:
the caminhoArquivo

getAltura

public Integer getAltura()

getLargura

public Integer getLargura()

getId

public Integer getId()
Specified by:
getId in interface HasID<Integer>

getKey

public String getKey()
Specified by:
getKey in interface IsPhoto


Copyright © 2008-2012. All Rights Reserved.