Class HistoryEntryDao

java.lang.Object
google.registry.model.reporting.HistoryEntryDao

public class HistoryEntryDao extends Object
Retrieves HistoryEntry descendants (e.g. DomainHistory).
  • Field Details

    • RESOURCE_TYPES_TO_HISTORY_TYPES

      public static com.google.common.collect.ImmutableMap<Class<? extends EppResource>,Class<? extends HistoryEntry>> RESOURCE_TYPES_TO_HISTORY_TYPES
  • Constructor Details

    • HistoryEntryDao

      public HistoryEntryDao()
  • Method Details

    • loadAllHistoryObjects

      public static com.google.common.collect.ImmutableList<HistoryEntry> loadAllHistoryObjects(org.joda.time.DateTime afterTime, org.joda.time.DateTime beforeTime)
      Loads all history objects in the times specified, including all types.
    • loadHistoryObjectsForResource

      public static com.google.common.collect.ImmutableList<HistoryEntry> loadHistoryObjectsForResource(VKey<? extends EppResource> resourceKey)
      Loads all history objects corresponding to the given EppResource.
    • loadHistoryObjectsForResource

      public static <T extends HistoryEntry> com.google.common.collect.ImmutableList<T> loadHistoryObjectsForResource(VKey<? extends EppResource> resourceKey, Class<T> subclazz)
      Loads all history objects corresponding to the given EppResource and cast to the appropriate subclass.
    • loadHistoryObjectsForResource

      public static com.google.common.collect.ImmutableList<HistoryEntry> loadHistoryObjectsForResource(VKey<? extends EppResource> resourceKey, org.joda.time.DateTime afterTime, org.joda.time.DateTime beforeTime)
      Loads all history objects in the time period specified for the given EppResource.
    • loadHistoryObjectsByRegistrars

      public static Iterable<HistoryEntry> loadHistoryObjectsByRegistrars(com.google.common.collect.ImmutableCollection<String> registrarIds)
      Loads all history objects from all time from the given registrars.
    • getHistoryClassFromParent

      public static Class<? extends HistoryEntry> getHistoryClassFromParent(Class<? extends EppResource> resourceType)