Class CollectionDescriptor


  • public class CollectionDescriptor
    extends ReferenceDescriptor
    Describes a field that references a collection of other objects. getReverseReferenceDescriptor() allows one ot work out the multiplicity of the association's other end.
    Author:
    Richard Smith
    • Constructor Detail

      • CollectionDescriptor

        public CollectionDescriptor​(java.lang.String name,
                                    java.lang.String referencedType,
                                    java.lang.String reverseRefName)
        Construct a CollectionDescriptor. name and referencedType may not be null.
        Parameters:
        name - name of this field in parent class
        referencedType - the fully qualified name of the business object type in this collection
        reverseRefName - name of field in the referenced class that points back to this class (may be null)
        Throws:
        java.lang.IllegalArgumentException - if arguments are null
    • Method Detail

      • relationType

        public int relationType()
        Return an integer describing the type of relationship this field represents, where relationship types are 1:1, 1:N, N:1, M:N and "not a relationship".
        Overrides:
        relationType in class ReferenceDescriptor
        Returns:
        int to describe the relationship type