de.nava.informa.impl.hibernate
Class ItemGuid
java.lang.Object
de.nava.informa.impl.hibernate.ItemGuid
- All Implemented Interfaces:
- ItemGuidIF, WithIdMIF, Serializable
public class ItemGuid
- extends Object
- implements ItemGuidIF
Hibernate implementation of the ItemGuidIF interface.
- Author:
- Michael Harhen
- See Also:
- Serialized Form
ItemGuid
public ItemGuid()
ItemGuid
public ItemGuid(ItemIF item)
- Default constructor.
ItemGuid
public ItemGuid(ItemIF item,
String location,
boolean permaLink)
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.
getItem
public ItemIF getItem()
setItem
public void setItem(ItemIF item)
getLocation
public String getLocation()
- Specified by:
getLocation
in interface ItemGuidIF
setLocation
public void setLocation(String location)
- Specified by:
setLocation
in interface ItemGuidIF
isPermaLink
public boolean isPermaLink()
- Specified by:
isPermaLink
in interface ItemGuidIF
- Returns:
- indicates whether the guid is a permalink.
setPermaLink
public void setPermaLink(boolean permaLink)
- Specified by:
setPermaLink
in interface ItemGuidIF
equals
public boolean equals(Object o)
- GUID is equal if location is equal.
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2002-2007 Niko Schmuck.
All Rights Reserved.