Add some common interfaces
Bug #839353 reported by
John Cook
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Querydsl |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Could you create a common interface for all the *QueryFactory implementations? Something like proposed in http://
It could make switching for example from HibernateQueryF
Also, what about adding method getMetadata() to Query interface? All top-level Query implementations have this method, and for SubQuery implementations, it could be implemented if there is no reason to keep it hidden.
To post a comment you must log in.
Fix commited :
/**
* Common interface for QueryFactory implementations
*
* @author tiwe
*
* @param <Q>
* @param <SQ>
*/
public interface QueryFactory<Q extends Query<?>, SQ extends Detachable> {
/**
* Create a new Query
*
* @return
*/
Q query();
/**
* Create a new Sub query
*
* @return
*/
SQ subQuery();
}