com.mysema.query.codegen
Enum TypeCategory
java.lang.Object
java.lang.Enum<TypeCategory>
com.mysema.query.codegen.TypeCategory
- All Implemented Interfaces:
- Serializable, Comparable<TypeCategory>
@Immutable
public enum TypeCategory
- extends Enum<TypeCategory>
TypeCategory defines the expression type used for a Field
- Author:
- tiwe
SIMPLE
public static final TypeCategory SIMPLE
MAP
public static final TypeCategory MAP
COLLECTION
public static final TypeCategory COLLECTION
LIST
public static final TypeCategory LIST
SET
public static final TypeCategory SET
ARRAY
public static final TypeCategory ARRAY
COMPARABLE
public static final TypeCategory COMPARABLE
BOOLEAN
public static final TypeCategory BOOLEAN
DATE
public static final TypeCategory DATE
DATETIME
public static final TypeCategory DATETIME
ENTITY
public static final TypeCategory ENTITY
NUMERIC
public static final TypeCategory NUMERIC
STRING
public static final TypeCategory STRING
TIME
public static final TypeCategory TIME
values
public static TypeCategory[] 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 (TypeCategory c : TypeCategory.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TypeCategory 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
getSuperType
@Nullable
public TypeCategory getSuperType()
supports
public boolean supports(Class<?> cl)
supports
public boolean supports(String className)
isSubCategoryOf
public boolean isSubCategoryOf(TypeCategory ancestor)
- transitive and reflexive subCategoryOf check
- Parameters:
ancestor
-
- Returns:
get
public static TypeCategory get(String className)
get
@Nullable
public static TypeCategory get(PropertyType propertyType)
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.