Class FetchGroupMetaData

  • All Implemented Interfaces:

    public class FetchGroupMetaData
    extends MetaData
    A fetch group defines a particular loaded state for an object graph. It specifies fields/properties to be loaded for all of the instances in the graph when this fetch group is active.
    See Also:
    Serialized Form
    • Field Detail

      • fetchGroups

        protected Set<FetchGroupMetaData> fetchGroups
        A contained fetch-group element indicates that the named group is to be included in the group being defined. Nested fetch group elements are limited to only the name attribute.
    • Constructor Detail

      • FetchGroupMetaData

        public FetchGroupMetaData​(String name)
        Constructor for a named fetch group. Set fields using setters, before populate().
        name - Name of fetch group
    • Method Detail

      • getName

        public final String getName()
      • getPostLoad

        public final Boolean getPostLoad()
      • getMembers

        public final Set<FetchGroupMemberMetaData> getMembers()
        Accessor for metadata for the members of this group.
        Returns the metadata for members
      • getNumberOfMembers

        public int getNumberOfMembers()
      • addFetchGroup

        public void addFetchGroup​(FetchGroupMetaData fgmd)
        Add a new FetchGroupMetaData
        fgmd - the fetch group
      • addMember

        public void addMember​(FetchGroupMemberMetaData fgmmd)
        Add a new field/property.
        fgmmd - the field/property metadata
      • newMemberMetaData

        public FetchGroupMemberMetaData newMemberMetaData​(String name)
        Method to create a new member, add it, and return it.
        name - The name of the fetch group
        The field metadata