Enum TxDatabaseAdapter.NessieSqlDataType
- java.lang.Object
-
- java.lang.Enum<TxDatabaseAdapter.NessieSqlDataType>
-
- org.projectnessie.versioned.persist.tx.TxDatabaseAdapter.NessieSqlDataType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TxDatabaseAdapter.NessieSqlDataType>
- Enclosing class:
- TxDatabaseAdapter
protected static enum TxDatabaseAdapter.NessieSqlDataType extends java.lang.Enum<TxDatabaseAdapter.NessieSqlDataType>
Defines the types of Nessie data types used to map to SQL datatypes viaTxDatabaseAdapter.databaseSqlFormatParameters(). For example, the SQL datatype used to store aBLOBmight be aBLOBin a specific database andBYTEAin another.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOBColumn-type string for a 'BLOB' column.CONTENT_IDColumn-type string for the content-id.HASHColumn-type string for the string representation of aHash.INTEGERColumn-type string for an integer.KEYColumn-type string for the string representation of aKey.KEY_PREFIXColumn-type string for key-prefix.NAMED_REFColumn-type string for the string representation of aNamedRef.NAMED_REF_TYPEColumn-type string for the named-reference-type (single char).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TxDatabaseAdapter.NessieSqlDataTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TxDatabaseAdapter.NessieSqlDataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOB
public static final TxDatabaseAdapter.NessieSqlDataType BLOB
Column-type string for a 'BLOB' column.
-
HASH
public static final TxDatabaseAdapter.NessieSqlDataType HASH
Column-type string for the string representation of aHash.
-
KEY_PREFIX
public static final TxDatabaseAdapter.NessieSqlDataType KEY_PREFIX
Column-type string for key-prefix.
-
KEY
public static final TxDatabaseAdapter.NessieSqlDataType KEY
Column-type string for the string representation of aKey.
-
NAMED_REF
public static final TxDatabaseAdapter.NessieSqlDataType NAMED_REF
Column-type string for the string representation of aNamedRef.
-
NAMED_REF_TYPE
public static final TxDatabaseAdapter.NessieSqlDataType NAMED_REF_TYPE
Column-type string for the named-reference-type (single char).
-
CONTENT_ID
public static final TxDatabaseAdapter.NessieSqlDataType CONTENT_ID
Column-type string for the content-id.
-
INTEGER
public static final TxDatabaseAdapter.NessieSqlDataType INTEGER
Column-type string for an integer.
-
-
Method Detail
-
values
public static TxDatabaseAdapter.NessieSqlDataType[] 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 (TxDatabaseAdapter.NessieSqlDataType c : TxDatabaseAdapter.NessieSqlDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TxDatabaseAdapter.NessieSqlDataType 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
-
-