Class ExternalStringIdentifier
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.model.identifier.ExternalStringIdentifier
-
- All Implemented Interfaces:
Serializable,Comparable<EntityIdentifier>,EntityIdentifier,ExternalEntityIdentifier,ResourceIdentifier
@Embeddable public class ExternalStringIdentifier extends Object implements ExternalEntityIdentifier
This identifier implementation handles external one with string type.- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExternalStringIdentifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasString()Gets the value of this identifier as a String.booleanequals(Object obj)static ExternalStringIdentifierfrom(String value)ExternalStringIdentifierfromString(String id)Sets the identifier's value from its given String representation.StringgetId()inthashCode()voidsetId(String id)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.persistence.datasource.model.EntityIdentifier
compareTo
-
Methods inherited from interface org.silverpeas.core.persistence.datasource.model.ExternalEntityIdentifier
generateNewId
-
-
-
-
Method Detail
-
from
public static ExternalStringIdentifier from(String value)
-
getId
public String getId()
-
setId
public void setId(String id)
-
asString
public String asString()
Description copied from interface:ResourceIdentifierGets the value of this identifier as a String.- Specified by:
asStringin interfaceResourceIdentifier- Returns:
- the String representation of this identifier.
-
fromString
public ExternalStringIdentifier fromString(String id)
Description copied from interface:EntityIdentifierSets the identifier's value from its given String representation.- Specified by:
fromStringin interfaceEntityIdentifier- Parameters:
id- the encoded value of the identifier.- Returns:
- the identifier decoded from the specified String representation.
-
-