Class TimestampPrefixedUUID
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.jdbc.util.TimestampPrefixedUUID
-
- All Implemented Interfaces:
LogicalIdentityProvider
public class TimestampPrefixedUUID extends java.lang.Object implements LogicalIdentityProvider
Provides identity strings using random UUID for uniqueness but prefixed with an encoded time string to improve database locality when used in b-tree indexes.
-
-
Constructor Summary
Constructors Constructor Description TimestampPrefixedUUID()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
createNewIdentityValue()
Create a new identity string.
-
-
-
Method Detail
-
createNewIdentityValue
public java.lang.String createNewIdentityValue()
Description copied from interface:LogicalIdentityProvider
Create a new identity string. The max length of the string will never be greater than 100 (ASCII) characters- Specified by:
createNewIdentityValue
in interfaceLogicalIdentityProvider
- Returns:
-
-