mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
removed factory method
This commit is contained in:
parent
2795b0de16
commit
85cbe39748
@ -114,16 +114,6 @@ public class DetachableMixin implements Detachable {
|
||||
}
|
||||
return metadata;
|
||||
}
|
||||
|
||||
private QueryMetadata projection(Expression<?> first, Expression<?> second, Expression<?>[] rest) {
|
||||
QueryMetadata metadata = queryMixin.getMetadata().clone();
|
||||
metadata.addProjection(nullAsTemplate(first));
|
||||
metadata.addProjection(nullAsTemplate(second));
|
||||
for (Expression<?> expr : rest) {
|
||||
metadata.addProjection(nullAsTemplate(expr));
|
||||
}
|
||||
return metadata;
|
||||
}
|
||||
|
||||
private Expression<?> nullAsTemplate(@Nullable Expression<?> expr){
|
||||
return expr != null ? expr : NullExpression.DEFAULT;
|
||||
@ -186,12 +176,5 @@ public class DetachableMixin implements Detachable {
|
||||
metadata.setUnique(true);
|
||||
return metadata;
|
||||
}
|
||||
|
||||
private QueryMetadata uniqueProjection(Expression<?> first, Expression<?> second,
|
||||
Expression<?>[] rest) {
|
||||
QueryMetadata metadata = projection(first, second, rest);
|
||||
metadata.setUnique(true);
|
||||
return metadata;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user