EclipseLink 1.2.0, build 'v20091016-r5565' API Reference

org.eclipse.persistence.annotations
Annotation Type QueryRedirectors


@Target(value=TYPE)
@Retention(value=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.

See Also:
QueryRedirector
Author:
Gordon Yorke
Since:
EclipseLink 1.0

Optional Element Summary
 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.
 

allQueries

public abstract 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

public abstract 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

public abstract 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

public abstract 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

public abstract 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

public abstract 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

public abstract 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

EclipseLink 1.2.0, build 'v20091016-r5565' API Reference