|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.persistence.model.AbstractEntity<ENTITY,IDENTIFIER_TYPE>
org.silverpeas.persistence.model.jpa.AbstractJpaEntity<PersistentResourceDateReminder,UuidIdentifier>
org.silverpeas.dateReminder.persistent.PersistentResourceDateReminder
@Entity public class PersistentResourceDateReminder
A persistent date reminder used to identify uniquely a resource. This date reminder has the particularity to be persisted in a data source and to refer the resource it identifies uniquely both by the resource identifier and by the resource type.
Field Summary | |
---|---|
static PersistentResourceDateReminder |
NONEDATEREMINDER
Represents none dateReminder to replace in more typing way the null keyword. |
Constructor Summary | |
---|---|
PersistentResourceDateReminder()
|
Method Summary | ||
---|---|---|
boolean |
exists()
Indicates if the dateReminder is well registred |
|
DateReminderDetail |
getDateReminder()
|
|
|
getResource(Class<R> referenceClass)
Gets a reference to the resource this dateReminder is for. |
|
String |
getResourceType()
Get the resource type if the resource. |
|
boolean |
isDefined()
Return true if resource is defined |
|
boolean |
notExists()
Indicates if the dateReminder isn't registered. |
|
void |
setDateReminder(DateReminderDetail dateReminder)
Sets the date, message, processStatus, creatorId and updaterId |
|
void |
setResource(EntityReference resource)
Sets the resource to which this dateReminder belongs. |
|
String |
toString()
|
|
void |
validate()
Validates data |
Methods inherited from class org.silverpeas.persistence.model.jpa.AbstractJpaEntity |
---|
getCreateDate, getCreatedBy, getEntityIdentifierClass, getId, getLastUpdateDate, getLastUpdatedBy, getVersion, isPersisted, markAsModified, newIdentifierInstance, setCreateDate, setCreatedBy, setId, setLastUpdateDate, setLastUpdatedBy, setVersion |
Methods inherited from class org.silverpeas.persistence.model.AbstractEntity |
---|
clone, equals, getComponentInstanceId, getCreator, getLastUpdater, hasBeenModified, hashCode, performBeforePersist, performBeforeUpdate, setCreator, setLastUpdater |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PersistentResourceDateReminder NONEDATEREMINDER
Constructor Detail |
---|
public PersistentResourceDateReminder()
Method Detail |
---|
public boolean exists()
public boolean notExists()
public void validate() throws DateReminderValidationException
DateReminderValidationException
public <E,R extends EntityReference<E>> R getResource(Class<R> referenceClass)
E
- the concrete type of the entity.R
- the concrete type of the reference to the entity.referenceClass
- the expected concrete class of the EntityReference
. This
class must be conform to the type of the resource.
public void setResource(EntityReference resource)
resource
- an identifier of the resource for which this dateReminder is.public String getResourceType()
public DateReminderDetail getDateReminder()
public void setDateReminder(DateReminderDetail dateReminder)
dateReminder
- public boolean isDefined()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |