Enum PersistenceProviderType
- java.lang.Object
-
- java.lang.Enum<PersistenceProviderType>
-
- com.scaleoutsoftware.digitaltwin.core.PersistenceProviderType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PersistenceProviderType>
,java.lang.constant.Constable
public enum PersistenceProviderType extends java.lang.Enum<PersistenceProviderType> implements java.io.Serializable
AvailablePersistenceProvider
types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AzureDigitalTwinsService
Enum for the Azure Digital Twin service.DynamoDb
Enum for DynamoDBSQLite
Enum for SQLiteSQLServer
Enum for SQLServerUnconfigured
Enum for an unconfigured PersistenceProvider
-
Method Summary
Modifier and Type Method Description static PersistenceProviderType
fromOrdinal(int ordinal)
Return the PersistenceProviderType from an ordinal value.static PersistenceProviderType
fromString(java.lang.String name)
Return the PersistenceProviderType from a string value.static PersistenceProviderType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PersistenceProviderType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AzureDigitalTwinsService
public static final PersistenceProviderType AzureDigitalTwinsService
Enum for the Azure Digital Twin service.
-
DynamoDb
public static final PersistenceProviderType DynamoDb
Enum for DynamoDB
-
SQLite
public static final PersistenceProviderType SQLite
Enum for SQLite
-
SQLServer
public static final PersistenceProviderType SQLServer
Enum for SQLServer
-
Unconfigured
public static final PersistenceProviderType Unconfigured
Enum for an unconfigured PersistenceProvider
-
-
Method Detail
-
values
public static PersistenceProviderType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PersistenceProviderType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromString
public static PersistenceProviderType fromString(java.lang.String name)
Return the PersistenceProviderType from a string value. We do not rely on Java's naming because the string values need to be cross-platform and the names may be different in each language.- Parameters:
name
- the enums name.- Returns:
- the associated PersistenceProviderType, or null if no association exists.
-
fromOrdinal
public static PersistenceProviderType fromOrdinal(int ordinal)
Return the PersistenceProviderType from an ordinal value. We do not rely on Java's ordering because the ordinal values need to be cross-platform, and the values may be ordered differently.- Parameters:
ordinal
- the enums ordinal value.- Returns:
- the associated PersistenceProviderType, or null if no association exists.
-
-