|
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.BunchHitEntity
public class BunchHitEntity
The BunchHitEntity is a persistence capable (via Hibernate)
class. It implements a typical m-to-n-relationship between two other
persistent classes (in this case, BunchEntity and UserEntity)
with two additional attributes keeping track of the number of times and
the last date the referenced user has accessed the referenced package.
| Constructor Summary | |
|---|---|
BunchHitEntity()
|
|
| Method Summary | |
|---|---|
static BunchHitEntity |
findByBunchAndUser(BunchEntity bunch,
UserEntity user)
"Finder" method retrieving a particular BunchHitEntity from
the database by the package and the user it references. |
Bunch |
getBunch()
Getter method for the Bunch this BunchHitEntity
references. |
int |
getHitCount()
Getter method for this BunchHitEntity's hit count. |
java.util.Date |
getHitDate()
Getter method for this BunchHitEntity's hit date. |
int |
getId()
Getter method for this BunchHitEntity's internal ID. |
User |
getUser()
Getter method for the User this BunchHitEntity
references. |
static java.util.List<BunchHitEntity> |
selectByApiAndUser(ApiEntity api,
UserEntity user)
"Selector" method retrieving all BunchHitEntity objects with
a given ApiEntity and UserEntity from the
database. |
void |
setBunch(Bunch bunch)
Setter method for the Bunch this BunchHitEntity
references. |
void |
setHitCount(int hitCount)
Setter method for this BunchHitEntity's hit count. |
void |
setHitDate(java.util.Date hitDate)
Setter method for this BunchHitEntity's hit date. |
void |
setId(int id)
Setter method for this BunchHitEntity's internal ID. |
void |
setUser(UserEntity user)
Setter method for the User this BunchHitEntity
references. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BunchHitEntity()
| Method Detail |
|---|
public static java.util.List<BunchHitEntity> selectByApiAndUser(ApiEntity api,
UserEntity user)
BunchHitEntity objects with
a given ApiEntity and UserEntity from the
database.
api - The ApiEntity of the objects to be selecteduser - The UserEntity of the objects to be selected
List of all BunchHitEntity objects with
given ApiEntity and UserEntity
public static BunchHitEntity findByBunchAndUser(BunchEntity bunch,
UserEntity user)
BunchHitEntity from
the database by the package and the user it references.
bunch - The BunchEntity referenced by the
BunchHitEntity to be founduser - The UserEntity referenced by the
BunchHitEntity to be found
BunchHitEntity with the given package and userpublic int getId()
BunchHitEntity's internal ID.
getId in interface BusinessObjectBunchHitEntitypublic void setId(int id)
BunchHitEntity's internal ID.
id - The internal ID of this BunchHitEntitypublic int getHitCount()
BunchHitEntity's hit count.
public void setHitCount(int hitCount)
BunchHitEntity's hit count.
hitCount - The total number of times this object has been hitpublic java.util.Date getHitDate()
BunchHitEntity's hit date.
public void setHitDate(java.util.Date hitDate)
BunchHitEntity's hit date.
hitDate - The date at which this object has been hit lastpublic Bunch getBunch()
Bunch this BunchHitEntity
references.
BunchHitEntity's Bunch objectpublic void setBunch(Bunch bunch)
Bunch this BunchHitEntity
references.
bunch - This BunchHitEntity's Bunch objectpublic User getUser()
User this BunchHitEntity
references.
BunchHitEntity's User objectpublic void setUser(UserEntity user)
User this BunchHitEntity
references.
user - This BunchHitEntity's User object
|
DJDoc v.1.0.0b-1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||