DATALDAP-37 - Polishing.

Fixed capitalization of Querydsl related classes.
This commit is contained in:
Oliver Gierke
2017-05-19 10:59:16 +02:00
parent 18e5d2301c
commit f6fff99bcc
4 changed files with 14 additions and 14 deletions

View File

@@ -82,7 +82,7 @@ public class LdapRepositoryFactory extends RepositoryFactorySupport {
boolean isQueryDslRepository = QUERY_DSL_PRESENT
&& QuerydslPredicateExecutor.class.isAssignableFrom(metadata.getRepositoryInterface());
return isQueryDslRepository ? QueryDslLdapRepository.class : SimpleLdapRepository.class;
return isQueryDslRepository ? QuerydslLdapRepository.class : SimpleLdapRepository.class;
}
/*

View File

@@ -36,32 +36,32 @@ import com.querydsl.core.types.Predicate;
* @author Eddu Melendez
* @author Mark Paluch
*/
public class QueryDslLdapQuery<K> implements FilteredClause<QueryDslLdapQuery<K>> {
public class QuerydslLdapQuery<K> implements FilteredClause<QuerydslLdapQuery<K>> {
private final LdapOperations ldapOperations;
private final Class<? extends K> entityType;
private final LdapSerializer filterGenerator;
private QueryMixin<QueryDslLdapQuery<K>> queryMixin = new QueryMixin<>(this,
private QueryMixin<QuerydslLdapQuery<K>> queryMixin = new QueryMixin<>(this,
new DefaultQueryMetadata().noValidate());
/**
* Creates a new {@link QueryDslLdapQuery}.
* Creates a new {@link QuerydslLdapQuery}.
*
* @param ldapOperations must not be {@literal null}.
* @param entityPath must not be {@literal null}.
*/
public QueryDslLdapQuery(LdapOperations ldapOperations, EntityPath<K> entityPath) {
public QuerydslLdapQuery(LdapOperations ldapOperations, EntityPath<K> entityPath) {
this(ldapOperations, entityPath.getType());
}
/**
* Creates a new {@link QueryDslLdapQuery}.
* Creates a new {@link QuerydslLdapQuery}.
*
* @param ldapOperations must not be {@literal null}.
* @param entityType must not be {@literal null}.
*/
public QueryDslLdapQuery(LdapOperations ldapOperations, Class<? extends K> entityType) {
public QuerydslLdapQuery(LdapOperations ldapOperations, Class<? extends K> entityType) {
Assert.notNull(ldapOperations, "LdapOperations must not be null!");
Assert.notNull(entityType, "Type must not be null!");
@@ -75,7 +75,7 @@ public class QueryDslLdapQuery<K> implements FilteredClause<QueryDslLdapQuery<K>
* @see com.querydsl.core.FilteredClause#where(com.querydsl.core.types.Predicate[])
*/
@Override
public QueryDslLdapQuery<K> where(Predicate... o) {
public QuerydslLdapQuery<K> where(Predicate... o) {
return queryMixin.where(o);
}

View File

@@ -36,19 +36,19 @@ import com.querydsl.core.types.Predicate;
* @author Eddu Melendez
* @author Mark Paluch
*/
public class QueryDslLdapRepository<T> extends SimpleLdapRepository<T> implements QuerydslPredicateExecutor<T> {
public class QuerydslLdapRepository<T> extends SimpleLdapRepository<T> implements QuerydslPredicateExecutor<T> {
private final LdapOperations ldapOperations;
private final Class<T> entityType;
/**
* Creates a new {@link QueryDslLdapRepository}.
* Creates a new {@link QuerydslLdapRepository}.
*
* @param ldapOperations must not be {@literal null}.
* @param odm must not be {@literal null}.
* @param entityType must not be {@literal null}.
*/
public QueryDslLdapRepository(LdapOperations ldapOperations, ObjectDirectoryMapper odm, Class<T> entityType) {
public QuerydslLdapRepository(LdapOperations ldapOperations, ObjectDirectoryMapper odm, Class<T> entityType) {
super(ldapOperations, odm, entityType);
this.ldapOperations = ldapOperations;
@@ -99,8 +99,8 @@ public class QueryDslLdapRepository<T> extends SimpleLdapRepository<T> implement
throw new UnsupportedOperationException();
}
private QueryDslLdapQuery<T> queryFor(Predicate predicate) {
return new QueryDslLdapQuery<>(ldapOperations, entityType).where(predicate);
private QuerydslLdapQuery<T> queryFor(Predicate predicate) {
return new QuerydslLdapQuery<>(ldapOperations, entityType).where(predicate);
}
/* (non-Javadoc)

View File

@@ -29,7 +29,7 @@ import com.querydsl.core.types.Expression;
* @author Mattias Hellborg Arthursson
* @author Eddu Melendez
*/
public class QueryDslFilterGeneratorTests {
public class QuerydslFilterGeneratorTests {
private LdapSerializer tested;
private QPerson person;