New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify query class naming #186

Closed
timowest opened this Issue Jun 29, 2012 · 2 comments

Comments

Projects
None yet
1 participant
@timowest
Member

timowest commented Jun 29, 2012

Query class and interface naming should be consistent in modules

Current state

Here is a list of query interfaces and classes in the Querydsl modules

Collections : ColQuery (interface) - ColQueryImpl
JPA : JPQLQuery (interface) - JPAQuery - HibernateQuery
JDO : JDOQLQuery (interface) - JDOQLQueryImpl
SQL : SQLQuery (interface) - SQLQueryImpl
Mongodb : MongodbQuery
Lucene : LuceneQuery - TypedQuery
Hibernate Search : SearchQuery

Sub queries:

JPA: JPASubQuery - HibernateSubQuery
SQL: SQLSubQuery

The Impl suffix usage in ColQueryImp, JDOQLQueryImpll and SQLQueryImpl differs from the rest.

Proposed changes

Remove Impl suffix

  • SQLQuery is removed and SQLQueryImpl is renamed to SQLQuery
  • ColQuery is removed and ColQueryImpl is renamed to CollQuery
  • JDOQLQueryImpl is renamed to JDOQuery
@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Dec 11, 2012

Member

Here is the result

Collections : CollQuery
JPA : JPQLQuery (interface) - JPAQuery - HibernateQuery
JDO : JDOQLQuery (interface) - JDOQuery
SQL : SQLQuery
Mongodb : MongodbQuery
Lucene : LuceneQuery - TypedQuery
Hibernate Search : SearchQuery

Sub queries:

JPA: JPASubQuery - HibernateSubQuery
SQL: SQLSubQuery

The interface abstraction in the JPA module is used, since it provides two implementation with the same signature and also for JDO this abstraction might be useful for vendor specific customizations.

Member

timowest commented Dec 11, 2012

Here is the result

Collections : CollQuery
JPA : JPQLQuery (interface) - JPAQuery - HibernateQuery
JDO : JDOQLQuery (interface) - JDOQuery
SQL : SQLQuery
Mongodb : MongodbQuery
Lucene : LuceneQuery - TypedQuery
Hibernate Search : SearchQuery

Sub queries:

JPA: JPASubQuery - HibernateSubQuery
SQL: SQLSubQuery

The interface abstraction in the JPA module is used, since it provides two implementation with the same signature and also for JDO this abstraction might be useful for vendor specific customizations.

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Jan 13, 2013

Member

Released in 3.0.0.BETA1

Member

timowest commented Jan 13, 2013

Released in 3.0.0.BETA1

@timowest timowest closed this Jan 13, 2013

@timowest timowest added this to the 3.0.0 milestone Apr 14, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment