Enum DbColumnType
- java.lang.Object
-
- java.lang.Enum<DbColumnType>
-
- com.feedzai.commons.sql.abstraction.ddl.DbColumnType
-
- All Implemented Interfaces:
Serializable,Comparable<DbColumnType>
public enum DbColumnType extends Enum<DbColumnType>
The column types.- Since:
- 2.0.0
- Author:
- Rui Vilao (rui.vilao@feedzai.com)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DbColumnTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DbColumnType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final DbColumnType BOOLEAN
The boolean type.
-
STRING
public static final DbColumnType STRING
The string type.
-
INT
public static final DbColumnType INT
The integer type.
-
DOUBLE
public static final DbColumnType DOUBLE
The double type.
-
LONG
public static final DbColumnType LONG
The long type.
-
BLOB
public static final DbColumnType BLOB
The blob type.
-
CLOB
public static final DbColumnType CLOB
The clob type
-
JSON
public static final DbColumnType JSON
The json type. This is not supported by all engines; engines not supporting it use the CLOB type.- Since:
- 2.1.5
-
UNMAPPED
public static final DbColumnType UNMAPPED
A type that is not mapped.
-
-
Method Detail
-
values
public static DbColumnType[] 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 (DbColumnType c : DbColumnType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DbColumnType 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
-
-