de.nava.informa.impl.hibernate
Class Image
java.lang.Object
de.nava.informa.impl.hibernate.Image
- All Implemented Interfaces:
- ImageIF, WithDescriptionMIF, WithIdMIF, WithLinkMIF, WithLocationMIF, WithTitleMIF, Serializable
public class Image
- extends Object
- implements ImageIF
Hibernate implementation of the ImageIF interface.
- Author:
- Niko Schmuck (niko@nava.de)
- See Also:
- Serialized Form
Image
public Image()
Image
public Image(String title,
URL location,
URL link)
getId
public long getId()
- Specified by:
getId
in interface WithIdMIF
- Returns:
- identifier of the object.
setId
public void setId(long id)
- Specified by:
setId
in interface WithIdMIF
- Parameters:
id
- the identifier of the object to be set.
getTitle
public String getTitle()
- Specified by:
getTitle
in interface WithTitleMIF
- Returns:
- the title of the object
setTitle
public void setTitle(String title)
- Specified by:
setTitle
in interface WithTitleMIF
- Parameters:
title
- the title of the object to be set
getDescription
public String getDescription()
- Specified by:
getDescription
in interface WithDescriptionMIF
- Returns:
- description of the object
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interface WithDescriptionMIF
- Parameters:
description
- the description of the object to be set
getLocationString
public String getLocationString()
setLocationString
public void setLocationString(String loc)
getLocation
public URL getLocation()
- Specified by:
getLocation
in interface WithLocationMIF
- Returns:
- the location
setLocation
public void setLocation(URL location)
- Specified by:
setLocation
in interface WithLocationMIF
- Parameters:
location
- the location to set
getWidth
public int getWidth()
- Specified by:
getWidth
in interface ImageIF
setWidth
public void setWidth(int width)
- Specified by:
setWidth
in interface ImageIF
getHeight
public int getHeight()
- Specified by:
getHeight
in interface ImageIF
setHeight
public void setHeight(int height)
- Specified by:
setHeight
in interface ImageIF
equals
public boolean equals(Object o)
- Images are equal when their locations are equal.
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
getLinkString
public String getLinkString()
setLinkString
public void setLinkString(String loc)
getLink
public URL getLink()
- Specified by:
getLink
in interface WithLinkMIF
- Returns:
- the link
setLink
public void setLink(URL link)
- Specified by:
setLink
in interface WithLinkMIF
- Parameters:
link
- the link to set
Copyright © 2002-2007 Niko Schmuck.
All Rights Reserved.