Annotation Type QueryRedirectors
-
@Target(TYPE) @Retention(RUNTIME) public @interface QueryRedirectors
Redirectors allow EclipseLink queries to be intercepted and pre/post processed or redirected. They provide opportunities to extend query functionality beyond standard EclipseLink support.- Since:
- EclipseLink 1.0
- Author:
- Gordon Yorke
- See Also:
QueryRedirector
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class
allQueries
This AllQueries Query Redirector will be applied to any executing object query that does not have a more precise redirector (like the ReadObjectQuery Redirector) or a redirector set directly on the query.java.lang.Class
delete
A Default Delete Object Query Redirector will be applied to any executing DeleteObjectQuery or DeleteAllQuery that does not have a redirector set directly on the query.java.lang.Class
insert
A Default Insert Query Redirector will be applied to any executing InsertObjectQuery that does not have a redirector set directly on the query.java.lang.Class
readAll
A Default ReadAll Query Redirector will be applied to any executing ReadAllQuery that does not have a redirector set directly on the query.java.lang.Class
readObject
A Default ReadObject Query Redirector will be applied to any executing ReadObjectQuery that does not have a redirector set directly on the query.java.lang.Class
report
A Default ReportQuery Redirector will be applied to any executing ReportQuery that does not have a redirector set directly on the query.java.lang.Class
update
A Default Update Query Redirector will be applied to any executing UpdateObjectQuery or UpdateAllQuery that does not have a redirector set directly on the query.
-
-
-
Element Detail
-
allQueries
java.lang.Class allQueries
This AllQueries Query Redirector will be applied to any executing object query that does not have a more precise redirector (like the ReadObjectQuery Redirector) or a redirector set directly on the query. Query redirectors allow the user to intercept query execution preventing it or alternately performing some side effect like auditing.- Default:
- void.class
-
-
-
readAll
java.lang.Class readAll
A Default ReadAll Query Redirector will be applied to any executing ReadAllQuery that does not have a redirector set directly on the query. Query redirectors allow the user to intercept query execution preventing it or alternately performing some side effect like auditing. For users executing a JPA Query through the getResultList() API this is the redirector that will be invoked- Default:
- void.class
-
-
-
readObject
java.lang.Class readObject
A Default ReadObject Query Redirector will be applied to any executing ReadObjectQuery that does not have a redirector set directly on the query. Query redirectors allow the user to intercept query execution preventing it or alternately performing some side effect like auditing. For users executing a JPA Query through the getSingleResult() API or EntityManager.find() this is the redirector that will be invoked- Default:
- void.class
-
-
-
report
java.lang.Class report
A Default ReportQuery Redirector will be applied to any executing ReportQuery that does not have a redirector set directly on the query. Query redirectors allow the user to intercept query execution preventing it or alternately performing some side effect like auditing. For users executing a JPA Query that contains agregate functions or selects multiple entities this is the redirector that will be invoked- Default:
- void.class
-
-
-
update
java.lang.Class update
A Default Update Query Redirector will be applied to any executing UpdateObjectQuery or UpdateAllQuery that does not have a redirector set directly on the query. In EclipseLink an UpdateObjectQuery is executed whenever flushing changes to the datasource. Query redirectors allow the user to intercept query execution preventing it or alternately performing some side effect like auditing.- Default:
- void.class
-
-
-
insert
java.lang.Class insert
A Default Insert Query Redirector will be applied to any executing InsertObjectQuery that does not have a redirector set directly on the query. In EclipseLink an InsertObjectQuery is executed when persisting an object to the datasource. Query redirectors allow the user to intercept query execution preventing it or alternately performing some side effect like auditing.- Default:
- void.class
-
-
-
delete
java.lang.Class delete
A Default Delete Object Query Redirector will be applied to any executing DeleteObjectQuery or DeleteAllQuery that does not have a redirector set directly on the query. Query redirectors allow the user to intercept query execution preventing it or alternately performing some side effect like auditing.- Default:
- void.class
-
-