@Entity
public class Gallery
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Gallery() |
Gallery(java.lang.Long id) |
Gallery(java.lang.Long id,
java.util.Date creationDate,
int sortorder) |
Modifier and Type | Method and Description |
---|---|
void |
addGalleryPhotograph(GalleryPhotograph gphoto) |
boolean |
equals(java.lang.Object object) |
java.util.Date |
getCreationDate()
Creation date of the gallery.
|
java.lang.String |
getDescription()
Description of the gallery
|
java.util.Collection<Gallery> |
getGalleryCollection()
All the galleries contained in this gallery.
|
java.util.Collection<GalleryPhotograph> |
getGalleryPhotographCollection()
Photographs contained in this gallery.
|
Photograph |
getHighlight()
The photograph providing a visual cue about what this gallery is about.
|
java.lang.Long |
getId()
Gets the unique identifier/primary key.
|
java.lang.String |
getName()
Name of the gallery
|
Gallery |
getParent()
Provides the gallery of which this one is a child.
|
int |
getSortorder()
Sort order, indicates the order in which the galleries should be displayed,
where 0 is the first gallery, 1 is the next, etc.
|
int |
hashCode() |
void |
reorderGalleries()
Reorders the galleries of this gallery based on creation date.
|
void |
reorderPhotographs()
Reorders the photographs in this gallery based on when the photographs
were taken.
|
void |
setCreationDate(java.util.Date creationDate)
Sets the creation date of the gallery.
|
void |
setDescription(java.lang.String description)
Sets the description of the gallery
|
void |
setGalleryCollection(java.util.Collection<Gallery> galleryCollection)
Sets the collection of all galleries contained in this gallery.
|
void |
setGalleryPhotographCollection(java.util.Collection<GalleryPhotograph> galleryPhotographCollection)
Sets the photographs in the gallery.
|
void |
setHighlight(Photograph highlight)
Sets the photograph to use as visual identifier for this gallery
|
void |
setId(java.lang.Long id)
Sets the unique identifier/primary key.
|
void |
setName(java.lang.String name)
Sets the name of the gallery.
|
void |
setParent(Gallery parent)
Sets the parent of this gallery
|
void |
setSortorder(int sortorder)
Sets the sort order.
|
java.lang.String |
toString() |
public Gallery()
public Gallery(java.lang.Long id)
public Gallery(java.lang.Long id, java.util.Date creationDate, int sortorder)
public java.lang.Long getId()
public void setId(java.lang.Long id)
id
- Long containing the (new) identifier.public java.lang.String getName()
public void setName(java.lang.String name)
name
- the new name.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- String with the new description.public java.util.Date getCreationDate()
public void setCreationDate(java.util.Date creationDate)
creationDate
- the (new) creation datepublic int getSortorder()
public void setSortorder(int sortorder)
sortorder
- the sort order, 0..infinity.public java.util.Collection<GalleryPhotograph> getGalleryPhotographCollection()
public void setGalleryPhotographCollection(java.util.Collection<GalleryPhotograph> galleryPhotographCollection)
galleryPhotographCollection
- the new collection of photographs
contained in this gallery.public Photograph getHighlight()
public void setHighlight(Photograph highlight)
highlight
- the Photograph resembling the gallerypublic java.util.Collection<Gallery> getGalleryCollection()
public void setGalleryCollection(java.util.Collection<Gallery> galleryCollection)
galleryCollection
- the new collection of galleries.public Gallery getParent()
public void setParent(Gallery parent)
parent
- new parent gallery.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void addGalleryPhotograph(GalleryPhotograph gphoto)
public void reorderGalleries()
public void reorderPhotographs()