diff --git a/src/helma/objectmodel/db/Relation.java b/src/helma/objectmodel/db/Relation.java index aeea3db1..972aa8ca 100644 --- a/src/helma/objectmodel/db/Relation.java +++ b/src/helma/objectmodel/db/Relation.java @@ -281,7 +281,7 @@ public final class Relation { } // aggressive loading and caching is not supported for groupby-nodes - aggressiveLoading = aggressiveCaching = false; + // aggressiveLoading = aggressiveCaching = false; } // check if subnode condition should be applied for property relations @@ -352,6 +352,13 @@ public final class Relation { return isPrivate; } + /** + * Check whether aggressive loading is set for this relation + */ + public boolean loadAggressively() { + return aggressiveLoading; + } + /** * Returns the number of constraints for this relation. */ @@ -425,6 +432,15 @@ public final class Relation { return columnType; } + /** + * Get the group for a collection relation, if defined. + * + * @return the name of the column used to group child objects, if any. + */ + public String getGroup() { + return groupby; + } + /** * Add a constraint to the current list of constraints */