From 350ffd0d7383797334607ebc6160a16c89d126c8 Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 10 Nov 2005 17:04:53 +0000 Subject: [PATCH] * Implement getTargetType() and getRefType() to enable high level type.properties introspection --- src/helma/objectmodel/db/Relation.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/helma/objectmodel/db/Relation.java b/src/helma/objectmodel/db/Relation.java index 5e1a955a..1e4bfd33 100644 --- a/src/helma/objectmodel/db/Relation.java +++ b/src/helma/objectmodel/db/Relation.java @@ -409,6 +409,20 @@ public final class Relation { return virtual; } + /** + * Return the target type of this relation, or null if this is a primitive mapping. + */ + public DbMapping getTargetType() { + return otherType; + } + + /** + * Get the reference type of this relation. + */ + public int getRefType() { + return reftype; + } + /** * Tell if this relation represents a primitive (scalar) value mapping. */