Enum H2DatabaseType
- java.lang.Object
-
- java.lang.Enum<H2DatabaseType>
-
- org.apache.ignite.internal.processors.query.h2.H2DatabaseType
-
- All Implemented Interfaces:
Serializable,Comparable<H2DatabaseType>
public enum H2DatabaseType extends Enum<H2DatabaseType>
Enum that helps to map java types to database types.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdBTypeAsString()Gets DB type name.static H2DatabaseTypefromClass(Class<?> cls)Resolves enum by class.StringtoString()static H2DatabaseTypevalueOf(String name)Returns the enum constant of this type with the specified name.static H2DatabaseType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INT
public static final H2DatabaseType INT
-
BOOL
public static final H2DatabaseType BOOL
-
TINYINT
public static final H2DatabaseType TINYINT
-
SMALLINT
public static final H2DatabaseType SMALLINT
-
BIGINT
public static final H2DatabaseType BIGINT
-
DECIMAL
public static final H2DatabaseType DECIMAL
-
DOUBLE
public static final H2DatabaseType DOUBLE
-
REAL
public static final H2DatabaseType REAL
-
TIME
public static final H2DatabaseType TIME
-
TIMESTAMP
public static final H2DatabaseType TIMESTAMP
-
DATE
public static final H2DatabaseType DATE
-
VARCHAR
public static final H2DatabaseType VARCHAR
-
CHAR
public static final H2DatabaseType CHAR
-
BINARY
public static final H2DatabaseType BINARY
-
UUID
public static final H2DatabaseType UUID
-
ARRAY
public static final H2DatabaseType ARRAY
-
GEOMETRY
public static final H2DatabaseType GEOMETRY
-
OTHER
public static final H2DatabaseType OTHER
-
-
Method Detail
-
values
public static H2DatabaseType[] 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 (H2DatabaseType c : H2DatabaseType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static H2DatabaseType 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
-
fromClass
public static H2DatabaseType fromClass(Class<?> cls)
Resolves enum by class.- Parameters:
cls- Class.- Returns:
- Enum value.
-
dBTypeAsString
public String dBTypeAsString()
Gets DB type name.- Returns:
- DB type name.
-
toString
public String toString()
- Overrides:
toStringin classEnum<H2DatabaseType>
-
-