Class DBBackedCustomDataStorage


  • public class DBBackedCustomDataStorage
    extends Object
    • Method Detail

      • getStoragesIdsWithPrefix

        @NotNull
        public Set<String> getStoragesIdsWithPrefix​(@NotNull
                                                    String idPrefix)
      • flushAll

        public void flushAll()
      • disposeObsoleteEmptyStorages

        public void disposeObsoleteEmptyStorages()
      • dispose

        public void dispose()
      • removeGarbage

        public static void removeGarbage​(@NotNull
                                         SQLRunnerEx sqlRunner,
                                         @NotNull
                                         TimeService timeService)
      • removeNonExistingDomains

        public static void removeNonExistingDomains​(@NotNull
                                                    SQLRunnerEx sqlRunner,
                                                    @NotNull
                                                    TimeService timeService,
                                                    @NotNull
                                                    String domainPrefix)
      • removeCustomData

        public static void removeCustomData​(@NotNull
                                            SQLRunnerEx sqlRunner,
                                            @NotNull
                                            Map<String,​List<String>> dataDomainMap,
                                            boolean exactMatch)
        Removes custom data storages for the defined map of data domain and data key prefixes.
        Parameters:
        sqlRunner - sql runner
        dataDomainMap - map from data domain to a list of data keys
        exactMatch - if true then the data will be removed by exact match of the data domain and data key, if false then data key is treated as a prefix and resulting SQL query will use 'like' keyword with this prefix