|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<QueryLookupStrategy>
org.synyx.hades.dao.query.QueryLookupStrategy
public enum QueryLookupStrategy
Query lookup strategy to execute finders.
| Enum Constant Summary | |
|---|---|
CREATE
Always creates the query from the given method. |
|
CREATE_IF_NOT_FOUND
Tries to lookup a declared query (either named query or an annotated Query but creates a query from the method
name if no declared query found. |
|
USE_DECLARED_QUERY
Uses a named query named {@literal $DomainClass. |
|
| Method Summary | |
|---|---|
static QueryLookupStrategy |
fromXml(java.lang.String xml)
Returns a strategy from the given XML value. |
static QueryLookupStrategy |
getDefault()
Returns the default strategy to be used. |
abstract org.synyx.hades.dao.query.HadesQuery |
resolveQuery(QueryMethod method)
Resolves a HadesQuery from the given QueryMethod that can
be executed afterwards. |
static QueryLookupStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QueryLookupStrategy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final QueryLookupStrategy CREATE
public static final QueryLookupStrategy USE_DECLARED_QUERY
public static final QueryLookupStrategy CREATE_IF_NOT_FOUND
Query but creates a query from the method
name if no declared query found.
| Method Detail |
|---|
public static QueryLookupStrategy[] values()
for (QueryLookupStrategy c : QueryLookupStrategy.values()) System.out.println(c);
public static QueryLookupStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static QueryLookupStrategy fromXml(java.lang.String xml)
xml -
public static QueryLookupStrategy getDefault()
public abstract org.synyx.hades.dao.query.HadesQuery resolveQuery(QueryMethod method)
HadesQuery from the given QueryMethod that can
be executed afterwards.
method -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||