net.sf.webphotos.model
Class AlbumVO

java.lang.Object
  extended by net.sf.webphotos.model.AlbumVO
All Implemented Interfaces:
Serializable, HasID<Integer>

@Entity
public class AlbumVO
extends Object
implements Serializable, HasID<Integer>

Author:
Guilhe
See Also:
Serialized Form

Constructor Summary
AlbumVO()
          Deprecated. 
 
Method Summary
 void addPhoto(PhotoVO photos)
           
 void addPhotos(HashSet<PhotoVO> photos)
           
static AlbumVOBuilder builder()
           
static AlbumVOBuilder builder(Integer key)
           
 boolean equals(Object object)
           
 Integer getAlbumid()
           
 CategoryVO getCategoriasVO()
           
 String getDescricao()
           
 Date getDtInsercao()
           
 Integer getId()
           
 String getNmalbum()
           
 PhotoVO getPhotoBy(Integer id)
           
 Set<PhotoVO> getPhotos()
           
 int hashCode()
           
 boolean removePhotoBy(Integer id)
          remove one photo
 void setAlbumid(Integer albumid)
           
 void setCategoriasVO(CategoryVO categoriasVO)
           
 void setDescricao(String descricao)
           
 void setDtInsercao(Date dtInsercao)
           
 void setNmalbum(String nmalbum)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlbumVO

@Deprecated
public AlbumVO()
Deprecated. 

Method Detail

getCategoriasVO

public CategoryVO getCategoriasVO()

setCategoriasVO

public void setCategoriasVO(CategoryVO categoriasVO)

builder

public static AlbumVOBuilder builder()

builder

public static AlbumVOBuilder builder(Integer key)

getAlbumid

public Integer getAlbumid()
Returns:

setAlbumid

public void setAlbumid(Integer albumid)
Parameters:
albumid -

getNmalbum

public String getNmalbum()
Returns:

setNmalbum

public void setNmalbum(String nmalbum)
Parameters:
nmalbum -

getDescricao

public String getDescricao()
Returns:
the descricao

setDescricao

public void setDescricao(String descricao)
Parameters:
descricao - the descricao to set

getDtInsercao

public Date getDtInsercao()
Returns:

setDtInsercao

public void setDtInsercao(Date dtInsercao)
Parameters:
dtInsercao -

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getPhotos

public Set<PhotoVO> getPhotos()
Returns:
the photos

addPhotos

public void addPhotos(HashSet<PhotoVO> photos)
Parameters:
photos - the photos to add

addPhoto

public void addPhoto(PhotoVO photos)
Parameters:
photos - the photo to add

getPhotoBy

public PhotoVO getPhotoBy(Integer id)
Parameters:
id -
Returns:
Photo

removePhotoBy

public boolean removePhotoBy(Integer id)
remove one photo

Parameters:
id -
Returns:
Photo

getId

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


Copyright © 2008-2012. All Rights Reserved.