Package org.nuxeo.ecm.core.storage.dbs
Enum DBSRepositoryBase.IdType
- java.lang.Object
-
- java.lang.Enum<DBSRepositoryBase.IdType>
-
- org.nuxeo.ecm.core.storage.dbs.DBSRepositoryBase.IdType
-
- All Implemented Interfaces:
Serializable
,Comparable<DBSRepositoryBase.IdType>
- Enclosing class:
- DBSRepositoryBase
public static enum DBSRepositoryBase.IdType extends Enum<DBSRepositoryBase.IdType>
Type of id to used for documents.- Since:
- 8.3
-
-
Enum Constant Summary
Enum Constants Enum Constant Description sequence
Integer sequence maintained by the database.sequenceHexRandomized
Integer sequence maintained by the database, in a pseudo-random order, as hex.uuid
Random UUID stored as a native UUID type.varchar
Random UUID stored in a string.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DBSRepositoryBase.IdType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DBSRepositoryBase.IdType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
varchar
public static final DBSRepositoryBase.IdType varchar
Random UUID stored in a string.
-
uuid
public static final DBSRepositoryBase.IdType uuid
Random UUID stored as a native UUID type.
-
sequence
public static final DBSRepositoryBase.IdType sequence
Integer sequence maintained by the database.
-
sequenceHexRandomized
public static final DBSRepositoryBase.IdType sequenceHexRandomized
Integer sequence maintained by the database, in a pseudo-random order, as hex.- Since:
- 11.1
-
-
Method Detail
-
values
public static DBSRepositoryBase.IdType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DBSRepositoryBase.IdType c : DBSRepositoryBase.IdType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DBSRepositoryBase.IdType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-