|
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.BunchVO
net.sf.djdoc.bo.BunchEntity
public class BunchEntity
The BunchEntity
is a persistence capable (via Hibernate) class.
In addition to the "basic" properties of the BunchVO
class it extends,
it has a collection valued persistent property of all the package's items
(interfaces, classes etc.), a collection valued persistent property of all
the package's hits
and an object valued property of
the API the package belongs to.
Field Summary |
---|
Fields inherited from interface net.sf.djdoc.bo.Hittable |
---|
FAVORITE, NATURAL, RECENT |
Constructor Summary | |
---|---|
BunchEntity()
|
Method Summary | |
---|---|
void |
addItem(Item item)
"Member accessor method" of the set of items of this BunchEntity ; adds an Item to that set. |
static BunchEntity |
findByApiAndName(ApiEntity api,
java.lang.String bunchName)
"Finder" method retrieving a particular BunchEntity from the
database by the API it is part of and by its name. |
Api |
getApi()
Getter method for this BunchEntity 's Api . |
java.util.Set<BunchHitEntity> |
getBunchHits()
Getter method for the set of BunchHitEntity objects of this
BunchEntity . |
int |
getId()
Getter method for this BunchEntity 's internal ID. |
java.util.Set<Item> |
getItems()
Getter method for the set of items of this BunchEntity
object. |
void |
setApi(Api api)
Setter method for this BunchEntity 's Api . |
void |
setBunchHits(java.util.Set<BunchHitEntity> bunchHits)
Setter method for the set of BunchHitEntity objects of this
BunchEntity . |
void |
setId(int id)
Getter method for this BunchEntity 's internal ID. |
void |
setItems(java.util.Set<Item> items)
Setter method for the set of items of this BunchEntity
object. |
Methods inherited from class net.sf.djdoc.bo.BunchVO |
---|
compareTo, getHitCount, getHitDate, getName, 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 BunchEntity()
Method Detail |
---|
public static BunchEntity findByApiAndName(ApiEntity api, java.lang.String bunchName)
BunchEntity
from the
database by the API it is part of and by its name.
api
- The ApiEntity
of the BunchEntity
to
be foundbunchName
- The name of the BunchEntity
to be found
BunchEntity
with the given API and namepublic int getId()
BunchEntity
's internal ID.
getId
in interface BusinessObject
BunchEntity
public void setId(int id)
BunchEntity
's internal ID.
id
- The internal ID of this BunchEntity
public Api getApi()
BunchEntity
's Api
.
Api
object of this BunchEntity
public void setApi(Api api)
BunchEntity
's Api
.
api
- The Api
object of this BunchEntity
public java.util.Set<Item> getItems()
BunchEntity
object.
BunchEntity
's item setpublic void setItems(java.util.Set<Item> items)
BunchEntity
object.
items
- This BunchEntity
's item setpublic void addItem(Item item)
BunchEntity
; adds an Item
to that set.
item
- The item to be added to this BunchEntity
public java.util.Set<BunchHitEntity> getBunchHits()
BunchHitEntity
objects of this
BunchEntity
.
BunchEntity
's BunchHitEntity
setpublic void setBunchHits(java.util.Set<BunchHitEntity> bunchHits)
BunchHitEntity
objects of this
BunchEntity
.
bunchHits
- This BunchEntity
's
BunchHitEntity
set
|
DJDoc v.1.0.0b-1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |