de.nava.informa.impl.hibernate
Class ItemEnclosure

java.lang.Object
  extended by de.nava.informa.impl.hibernate.ItemEnclosure
All Implemented Interfaces:
ItemEnclosureIF, WithLocationMIF, Serializable

public class ItemEnclosure
extends Object
implements ItemEnclosureIF

Hibernate implementation of the ItemSourceIF interface.

Author:
Michael Harhen
See Also:
Serialized Form

Constructor Summary
ItemEnclosure()
           
ItemEnclosure(ItemIF item)
           
ItemEnclosure(ItemIF item, URL location, String type, int length)
           
 
Method Summary
 long getId()
           
 ItemIF getItem()
           
 int getLength()
           
 URL getLocation()
           
 String getLocationString()
           
 String getType()
           
 void setId(long id)
           
 void setItem(ItemIF item)
           
 void setLength(int length)
           
 void setLocation(URL location)
           
 void setLocationString(String loc)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemEnclosure

public ItemEnclosure()

ItemEnclosure

public ItemEnclosure(ItemIF item)

ItemEnclosure

public ItemEnclosure(ItemIF item,
                     URL location,
                     String type,
                     int length)
Method Detail

getId

public long getId()

setId

public void setId(long id)

getItem

public ItemIF getItem()

setItem

public void setItem(ItemIF item)

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

getType

public String getType()
Specified by:
getType in interface ItemEnclosureIF
Returns:
The time was published by the original source

setType

public void setType(String type)
Specified by:
setType in interface ItemEnclosureIF

getLength

public int getLength()
Specified by:
getLength in interface ItemEnclosureIF
Returns:
The length of the enclosure

setLength

public void setLength(int length)
Specified by:
setLength in interface ItemEnclosureIF


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