Class ExternalIntegerIdentifier
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.model.identifier.ExternalIntegerIdentifier
-
- All Implemented Interfaces:
Serializable
,Comparable<EntityIdentifier>
,EntityIdentifier
,ExternalEntityIdentifier
,ResourceIdentifier
@Embeddable public class ExternalIntegerIdentifier extends Object implements ExternalEntityIdentifier
This external entity identifier implementation handles external integer identifier.- Author:
- ebonnet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExternalIntegerIdentifier()
-
Method Summary
All Methods Static 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)
static ExternalIntegerIdentifier
from(String value)
ExternalIntegerIdentifier
fromString(String id)
Sets the identifier's value from its given String representation.Integer
getId()
int
hashCode()
ExternalIntegerIdentifier
setId(Integer id)
String
toString()
-
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 ExternalIntegerIdentifier from(String value)
-
fromString
public ExternalIntegerIdentifier 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.
-
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.
-
getId
public Integer getId()
-
setId
public ExternalIntegerIdentifier setId(Integer id)
-
-