|
DJDoc v.1.0.0b-1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.djdoc.bo.ItemVO
net.sf.djdoc.bo.ItemEntity
public class ItemEntity
The ItemEntity
is a persistence capable (via Hibernate) class.
In addition to the "basic" properties of the ItemVO
class it extends,
it has a collection valued persistent property of all the item's
hits
and an object valued property of the Bunch
(the package) the item belongs to.
The ItemEntity
's item type is mapped to the database via its
ordinal, so the itemType
property is itself declared as
transient.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sf.djdoc.bo.Item |
---|
Item.ItemType |
Field Summary |
---|
Fields inherited from interface net.sf.djdoc.bo.Hittable |
---|
FAVORITE, NATURAL, RECENT |
Constructor Summary | |
---|---|
ItemEntity()
|
Method Summary | |
---|---|
static ItemEntity |
findByBunchAndName(BunchEntity bunch,
java.lang.String itemName)
"Finder" method for retrieving an ItemEntity object from the
database by the BunchEntity it belongs to and its item name. |
Bunch |
getBunch()
Getter method for this ItemEntity 's package object. |
int |
getId()
Getter method for this ItemEntity 's internal ID. |
java.util.Set<ItemHitEntity> |
getItemHits()
Getter method for the set of ItemHitEntity objects of this
ItemEntity . |
int |
getTypeId()
Getter method for this ItemEntity 's item type ID. |
void |
setBunch(Bunch bunch)
Setter method for this ItemEntity 's package object. |
void |
setId(int id)
Setter method for this ItemEntity 's internal ID. |
void |
setItemHits(java.util.Set<ItemHitEntity> itemHits)
Setter method for the set of ItemHitEntity objects of this
ItemEntity . |
void |
setType(Item.ItemType type)
Setter method for this ItemEntity 's item type. |
void |
setTypeId(int typeId)
Setter method for this ItemEntity 's item type ID. |
Methods inherited from class net.sf.djdoc.bo.ItemVO |
---|
compareTo, getHitCount, getHitDate, getName, getType, hit, setHitCount, setHitDate, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ItemEntity()
Method Detail |
---|
public static ItemEntity findByBunchAndName(BunchEntity bunch, java.lang.String itemName)
ItemEntity
object from the
database by the BunchEntity
it belongs to and its item name.
bunch
- The BunchEntity
the retrieved
ItemEntity
belongs toitemName
- The item name of the retrieved ItemEntity
ItemEntity
with the specified package and namepublic int getId()
ItemEntity
's internal ID.
getId
in interface BusinessObject
ItemEntity
public void setId(int id)
ItemEntity
's internal ID.
id
- The internal ID of this ItemEntity
public void setType(Item.ItemType type)
ItemEntity
's item type.
setType
in class ItemVO
type
- The item type of this ItemEntity
public int getTypeId()
ItemEntity
's item type ID. This is
the ordinal of the ItemEntity
's ItemType
member
in the ItemType
enum.
ItemEntity
public void setTypeId(int typeId)
ItemEntity
's item type ID. This is
the ordinal of the ItemEntity
's ItemType
member
in the ItemType
enum.
typeId
- The item type ID of this ItemEntity
public Bunch getBunch()
ItemEntity
's package object.
ItemEntity
public void setBunch(Bunch bunch)
ItemEntity
's package object.
bunch
- The package object of this ItemEntity
public java.util.Set<ItemHitEntity> getItemHits()
ItemHitEntity
objects of this
ItemEntity
.
ItemEntity
's ItemHitEntity
setpublic void setItemHits(java.util.Set<ItemHitEntity> itemHits)
ItemHitEntity
objects of this
ItemEntity
.
itemHits
- This ItemEntity
's ItemHitEntity
set
|
DJDoc v.1.0.0b-1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |