de.nava.informa.impl.hibernate
Class ItemSource

java.lang.Object
  extended by de.nava.informa.impl.hibernate.ItemSource
All Implemented Interfaces:
ItemSourceIF, WithNameMIF, Serializable

public class ItemSource
extends Object
implements ItemSourceIF

Hibernate implementation of the ItemSourceIF interface.

Author:
Michael Harhen
See Also:
Serialized Form

Constructor Summary
ItemSource()
           
ItemSource(ItemIF item)
          Default constructor.
ItemSource(ItemIF item, String name, String location, Date timestamp)
           
 
Method Summary
 boolean equals(Object o)
           
 long getId()
           
 ItemIF getItem()
           
 String getLocation()
           
 String getName()
           
 Date getTimestamp()
           
 int hashCode()
           
 void setId(long id)
           
 void setItem(ItemIF item)
           
 void setLocation(String location)
           
 void setName(String name)
           
 void setTimestamp(Date timestamp)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemSource

public ItemSource()

ItemSource

public ItemSource(ItemIF item)
Default constructor.


ItemSource

public ItemSource(ItemIF item,
                  String name,
                  String location,
                  Date timestamp)
Method Detail

getId

public long getId()

setId

public void setId(long id)

getItem

public ItemIF getItem()

setItem

public void setItem(ItemIF item)

getName

public String getName()
Specified by:
getName in interface WithNameMIF
Returns:
the name of the object

setName

public void setName(String name)
Specified by:
setName in interface WithNameMIF
Parameters:
name - the name of the object to be set

getLocation

public String getLocation()
Specified by:
getLocation in interface ItemSourceIF

setLocation

public void setLocation(String location)
Specified by:
setLocation in interface ItemSourceIF

getTimestamp

public Date getTimestamp()
Specified by:
getTimestamp in interface ItemSourceIF
Returns:
The time was published by the original source

setTimestamp

public void setTimestamp(Date timestamp)
Specified by:
setTimestamp in interface ItemSourceIF

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.