Interface EntityTypeKey<T>
-
- All Known Implementing Classes:
EntityTypeKeyImpl
public interface EntityTypeKey<T>
Name of the entity type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
name()
Name of the entity type.PersistenceId
persistenceIdFrom(java.lang.String entityId)
Constructs aPersistenceId
from thisEntityTypeKey
and the givenentityId
by concatenating them with|
separator.EntityTypeKey<T>
withEntityIdSeparator(java.lang.String separator)
Specify a custom separator for compatibility with old naming conventions.
-
-
-
Method Detail
-
name
java.lang.String name()
Name of the entity type.- Returns:
- (undocumented)
-
persistenceIdFrom
PersistenceId persistenceIdFrom(java.lang.String entityId)
Constructs aPersistenceId
from thisEntityTypeKey
and the givenentityId
by concatenating them with|
separator.The
|
separator is also used in Lagom'sscaladsl.PersistentEntity
but no separator is used in Lagom'sjavadsl.PersistentEntity
. For compatibility with Lagom'sjavadsl.PersistentEntity
you should use""
as the separator inEntityTypeKey.withEntityIdSeparator
.- Parameters:
entityId
- (undocumented)- Returns:
- (undocumented)
-
withEntityIdSeparator
EntityTypeKey<T> withEntityIdSeparator(java.lang.String separator)
Specify a custom separator for compatibility with old naming conventions. The separator is used between theEntityTypeKey
and theentityId
when constructing apersistenceId
withEntityTypeKey.persistenceIdFrom
.The default
|
separator is also used in Lagom'sscaladsl.PersistentEntity
but no separator is used in Lagom'sjavadsl.PersistentEntity
. For compatibility with Lagom'sjavadsl.PersistentEntity
you should use""
as the separator here.- Parameters:
separator
- (undocumented)- Returns:
- (undocumented)
-
-