#566 - Refactor internals -OrmQueryDetailProperties - remove hasProperties()

This commit is contained in:
Robin Bygrave committed 2016-02-17 16:53:32 +13:00
1 parent 3d3948aa8b
commit 439858b259
3 files changed
+25 -7

No files matched your search

@@ -444,7 +444,7 @@ public class OrmQueryDetail implements Serializable {
* Return true if the query detail has neither select properties specified or any joins defined.
*/
public boolean isEmpty() {
return fetchPaths.isEmpty() && (!baseProps.hasProperties());
return fetchPaths.isEmpty() && baseProps.allProperties();
}
/**
@@ -318,13 +318,8 @@ public class OrmQueryProperties implements Serializable {
}
/**
* Return true if this has properties. Returning false means this part of the
* path is a partial object.
* Return true if this includes all properties on the path.
*/
public boolean hasProperties() {
return included != null;
}
public boolean allProperties() {
return included == null;
}