Skip to content
Snippets Groups Projects

REL: update changelog, bump version of pom.xml, update DEPENDENCIES

Merged Timm Fitschen requested to merge release-v0.5.0 into main
3 files
+ 34
48
Compare changes
  • Side-by-side
  • Inline

Files

@@ -113,14 +113,10 @@ public class RetrieveFullEntityTransaction extends BackendTransaction {
}
if (needParents(selections)) {
execute(new RetrieveParents(e));
} else {
// do nothing
}
if (needProperties(selections)) {
execute(new RetrieveProperties(e));
} else {
// do nothing
}
// recursion! retrieveSubEntities calls retrieveFull sometimes, but with reduced selectors.
@@ -130,6 +126,12 @@ public class RetrieveFullEntityTransaction extends BackendTransaction {
}
}
/**
* Return true iff anything else than the id is needed for this retrieval.
*
* <p>The notorious case, where it is not necessary to retrieve the sparse entity is during
* `SELECT id FROM ...` queries.
*/
private boolean needMoreThanId(List<Selection> selections) {
if (selections == null || selections.isEmpty()) {
return true;
@@ -139,6 +141,12 @@ public class RetrieveFullEntityTransaction extends BackendTransaction {
return true;
}
/**
* Return true iff the properties need to be retrieved.
*
* <p>It is not necessary during `SELECT parent, name, version, ...` queries where no actual
* properties are being selected.
*/
private boolean needProperties(List<Selection> selections) {
if (selections == null || selections.isEmpty()) {
return true;
@@ -150,7 +158,11 @@ public class RetrieveFullEntityTransaction extends BackendTransaction {
}
return false;
}
/**
* Return true iff the parents need to be retrieved.
*
* <p>It is not necessary during `SELECT` queries that do not select the parent.
*/
private boolean needParents(List<Selection> selections) {
if (selections == null || selections.isEmpty()) {
return true;
Loading