Package com.github.f4b6a3.uuid
Class UuidCreator
- java.lang.Object
-
- com.github.f4b6a3.uuid.UuidCreator
-
public final class UuidCreator extends Object
Facade to all the UUID generators.
-
-
Field Summary
Fields Modifier and Type Field Description static UuidLocalDomainLOCAL_DOMAIN_GROUPstatic UuidLocalDomainLOCAL_DOMAIN_ORGstatic UuidLocalDomainLOCAL_DOMAIN_PERSONstatic UuidNamespaceNAMESPACE_DNSstatic UuidNamespaceNAMESPACE_ISO_OIDstatic UuidNamespaceNAMESPACE_URLstatic UuidNamespaceNAMESPACE_X500_DN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UUIDfromBytes(byte[] uuid)Returns a UUID from a byte array.static UUIDfromString(String string)Returns a UUID from a string.static UUIDgetDceSecurity(byte localDomain, int localIdentifier)Returns a DCE Security UUID.static UUIDgetDceSecurity(UuidLocalDomain localDomain, int localIdentifier)Returns a DCE Security UUID.static DceSecurityUuidCreatorgetDceSecurityCreator()Returns aDceSecurityUuidCreatorthat creates UUID version 2.static UUIDgetDceSecurityWithHash(byte localDomain, int localIdentifier)Returns a DCE Security UUID with system data hash as node identifier.static UUIDgetDceSecurityWithHash(UuidLocalDomain localDomain, int localIdentifier)Returns a DCE Security UUID with system data hash as node identifier.static UUIDgetDceSecurityWithMac(byte localDomain, int localIdentifier)Returns a DCE Security UUID with hardware address as node identifier.static UUIDgetDceSecurityWithMac(UuidLocalDomain localDomain, int localIdentifier)Returns a DCE Security UUID with hardware address as node identifier.static UUIDgetNameBasedMd5(byte[] name)Returns a name-based UUID (MD5).static UUIDgetNameBasedMd5(UuidNamespace namespace, byte[] name)Returns a name-based UUID (MD5).static UUIDgetNameBasedMd5(UuidNamespace namespace, String name)Returns a name-based UUID (MD5).static UUIDgetNameBasedMd5(String name)Returns a name-based UUID (MD5).static UUIDgetNameBasedMd5(String namespace, byte[] name)Returns a name-based UUID (MD5).static UUIDgetNameBasedMd5(String namespace, String name)Returns a name-based UUID (MD5).static UUIDgetNameBasedMd5(UUID namespace, byte[] name)Returns a name-based UUID (MD5).static UUIDgetNameBasedMd5(UUID namespace, String name)Returns a name-based UUID (MD5).static NameBasedMd5UuidCreatorgetNameBasedMd5Creator()Returns aNameBasedMd5UuidCreatorthat creates UUID version 3.static UUIDgetNameBasedSha1(byte[] name)Returns a name-based UUID (SHA1).static UUIDgetNameBasedSha1(UuidNamespace namespace, byte[] name)Returns a name-based UUID (SHA1).static UUIDgetNameBasedSha1(UuidNamespace namespace, String name)Returns a name-based UUID (SHA1).static UUIDgetNameBasedSha1(String name)Returns a name-based UUID (SHA1).static UUIDgetNameBasedSha1(String namespace, byte[] name)Returns a name-based UUID (SHA1).static UUIDgetNameBasedSha1(String namespace, String name)Returns a name-based UUID (SHA1).static UUIDgetNameBasedSha1(UUID namespace, byte[] name)Returns a name-based UUID (SHA1).static UUIDgetNameBasedSha1(UUID namespace, String name)Returns a name-based UUID (SHA1).static NameBasedSha1UuidCreatorgetNameBasedSha1Creator()Returns aNameBasedSha1UuidCreatorthat creates UUID version 5.static UUIDgetNil()Returns a Nil UUID.static UUIDgetPrefixComb()Returns a Prefix COMB.static PrefixCombCreatorgetPrefixCombCreator()Returns aPrefixCombCreator.static UUIDgetRandomBased()Returns a random UUID.static RandomBasedUuidCreatorgetRandomBasedCreator()Returns aRandomBasedUuidCreatorthat creates UUID version 4.static UUIDgetShortPrefixComb()Returns n Short Prefix COMB.static ShortPrefixCombCreatorgetShortPrefixCombCreator()Returns aShortPrefixCombCreator.static UUIDgetShortSuffixComb()Returns a Short Suffix COMB.static ShortSuffixCombCreatorgetShortSuffixCombCreator()Returns aShortSuffixCombCreator.static UUIDgetSuffixComb()Returns a Suffix COMB.static SuffixCombCreatorgetSuffixCombCreator()Returns aSuffixCombCreator.static UUIDgetTimeBased()Returns a time-based UUID.static UUIDgetTimeBased(Instant instant, Integer clockseq, Long nodeid)Returns a time-based UUID.static TimeBasedUuidCreatorgetTimeBasedCreator()Returns aTimeBasedUuidCreatorthat creates UUID version 1.static UUIDgetTimeBasedWithHash()Returns a time-based UUID with system data hash as node identifier.static UUIDgetTimeBasedWithHash(Instant instant, Integer clockseq)Returns a time-based UUID with system data hash as node identifier.static UUIDgetTimeBasedWithMac()Returns a time-based UUID with hardware address as node identifier.static UUIDgetTimeBasedWithMac(Instant instant, Integer clockseq)Returns a time-based UUID with hardware address as node identifier.static UUIDgetTimeOrdered()Returns a time-ordered UUID.static UUIDgetTimeOrdered(Instant instant, Integer clockseq, Long nodeid)Returns a time-ordered UUID.static TimeOrderedUuidCreatorgetTimeOrderedCreator()Returns aTimeOrderedUuidCreatorthat creates UUID version 6.static UUIDgetTimeOrderedWithHash()Returns a time-ordered UUID with system data hash as node identifier.static UUIDgetTimeOrderedWithHash(Instant instant, Integer clockseq)Returns a time-ordered UUID with system data hash as node identifier.static UUIDgetTimeOrderedWithMac()Returns a time-ordered UUID with hardware address as node identifier.static UUIDgetTimeOrderedWithMac(Instant instant, Integer clockseq)Returns a time-ordered UUID with hardware address as node identifier.
-
-
-
Field Detail
-
NAMESPACE_DNS
public static final UuidNamespace NAMESPACE_DNS
-
NAMESPACE_URL
public static final UuidNamespace NAMESPACE_URL
-
NAMESPACE_ISO_OID
public static final UuidNamespace NAMESPACE_ISO_OID
-
NAMESPACE_X500_DN
public static final UuidNamespace NAMESPACE_X500_DN
-
LOCAL_DOMAIN_PERSON
public static final UuidLocalDomain LOCAL_DOMAIN_PERSON
-
LOCAL_DOMAIN_GROUP
public static final UuidLocalDomain LOCAL_DOMAIN_GROUP
-
LOCAL_DOMAIN_ORG
public static final UuidLocalDomain LOCAL_DOMAIN_ORG
-
-
Method Detail
-
fromBytes
public static UUID fromBytes(byte[] uuid)
Returns a UUID from a byte array. It validates the input byte array.- Parameters:
uuid- a byte array- Returns:
- a UUID
- Throws:
InvalidUuidException- if invalid
-
fromString
public static UUID fromString(String string)
Returns a UUID from a string. It accepts strings: - With URN prefix: "urn:uuid:"; - With curly braces: '{' and '}'; - With upper or lower case; - With or without hyphens. It's a better alternative toUUID.fromString(String).- Parameters:
string- a UUID string- Returns:
- a UUID
- Throws:
InvalidUuidException- if invalid
-
getNil
public static UUID getNil()
Returns a Nil UUID. The Nil UUID is special UUID that has all 128 bits set to zero.- Returns:
- a Nil UUID
-
getRandomBased
public static UUID getRandomBased()
Returns a random UUID. The random generator isSecureRandom.Details: - Version number: 4
- Returns:
- a version 4 UUID
-
getTimeBased
public static UUID getTimeBased()
Returns a time-based UUID.Details: - Version number: 1 - Node identifier: random (default) or user defined
A user defined node identifier can be provided by the system property 'uuidcreator.node' or the environment variable 'UUIDCREATOR_NODE'.- Returns:
- a version 1 UUID
- Throws:
UuidCreatorException- an overrun exception if too many UUIDs are requested within the same millisecond
-
getTimeBasedWithMac
public static UUID getTimeBasedWithMac()
Returns a time-based UUID with hardware address as node identifier.Details: - Version number: 1 - Node identifier: MAC
- Returns:
- a version 1 UUID
- Throws:
UuidCreatorException- an overrun exception if too many UUIDs are requested within the same millisecond
-
getTimeBasedWithHash
public static UUID getTimeBasedWithHash()
Returns a time-based UUID with system data hash as node identifier.Details: - Version number: 1 - Node identifier: system data hash
- Returns:
- a version 1 UUID
- Throws:
UuidCreatorException- an overrun exception if too many UUIDs are requested within the same millisecond
-
getTimeBased
public static UUID getTimeBased(Instant instant, Integer clockseq, Long nodeid)
Returns a time-based UUID.Details: - Version number: 1 - Node identifier: random
- Parameters:
instant- an alternate instantclockseq- an alternate clock sequence (0 to 16,383)nodeid- an alternate node (0 to 2^48-1)- Returns:
- a version 1 UUID
- Throws:
UuidCreatorException- an overrun exception if too many UUIDs are requested within the same millisecond
-
getTimeBasedWithMac
public static UUID getTimeBasedWithMac(Instant instant, Integer clockseq)
Returns a time-based UUID with hardware address as node identifier.Details: - Version number: 1 - Node identifier: MAC
- Parameters:
instant- an alternate instantclockseq- an alternate clock sequence (0 to 16,383)- Returns:
- a version 1 UUID
- Throws:
UuidCreatorException- an overrun exception if too many UUIDs are requested within the same millisecond
-
getTimeBasedWithHash
public static UUID getTimeBasedWithHash(Instant instant, Integer clockseq)
Returns a time-based UUID with system data hash as node identifier.Details: - Version number: 1 - Node identifier: system data hash
- Parameters:
instant- an alternate instantclockseq- an alternate clock sequence (0 to 16,383)- Returns:
- a version 1 UUID
- Throws:
UuidCreatorException- an overrun exception if too many UUIDs are requested within the same millisecond
-
getTimeOrdered
public static UUID getTimeOrdered()
Returns a time-ordered UUID.Details: - Version number: 6 - Node identifier: random (default) or user defined
A user defined node identifier can be provided by the system property 'uuidcreator.node' or the environment variable 'UUIDCREATOR_NODE'.- Returns:
- a version 6 UUID
- Throws:
UuidCreatorException- an overrun exception if too many UUIDs are requested within the same millisecond
-
getTimeOrderedWithMac
public static UUID getTimeOrderedWithMac()
Returns a time-ordered UUID with hardware address as node identifier.Details: - Version number: 6 - Node identifier: MAC
- Returns:
- a version 6 UUID
- Throws:
UuidCreatorException- an overrun exception if too many UUIDs are requested within the same millisecond
-
getTimeOrderedWithHash
public static UUID getTimeOrderedWithHash()
Returns a time-ordered UUID with system data hash as node identifier.Details: - Version number: 6 - Node identifier: system data hash
- Returns:
- a version 6 UUID
- Throws:
UuidCreatorException- an overrun exception if too many UUIDs are requested within the same millisecond
-
getTimeOrdered
public static UUID getTimeOrdered(Instant instant, Integer clockseq, Long nodeid)
Returns a time-ordered UUID.Details: - Version number: 6 - Node identifier: random
- Parameters:
instant- an alternate instantclockseq- an alternate clock sequence (0 to 16,383)nodeid- an alternate node (0 to 2^48-1)- Returns:
- a version 6 UUID
- Throws:
UuidCreatorException- an overrun exception if too many UUIDs are requested within the same millisecond
-
getTimeOrderedWithMac
public static UUID getTimeOrderedWithMac(Instant instant, Integer clockseq)
Returns a time-ordered UUID with hardware address as node identifier.Details: - Version number: 6 - Node identifier: MAC
- Parameters:
instant- an alternate instantclockseq- an alternate clock sequence (0 to 16,383)- Returns:
- a version 6 UUID
- Throws:
UuidCreatorException- an overrun exception if too many UUIDs are requested within the same millisecond
-
getTimeOrderedWithHash
public static UUID getTimeOrderedWithHash(Instant instant, Integer clockseq)
Returns a time-ordered UUID with system data hash as node identifier.Details: - Version number: 6 - Node identifier: system data hash
- Parameters:
instant- an alternate instantclockseq- an alternate clock sequence (0 to 16,383)- Returns:
- a version 6 UUID
- Throws:
UuidCreatorException- an overrun exception if too many UUIDs are requested within the same millisecond
-
getNameBasedMd5
public static UUID getNameBasedMd5(String name)
Returns a name-based UUID (MD5).Details: - Version number: 3 - Hash Algorithm: MD5 - Name Space: NO
- Parameters:
name- a name string- Returns:
- a version 3 UUID
-
getNameBasedMd5
public static UUID getNameBasedMd5(byte[] name)
Returns a name-based UUID (MD5).Details: - Version number: 3 - Hash Algorithm: MD5 - Name Space: NO
- Parameters:
name- a byte array- Returns:
- a version 3 UUID
-
getNameBasedMd5
public static UUID getNameBasedMd5(UUID namespace, String name)
Returns a name-based UUID (MD5).Details: - Version number: 3 - Hash Algorithm: MD5 - Name Space: YES (custom)
- Parameters:
namespace- a custom name space UUIDname- a name string- Returns:
- a version 3 UUID
-
getNameBasedMd5
public static UUID getNameBasedMd5(UUID namespace, byte[] name)
Returns a name-based UUID (MD5).Details: - Version number: 3 - Hash Algorithm: MD5 - Name Space: YES (custom)
- Parameters:
namespace- a custom name space UUIDname- a byte array- Returns:
- a version 3 UUID
-
getNameBasedMd5
public static UUID getNameBasedMd5(String namespace, String name)
Returns a name-based UUID (MD5).Details: - Version number: 3 - Hash Algorithm: MD5 - Name Space: YES (custom)
- Parameters:
namespace- a custom name space UUID in string formatname- a name string- Returns:
- a version 3 UUID
- Throws:
InvalidUuidException- if the namespace is invalid
-
getNameBasedMd5
public static UUID getNameBasedMd5(String namespace, byte[] name)
Returns a name-based UUID (MD5).Details: - Version number: 3 - Hash Algorithm: MD5 - Name Space: YES (custom)
- Parameters:
namespace- a custom name space UUID in string formatname- a byte array- Returns:
- a version 3 UUID
- Throws:
InvalidUuidException- if the namespace is invalid
-
getNameBasedMd5
public static UUID getNameBasedMd5(UuidNamespace namespace, String name)
Returns a name-based UUID (MD5).Details: - Version number: 3 - Hash Algorithm: MD5 - Name Space: YES (predefined)
Name spaces predefined by RFC-4122 (Appendix C): - NAMESPACE_DNS: Name string is a fully-qualified domain name; - NAMESPACE_URL: Name string is a URL; - NAMESPACE_ISO_OID: Name string is an ISO OID; - NAMESPACE_X500_DN: Name string is an X.500 DN (in DER or a text format).
See:UuidNamespace.- Parameters:
namespace- a predefined name space enumerationname- a name string- Returns:
- a version 3 UUID
-
getNameBasedMd5
public static UUID getNameBasedMd5(UuidNamespace namespace, byte[] name)
Returns a name-based UUID (MD5).Details: - Version number: 3 - Hash Algorithm: MD5 - Name Space: YES (predefined)
Name spaces predefined by RFC-4122 (Appendix C): - NAMESPACE_DNS: Name string is a fully-qualified domain name; - NAMESPACE_URL: Name string is a URL; - NAMESPACE_ISO_OID: Name string is an ISO OID; - NAMESPACE_X500_DN: Name string is an X.500 DN (in DER or a text format).
See:UuidNamespace.- Parameters:
namespace- a predefined name space enumerationname- a byte array- Returns:
- a version 3 UUID
-
getNameBasedSha1
public static UUID getNameBasedSha1(String name)
Returns a name-based UUID (SHA1).Details: - Version number: 5 - Hash Algorithm: SHA1 - Name Space: NO
- Parameters:
name- a name string- Returns:
- a version 5 UUID
-
getNameBasedSha1
public static UUID getNameBasedSha1(byte[] name)
Returns a name-based UUID (SHA1).Details: - Version number: 5 - Hash Algorithm: SHA1 - Name Space: NO
- Parameters:
name- a byte array- Returns:
- a version 5 UUID
-
getNameBasedSha1
public static UUID getNameBasedSha1(UUID namespace, String name)
Returns a name-based UUID (SHA1).Details: - Version number: 5 - Hash Algorithm: SHA1 - Name Space: YES (custom)
- Parameters:
namespace- a custom name space UUIDname- a name string- Returns:
- a version 5 UUID
-
getNameBasedSha1
public static UUID getNameBasedSha1(UUID namespace, byte[] name)
Returns a name-based UUID (SHA1).Details: - Version number: 5 - Hash Algorithm: SHA1 - Name Space: YES (custom)
- Parameters:
namespace- a custom name space UUIDname- a byte array- Returns:
- a version 5 UUID
-
getNameBasedSha1
public static UUID getNameBasedSha1(String namespace, String name)
Returns a name-based UUID (SHA1).Details: - Version number: 5 - Hash Algorithm: SHA1 - Name Space: YES (custom)
- Parameters:
namespace- a custom name space UUID in string formatname- a name string- Returns:
- a version 5 UUID
- Throws:
InvalidUuidException- if the namespace is invalid
-
getNameBasedSha1
public static UUID getNameBasedSha1(String namespace, byte[] name)
Returns a name-based UUID (SHA1).Details: - Version number: 5 - Hash Algorithm: SHA1 - Name Space: YES (custom)
- Parameters:
namespace- a custom name space UUID in string formatname- a byte array- Returns:
- a version 5 UUID
- Throws:
InvalidUuidException- if the namespace is invalid
-
getNameBasedSha1
public static UUID getNameBasedSha1(UuidNamespace namespace, String name)
Returns a name-based UUID (SHA1).Details: - Version number: 5 - Hash Algorithm: SHA1 - Name Space: YES (predefined)
Name spaces predefined by RFC-4122 (Appendix C): - NAMESPACE_DNS: Name string is a fully-qualified domain name; - NAMESPACE_URL: Name string is a URL; - NAMESPACE_ISO_OID: Name string is an ISO OID; - NAMESPACE_X500_DN: Name string is an X.500 DN (in DER or a text format).
See:UuidNamespace.- Parameters:
namespace- a predefined name space enumerationname- a name string- Returns:
- a version 5 UUID
-
getNameBasedSha1
public static UUID getNameBasedSha1(UuidNamespace namespace, byte[] name)
Returns a name-based UUID (SHA1).Details: - Version number: 5 - Hash Algorithm: SHA1 - Name Space: YES (predefined)
Name spaces predefined by RFC-4122 (Appendix C): - NAMESPACE_DNS: Name string is a fully-qualified domain name; - NAMESPACE_URL: Name string is a URL; - NAMESPACE_ISO_OID: Name string is an ISO OID; - NAMESPACE_X500_DN: Name string is an X.500 DN (in DER or a text format).
See:UuidNamespace.- Parameters:
namespace- a predefined name space enumerationname- a byte array- Returns:
- a version 5 UUID
-
getDceSecurity
public static UUID getDceSecurity(byte localDomain, int localIdentifier)
Returns a DCE Security UUID. See:UuidLocalDomain.Details: - Version number: 2 - Node identifier: random
- Parameters:
localDomain- a custom local domain bytelocalIdentifier- a local identifier- Returns:
- a version 2 UUID
-
getDceSecurityWithMac
public static UUID getDceSecurityWithMac(byte localDomain, int localIdentifier)
Returns a DCE Security UUID with hardware address as node identifier. See:UuidLocalDomain.Details: - Version number: 2 - Node identifier: MAC
- Parameters:
localDomain- a custom local domain bytelocalIdentifier- a local identifier- Returns:
- a version 2 UUID
-
getDceSecurityWithHash
public static UUID getDceSecurityWithHash(byte localDomain, int localIdentifier)
Returns a DCE Security UUID with system data hash as node identifier. See:UuidLocalDomain.Details: - Version number: 2 - Node identifier: system data hash
- Parameters:
localDomain- a custom local domain bytelocalIdentifier- a local identifier- Returns:
- a version 2 UUID
-
getDceSecurity
public static UUID getDceSecurity(UuidLocalDomain localDomain, int localIdentifier)
Returns a DCE Security UUID.Details: - Version number: 2 - Node identifier: random
Local domains predefined by DCE 1.1 Authentication and Security Services (Chapter 11): - LOCAL_DOMAIN_PERSON: 0 (interpreted as POSIX UID domain); - LOCAL_DOMAIN_GROUP: 1 (interpreted as POSIX GID domain); - LOCAL_DOMAIN_ORG: 2.
See:UuidLocalDomain.- Parameters:
localDomain- a predefined local domain enumerationlocalIdentifier- a local identifier- Returns:
- a version 2 UUID
-
getDceSecurityWithMac
public static UUID getDceSecurityWithMac(UuidLocalDomain localDomain, int localIdentifier)
Returns a DCE Security UUID with hardware address as node identifier.Details: - Version number: 2 - Node identifier: MAC
Local domains predefined by DCE 1.1 Authentication and Security Services (Chapter 11): - LOCAL_DOMAIN_PERSON: 0 (interpreted as POSIX UID domain); - LOCAL_DOMAIN_GROUP: 1 (interpreted as POSIX GID domain); - LOCAL_DOMAIN_ORG: 2.
See:UuidLocalDomain.- Parameters:
localDomain- a predefined local domain enumerationlocalIdentifier- a local identifier- Returns:
- a version 2 UUID
-
getDceSecurityWithHash
public static UUID getDceSecurityWithHash(UuidLocalDomain localDomain, int localIdentifier)
Returns a DCE Security UUID with system data hash as node identifier. See:UuidLocalDomain.Details: - Version number: 2 - Node identifier: system data hash
- Parameters:
localDomain- a predefined local domain enumerationlocalIdentifier- a local identifier- Returns:
- a version 2 UUID
-
getPrefixComb
public static UUID getPrefixComb()
Returns a Prefix COMB. The creation millisecond is a 6 bytes PREFIX is at the MOST significant bits. Read: The Cost of GUIDs as Primary Keys http://www.informit.com/articles/article.aspx?p=25862- Returns:
- a GUID
-
getSuffixComb
public static UUID getSuffixComb()
Returns a Suffix COMB. The creation millisecond is a 6 bytes SUFFIX is at the LEAST significant bits. Read: The Cost of GUIDs as Primary Keys http://www.informit.com/articles/article.aspx?p=25862- Returns:
- a GUID
-
getShortPrefixComb
public static UUID getShortPrefixComb()
Returns n Short Prefix COMB. The creation minute is a 2 bytes PREFIX is at the MOST significant bits. The prefix wraps around every ~45 days (2^16/60/24 = ~45). Read: Sequential UUID Generators https://www.2ndquadrant.com/en/blog/sequential-uuid-generators/- Returns:
- a GUID
-
getShortSuffixComb
public static UUID getShortSuffixComb()
Returns a Short Suffix COMB. The creation minute is a 2 bytes SUFFIX is at the LEAST significant bits. The suffix wraps around every ~45 days (2^16/60/24 = ~45). Read: Sequential UUID Generators https://www.2ndquadrant.com/en/blog/sequential-uuid-generators/- Returns:
- a GUID
-
getRandomBasedCreator
public static RandomBasedUuidCreator getRandomBasedCreator()
Returns aRandomBasedUuidCreatorthat creates UUID version 4.- Returns:
RandomBasedUuidCreator
-
getTimeBasedCreator
public static TimeBasedUuidCreator getTimeBasedCreator()
Returns aTimeBasedUuidCreatorthat creates UUID version 1.- Returns:
TimeBasedUuidCreator
-
getTimeOrderedCreator
public static TimeOrderedUuidCreator getTimeOrderedCreator()
Returns aTimeOrderedUuidCreatorthat creates UUID version 6.- Returns:
TimeOrderedUuidCreator
-
getNameBasedMd5Creator
public static NameBasedMd5UuidCreator getNameBasedMd5Creator()
Returns aNameBasedMd5UuidCreatorthat creates UUID version 3.- Returns:
NameBasedMd5UuidCreator
-
getNameBasedSha1Creator
public static NameBasedSha1UuidCreator getNameBasedSha1Creator()
Returns aNameBasedSha1UuidCreatorthat creates UUID version 5.- Returns:
NameBasedSha1UuidCreator
-
getDceSecurityCreator
public static DceSecurityUuidCreator getDceSecurityCreator()
Returns aDceSecurityUuidCreatorthat creates UUID version 2.- Returns:
DceSecurityUuidCreator
-
getSuffixCombCreator
public static SuffixCombCreator getSuffixCombCreator()
Returns aSuffixCombCreator. Read: The Cost of GUIDs as Primary Keys http://www.informit.com/articles/article.aspx?p=25862- Returns:
SuffixCombCreator
-
getPrefixCombCreator
public static PrefixCombCreator getPrefixCombCreator()
Returns aPrefixCombCreator. Read: The Cost of GUIDs as Primary Keys http://www.informit.com/articles/article.aspx?p=25862- Returns:
PrefixCombCreator
-
getShortPrefixCombCreator
public static ShortPrefixCombCreator getShortPrefixCombCreator()
Returns aShortPrefixCombCreator. Read: Sequential UUID Generators https://www.2ndquadrant.com/en/blog/sequential-uuid-generators/- Returns:
ShortPrefixCombCreator
-
getShortSuffixCombCreator
public static ShortSuffixCombCreator getShortSuffixCombCreator()
Returns aShortSuffixCombCreator. Read: Sequential UUID Generators https://www.2ndquadrant.com/en/blog/sequential-uuid-generators/- Returns:
ShortSuffixCombCreator
-
-