|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.core.AbstractDateStamped
This AbstractDateStamped bean is an abstract Persitable
DateStamped item with created and
lastModified dates.
| Field Summary | |
protected Date |
theCreated
the date the content was created |
protected Long |
theId
content's id used as a key by hibernate |
protected Date |
theLastModified
the date the content was last modified |
| Constructor Summary | |
AbstractDateStamped()
default constructor |
|
| Method Summary | |
boolean |
equals(Object o)
Tests if the supplied object is equal to this
AbstractDateStamped, ie do they have the same Id? |
Date |
getCreated()
Get the date that this AbstractDateStamped was created. |
Long |
getId()
Get the AbstractDateStamped's ID number. |
Date |
getLastModified()
Get the date that this AbstractDateStamped was last modified. |
abstract int |
hashcode()
Objects must override the hashcode if they override the equals method. |
void |
setCreated(Date date)
Set this AbstractDateStamped's creation date. |
protected void |
setId(Long id)
Sets the The AbstractDateStamped's ID number. |
void |
setLastModified(Date date)
Set this AbstractDateStamped's last modified date. |
void |
setTemplateId(Long id)
Sets the The AbstractDateStamped's ID number directly. |
abstract String |
toString()
Override this to be useful to you. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Long theId
protected Date theCreated
protected Date theLastModified
| Constructor Detail |
public AbstractDateStamped()
| Method Detail |
public Long getId()
AbstractDateStamped's ID number.
getId in interface PersistableAbstractDateStamped's ID number.protected void setId(Long id)
AbstractDateStamped's ID number.
id - The ID number to set.public void setTemplateId(Long id)
AbstractDateStamped's ID number directly. This is
only to be used when creating a template object, and is not to be used
when creating actual objects that will be persisted.
setTemplateId in interface Persistableid - The ID number to set.public Date getCreated()
AbstractDateStamped was created.
getCreated in interface DateStampedAbstractDateStamped was created.public void setCreated(Date date)
AbstractDateStamped's creation date.
setCreated in interface DateStampeddate - The Date that this AbstractDateStamped was
created.public Date getLastModified()
AbstractDateStamped was last modified.
getLastModified in interface DateStampedAbstractDateStamped was last modified.public void setLastModified(Date date)
AbstractDateStamped's last modified date.
setLastModified in interface DateStampeddate - The date this content was last modified.public abstract String toString()
public boolean equals(Object o)
AbstractDateStamped, ie do they have the same Id?
o - The object to test against this AbstractDateStamped.
Must also be a AbstractDateStamped to make sense.
public abstract int hashcode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||