mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
changed visibility of certain methods
This commit is contained in:
parent
dd2a304315
commit
efb2f379b4
@ -144,7 +144,7 @@ public class LuceneSerializer {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private Query eq(Operation<?> operation, QueryMetadata metadata) {
|
||||
protected Query eq(Operation<?> operation, QueryMetadata metadata) {
|
||||
verifyArguments(operation);
|
||||
String field = toField(operation.getArg(0));
|
||||
if (Number.class.isAssignableFrom(operation.getArg(1).getType())) {
|
||||
@ -199,7 +199,7 @@ public class LuceneSerializer {
|
||||
return bq;
|
||||
}
|
||||
|
||||
private Query ne(Operation<?> operation, QueryMetadata metadata) {
|
||||
protected Query ne(Operation<?> operation, QueryMetadata metadata) {
|
||||
BooleanQuery bq = new BooleanQuery();
|
||||
bq.add(new BooleanClause(eq(operation, metadata), Occur.MUST_NOT));
|
||||
return bq;
|
||||
@ -329,7 +329,7 @@ public class LuceneSerializer {
|
||||
throw new IllegalArgumentException("Unable to transform " + expr + " to field");
|
||||
}
|
||||
|
||||
public String toField(Path<?> path) {
|
||||
protected String toField(Path<?> path) {
|
||||
return path.getMetadata().getExpression().toString();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user