public interface TopiaIdFactory extends Serializable
Serializable must be implemented because
TopiaConfiguration may hold some references.TopiaConfiguration.getTopiaIdFactory()| Modifier and Type | Method and Description |
|---|---|
<E extends TopiaEntity> |
getClassName(String topiaId) |
String |
getRandomPart(String topiaId) |
String |
getSeparator() |
boolean |
isTopiaId(String str) |
<E extends TopiaEntity> |
newTopiaId(Class<E> entityClass,
String randomPart)
Builds a new topiaId for the given entity type and the given random part.
|
<E extends TopiaEntity> |
newTopiaId(Class<E> entityClass,
TopiaEntity topiaEntity)
Generates a new topiaId for the given entity type and the given entity.
|
<E extends TopiaEntity> String newTopiaId(Class<E> entityClass, TopiaEntity topiaEntity)
E - type of entityentityClass - type of entity (must be a not null interface)topiaEntity - the entity on which we want to generate the id (must be not null)<E extends TopiaEntity> String newTopiaId(Class<E> entityClass, String randomPart)
E - type of entityentityClass - type of entity (must be a not null interface)randomPart - the random part of the topiaId<E extends TopiaEntity> Class<E> getClassName(String topiaId)
E - type of the entitytopiaId - the topiaId to inspectString getRandomPart(String topiaId)
topiaId - the topiaId to inspectString getSeparator()
boolean isTopiaId(String str)
str - FIXMECopyright © 2004–2018 CodeLutin. All rights reserved.