|
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
public class BunchVO
The class BunchVO
is a concrete implementation of the
Bunch
interface. It implements the Value Object design
pattern.
Field Summary |
---|
Fields inherited from interface net.sf.djdoc.bo.Hittable |
---|
FAVORITE, NATURAL, RECENT |
Constructor Summary | |
---|---|
protected |
BunchVO()
Protected no-argument constructor; overridden by the BunchEntity
class. |
|
BunchVO(Bunch that)
Public copy constructor. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
Comparison method for two BunchVO s. |
int |
getHitCount()
Getter method for this BunchVO 's hit count. |
java.util.Date |
getHitDate()
Getter method for this BunchVO 's hit date. |
java.lang.String |
getName()
Getter method for this BunchVO 's name. |
void |
hit()
This method marks this BunchVO as hit. |
void |
setHitCount(int hitCount)
Setter method for this BunchVO 's hit count. |
void |
setHitDate(java.util.Date hitDate)
Setter method for this BunchVO 's hit date. |
void |
setName(java.lang.String name)
Setter method for this BunchVO 's name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BunchVO(Bunch that)
that
- The Bunch
instance whose attribute values are to be
copied to this BunchVO
object.protected BunchVO()
BunchEntity
class.
Method Detail |
---|
public java.lang.String getName()
BunchVO
's name.
getName
in interface Bunch
BunchVO
objectpublic void setName(java.lang.String name)
BunchVO
's name.
name
- The name of this BunchVO
objectpublic int getHitCount()
BunchVO
's hit count.
getHitCount
in interface Hittable
BunchVO
has been hitpublic void setHitCount(int hitCount)
BunchVO
's hit count.
setHitCount
in interface Hittable
hitCount
- The total number of times this BunchVO
has
been hitpublic java.util.Date getHitDate()
BunchVO
's hit date.
getHitDate
in interface Hittable
BunchVO
has been hit lastpublic void setHitDate(java.util.Date hitDate)
BunchVO
's hit date.
setHitDate
in interface Hittable
hitDate
- The date at which this BunchVO
has been hit
lastpublic void hit()
BunchVO
as hit. It adjusts its hit
count and hit date accordingly.
hit
in interface Hittable
public int compareTo(java.lang.Object obj)
BunchVO
s. It compares the two
objects by their names.
compareTo
in interface java.lang.Comparable
obj
- A BunchVO
object to compare this object to
BunchVO
and the other BunchVO
|
DJDoc v.1.0.0b-1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |