Package com.axelor.db.mapper
Enum PropertyType
- java.lang.Object
-
- java.lang.Enum<PropertyType>
-
- com.axelor.db.mapper.PropertyType
-
- All Implemented Interfaces:
Serializable
,Comparable<PropertyType>
public enum PropertyType extends Enum<PropertyType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARY
BOOLEAN
DATE
DATETIME
DECIMAL
DOUBLE
ENUM
INTEGER
LONG
MANY_TO_MANY
MANY_TO_ONE
ONE_TO_MANY
ONE_TO_ONE
STRING
TEXT
TIME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyType
get(String value)
static PropertyType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PropertyType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final PropertyType STRING
-
TEXT
public static final PropertyType TEXT
-
BOOLEAN
public static final PropertyType BOOLEAN
-
INTEGER
public static final PropertyType INTEGER
-
LONG
public static final PropertyType LONG
-
DOUBLE
public static final PropertyType DOUBLE
-
DECIMAL
public static final PropertyType DECIMAL
-
DATE
public static final PropertyType DATE
-
TIME
public static final PropertyType TIME
-
DATETIME
public static final PropertyType DATETIME
-
BINARY
public static final PropertyType BINARY
-
ENUM
public static final PropertyType ENUM
-
ONE_TO_ONE
public static final PropertyType ONE_TO_ONE
-
MANY_TO_ONE
public static final PropertyType MANY_TO_ONE
-
ONE_TO_MANY
public static final PropertyType ONE_TO_MANY
-
MANY_TO_MANY
public static final PropertyType MANY_TO_MANY
-
-
Method Detail
-
values
public static PropertyType[] 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 (PropertyType c : PropertyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyType 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
-
get
public static PropertyType get(String value)
-
-