org.springframework.data.mongodb.core.convert

Enum NoOpDbRefResolver

    • Method Detail

      • values

        public static NoOpDbRefResolver[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (NoOpDbRefResolver c : NoOpDbRefResolver.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NoOpDbRefResolver valueOf(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fetch

        @Nullable
        public org.bson.Document fetch(com.mongodb.DBRef dbRef)
        Description copied from interface: DbRefResolver
        Actually loads the DBRef from the datasource.
        Specified by:
        fetch in interface DbRefResolver
        Parameters:
        dbRef - must not be null.
        Returns:
      • bulkFetch

        public List<org.bson.Document> bulkFetch(List<com.mongodb.DBRef> dbRefs)
        Description copied from interface: DbRefResolver
        Loads a given List of DBRefs from the datasource in one batch. The resulting List of Document will reflect the ordering of the DBRef passed in.
        The DBRef elements in the list must not reference different collections.
        Specified by:
        bulkFetch in interface DbRefResolver
        Parameters:
        dbRefs - must not be null.
        Returns:
        never null.