de.nava.informa.impl.hibernate
Class ItemGuid

java.lang.Object
  extended by 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

Constructor Summary
ItemGuid()
           
ItemGuid(ItemIF item)
          Default constructor.
ItemGuid(ItemIF item, String location, boolean permaLink)
           
 
Method Summary
 boolean equals(Object o)
          GUID is equal if location is equal.
 long getId()
           
 ItemIF getItem()
           
 String getLocation()
           
 int hashCode()
           
 boolean isPermaLink()
           
 void setId(long id)
           
 void setItem(ItemIF item)
           
 void setLocation(String location)
           
 void setPermaLink(boolean permaLink)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemGuid

public ItemGuid()

ItemGuid

public ItemGuid(ItemIF item)
Default constructor.


ItemGuid

public ItemGuid(ItemIF item,
                String location,
                boolean permaLink)
Method Detail

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.