com.mysema.query.annotations
Enum PropertyType
java.lang.Object
java.lang.Enum<PropertyType>
com.mysema.query.annotations.PropertyType
- All Implemented Interfaces:
- Serializable, Comparable<PropertyType>
public enum PropertyType
- extends Enum<PropertyType>
PropertyType defines the Path type to be used for a Domain property
- Author:
- tiwe
Method Summary |
com.mysema.codegen.model.TypeCategory |
getCategory()
|
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. |
COMPARABLE
public static final PropertyType COMPARABLE
ENUM
public static final PropertyType ENUM
DATE
public static final PropertyType DATE
DATETIME
public static final PropertyType DATETIME
NONE
public static final PropertyType NONE
NUMERIC
public static final PropertyType NUMERIC
SIMPLE
public static final PropertyType SIMPLE
STRING
public static final PropertyType STRING
TIME
public static final PropertyType TIME
ENTITY
public static final PropertyType ENTITY
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 name
NullPointerException
- if the argument is null
getCategory
@Nullable
public com.mysema.codegen.model.TypeCategory getCategory()
Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.