Package org.intermine.sql
Enum DatabaseUtil.Type
- java.lang.Object
-
- java.lang.Enum<DatabaseUtil.Type>
-
- org.intermine.sql.DatabaseUtil.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DatabaseUtil.Type>
- Enclosing class:
- DatabaseUtil
public static enum DatabaseUtil.Type extends java.lang.Enum<DatabaseUtil.Type>
- Author:
- Matthew
-
-
Enum Constant Summary
Enum Constants Enum Constant Description bigint
big intboolean_type
booleandouble_precision
doubleinteger
integerreal
realtext
texttimestamp
timestampeuuid
uuid
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DatabaseUtil.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DatabaseUtil.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
text
public static final DatabaseUtil.Type text
text
-
integer
public static final DatabaseUtil.Type integer
integer
-
bigint
public static final DatabaseUtil.Type bigint
big int
-
real
public static final DatabaseUtil.Type real
real
-
double_precision
public static final DatabaseUtil.Type double_precision
double
-
timestamp
public static final DatabaseUtil.Type timestamp
timestampe
-
boolean_type
public static final DatabaseUtil.Type boolean_type
boolean
-
uuid
public static final DatabaseUtil.Type uuid
uuid
-
-
Method Detail
-
values
public static DatabaseUtil.Type[] 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 (DatabaseUtil.Type c : DatabaseUtil.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatabaseUtil.Type 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
-
-