Package org.silverpeas.core.reminder
Class ReminderIdentifier
- java.lang.Object
-
- org.silverpeas.core.reminder.ReminderIdentifier
-
- All Implemented Interfaces:
Serializable
,Comparable<EntityIdentifier>
,EntityIdentifier
,ResourceIdentifier
@Embeddable public class ReminderIdentifier extends Object implements EntityIdentifier
Identifier of a reminder in the persistence context.- Author:
- mmoquillon
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReminderIdentifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString()
Gets the value of this identifier as a String.boolean
equals(Object obj)
ReminderIdentifier
fromString(String id)
Sets the identifier's value from its given String representation.ReminderIdentifier
generateNewId(String... parameters)
Generates a new unique entity identifier.int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.persistence.datasource.model.EntityIdentifier
compareTo
-
-
-
-
Method Detail
-
fromString
public ReminderIdentifier fromString(String id)
Description copied from interface:EntityIdentifier
Sets the identifier's value from its given String representation.- Specified by:
fromString
in interfaceEntityIdentifier
- Parameters:
id
- the encoded value of the identifier.- Returns:
- the identifier decoded from the specified String representation.
-
generateNewId
public ReminderIdentifier generateNewId(String... parameters)
Description copied from interface:EntityIdentifier
Generates a new unique entity identifier. "Auto-Increment" identifiers must implement this method.- Specified by:
generateNewId
in interfaceEntityIdentifier
- Parameters:
parameters
- the parameters required in the generation of the new identifier. Those depends on the kind of entity identifier and they must be documented in the concrete class.- Returns:
- a new identifier.
-
asString
public String asString()
Description copied from interface:ResourceIdentifier
Gets the value of this identifier as a String.- Specified by:
asString
in interfaceResourceIdentifier
- Returns:
- the String representation of this identifier.
-
-