Module org.eclipse.persistence.core
Annotation Type 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
- See Also:
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass
<?> 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.Class
<?> 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.Class
<?> A Default Insert Query Redirector will be applied to any executing InsertObjectQuery that does not have a redirector set directly on the query.Class
<?> A Default ReadAll Query Redirector will be applied to any executing ReadAllQuery that does not have a redirector set directly on the query.Class
<?> A Default ReadObject Query Redirector will be applied to any executing ReadObjectQuery that does not have a redirector set directly on the query.Class
<?> A Default ReportQuery Redirector will be applied to any executing ReportQuery that does not have a redirector set directly on the query.Class
<?> 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 Details
-
allQueries
Class<?> allQueriesThis 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
Class<?> readAllA 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
Class<?> readObjectA 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
Class<?> reportA 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
Class<?> updateA 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
Class<?> insertA 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
Class<?> deleteA 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
-