@ThreadSafe public final class GlobalIDFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PREFIX
The default prefix to use for creating IDs
|
static int |
STRING_ID_MAX_LENGTH
The maximum string length of IDs created by the String based ID factory.
|
public static final String DEFAULT_PREFIX
public static final int STRING_ID_MAX_LENGTH
public static boolean hasIntIDFactory()
@Nullable public static IIntIDFactory getIntIDFactory()
null.@Nonnull public static EChange setIntIDFactory(@Nullable IIntIDFactory aFactory)
public static boolean hasPersistentIntIDFactory()
@Nullable public static IIntIDFactory getPersistentIntIDFactory()
null.@Nonnull public static EChange setPersistentIntIDFactory(@Nullable IIntIDFactory aFactory)
public static boolean hasLongIDFactory()
@Nullable public static ILongIDFactory getLongIDFactory()
null.@Nonnull public static EChange setLongIDFactory(@Nullable ILongIDFactory aFactory)
public static boolean hasPersistentLongIDFactory()
@Nullable public static ILongIDFactory getPersistentLongIDFactory()
null.@Nonnull public static EChange setPersistentLongIDFactory(@Nullable ILongIDFactory aFactory)
public static boolean hasStringIDFactory()
@Nullable public static IStringIDFactory getStringIDFactory()
null.@Nonnull public static EChange setStringIDFactory(@Nullable IStringIDFactory aFactory)
public static boolean hasPersistentStringIDFactory()
@Nullable public static IStringIDFactory getPersistentStringIDFactory()
null.@Nonnull public static EChange setPersistentStringIDFactory(@Nullable IStringIDFactory aFactory)
public static int getNewIntID()
public static int getNewPersistentIntID()
public static long getNewLongID()
public static long getNewPersistentLongID()
@Nonnull public static String getNewPersistentStringID()
public static int[] getBulkNewIntIDs(@Nonnegative int nCount)
nCount - The number of IDs to retrieve. Must be > 0.public static int[] getBulkNewPersistentIntIDs(@Nonnegative int nCount)
nCount - The number of IDs to retrieve. Must be > 0.public static long[] getBulkNewLongIDs(@Nonnegative int nCount)
nCount - The number of IDs to retrieve. Must be > 0.public static long[] getBulkNewPersistentLongIDs(@Nonnegative int nCount)
nCount - The number of IDs to retrieve. Must be > 0.@Nonnull public static String[] getBulkNewStringIDs(@Nonnegative int nCount)
nCount - The number of IDs to retrieve@Nonnull public static String[] getBulkNewPersistentStringIDs(@Nonnegative int nCount)
nCount - The number of IDs to retrieve. Must be > 0.Copyright © 2014–2022 Philip Helger. All rights reserved.