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.Stringname()Name of the entity type.PersistenceIdpersistenceIdFrom(java.lang.String entityId)Constructs aPersistenceIdfrom thisEntityTypeKeyand the givenentityIdby 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 aPersistenceIdfrom thisEntityTypeKeyand the givenentityIdby concatenating them with|separator.The
|separator is also used in Lagom'sscaladsl.PersistentEntitybut no separator is used in Lagom'sjavadsl.PersistentEntity. For compatibility with Lagom'sjavadsl.PersistentEntityyou 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 theEntityTypeKeyand theentityIdwhen constructing apersistenceIdwithEntityTypeKey.persistenceIdFrom.The default
|separator is also used in Lagom'sscaladsl.PersistentEntitybut no separator is used in Lagom'sjavadsl.PersistentEntity. For compatibility with Lagom'sjavadsl.PersistentEntityyou should use""as the separator here.- Parameters:
separator- (undocumented)- Returns:
- (undocumented)
-
-