Interface CompositeEntityIdentifier
-
- All Superinterfaces:
Comparable<EntityIdentifier>
,EntityIdentifier
,ExternalEntityIdentifier
,ResourceIdentifier
,Serializable
- All Known Implementing Classes:
ExternalAccountIdentifier
,PdcAxisValuePk
public interface CompositeEntityIdentifier extends ExternalEntityIdentifier
A composite entity identifier is a unique identifier that is made up of several identification values. Usually, these values are the unique identifier of one or more external entities.- Author:
- ebonnet
-
-
Field Summary
Fields Modifier and Type Field Description static String
COMPOSITE_SEPARATOR
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EntityIdentifier
fromString(String id)
Sets the identifier's value from its given String representation.CompositeEntityIdentifier
fromString(String... values)
Sets the value of this identifier from the specified values that will be part of this composite identifier.-
Methods inherited from interface org.silverpeas.core.persistence.datasource.model.EntityIdentifier
compareTo
-
Methods inherited from interface org.silverpeas.core.persistence.datasource.model.ExternalEntityIdentifier
generateNewId
-
Methods inherited from interface org.silverpeas.core.ResourceIdentifier
asString
-
-
-
-
Field Detail
-
COMPOSITE_SEPARATOR
static final String COMPOSITE_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromString
default EntityIdentifier 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.
-
fromString
CompositeEntityIdentifier fromString(String... values)
Sets the value of this identifier from the specified values that will be part of this composite identifier.- Parameters:
values
- the identifier values from which this composite identifier will be built.- Returns:
- this entity identifier.
-
-