From bd96b7f085f57a4d41578e9e14d166db6e393fb7 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 12 May 2003 13:44:05 +0000 Subject: [PATCH] Allow aggressive loading for grouped collections. --- src/helma/objectmodel/db/Relation.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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 */