public enum SimpleEntityPathResolver extends Enum<SimpleEntityPathResolver> implements EntityPathResolver
EntityPathResolver to lookup a query class by reflection and using the static field
of the same type.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T> com.mysema.query.types.EntityPath<T> |
createPath(Class<T> domainClass)
Creates an
EntityPath instance for the given domain class. |
static SimpleEntityPathResolver |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleEntityPathResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleEntityPathResolver INSTANCE
public static SimpleEntityPathResolver[] values()
for (SimpleEntityPathResolver c : SimpleEntityPathResolver.values()) System.out.println(c);
public static SimpleEntityPathResolver valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic <T> com.mysema.query.types.EntityPath<T> createPath(Class<T> domainClass)
EntityPath instance for the given domain class. Tries to lookup a class matching the naming
convention (prepend Q to the simple name of the class, same package) and find a static field of the same type in
it.createPath in interface EntityPathResolverdomainClass - Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.