|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.synyx.hades.dao.query.QueryMethod
public class QueryMethod
Abstraction of a method that is designated to execute a finder query.
Enriches the standard Method interface with Hades specific
information that is necessary to construct HadesQuerys for the
method.
| Constructor Summary | |
|---|---|
QueryMethod(java.lang.reflect.Method method,
java.lang.Class<?> domainClass,
javax.persistence.EntityManager em,
QueryExtractor extractor)
Creates a new QueryMethod. |
|
QueryMethod(java.lang.reflect.Method method,
java.lang.Class<?> domainClass,
javax.persistence.EntityManager em,
QueryExtractor extractor,
QueryLookupStrategy strategy)
Creates a new QueryMethod from the given parameters. |
|
| Method Summary | |
|---|---|
java.lang.Object |
executeQuery(java.lang.Object... methodParameters)
Executes the Query backing the
QueryMethod with the given parameters. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QueryMethod(java.lang.reflect.Method method,
java.lang.Class<?> domainClass,
javax.persistence.EntityManager em,
QueryExtractor extractor,
QueryLookupStrategy strategy)
QueryMethod from the given parameters. Looks up the
correct query to use for following invocations of the method given.
method - domainClass - em - strategy -
public QueryMethod(java.lang.reflect.Method method,
java.lang.Class<?> domainClass,
javax.persistence.EntityManager em,
QueryExtractor extractor)
QueryMethod. Assumes applying default
QueryLookupStrategy by handing null.
method - domainClass - em - extractor - | Method Detail |
|---|
public java.lang.Object executeQuery(java.lang.Object... methodParameters)
Query backing the
QueryMethod with the given parameters.
em - parameters -
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||