replaced findUnique by "default" method in interfaces. (#1124)

This commit is contained in:
Roland Praml authored and Rob Bygrave committed 2017-09-12 23:20:04 +12:00
1 parent 7e8ed72b7b
commit b8e1dffca2
11 files changed
+15 -50

No files matched your search

@@ -407,11 +407,6 @@ public class DefaultExpressionList<T> implements SpiExpressionList<T> {
return query.findOneOrEmpty();
}
@Override
public T findUnique() {
return query.findOne();
}
@Override
public ExpressionList<T> filterMany(String prop) {
return query.filterMany(prop);
@@ -81,11 +81,6 @@ public class FilterExpressionList<T> extends DefaultExpressionList<T> {
return rootQuery.findSet();
}
@Override
public T findUnique() {
return rootQuery.findOne();
}
@Override
public ExpressionList<T> having() {
throw new PersistenceException(notAllowedMessage);
@@ -404,11 +404,6 @@ class JunctionExpression<T> implements SpiJunction<T>, SpiExpression, Expression
return exprList.findOneOrEmpty();
}
@Override
public T findUnique() {
return exprList.findOne();
}
@Override
public Query<T> forUpdate() {
return exprList.forUpdate();