Package google.registry.bsa.persistence
Class Queries
java.lang.Object
google.registry.bsa.persistence.Queries
Helpers for querying BSA JPA entities.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableList
<String> batchReadBsaLabelText
(Optional<String> lastRead, int batchSize) static com.google.common.collect.ImmutableList
<UnblockableDomain> batchReadUnblockableDomains
(Optional<UnblockableDomain> lastRead, int batchSize) static com.google.common.collect.ImmutableList
<Queries.DomainLifeSpan> queryMissedRegisteredUnblockables
(String tld, org.joda.time.DateTime now) Finds all currently registered domains that match BSA labels but are not recorded as unblockable.static Stream
<UnblockableDomain> queryUnblockableDomainByLabels
(com.google.common.collect.ImmutableCollection<String> labels)
-
Method Details
-
batchReadBsaLabelText
-
batchReadUnblockableDomains
public static com.google.common.collect.ImmutableList<UnblockableDomain> batchReadUnblockableDomains(Optional<UnblockableDomain> lastRead, int batchSize) -
queryUnblockableDomainByLabels
public static Stream<UnblockableDomain> queryUnblockableDomainByLabels(com.google.common.collect.ImmutableCollection<String> labels) -
queryMissedRegisteredUnblockables
public static com.google.common.collect.ImmutableList<Queries.DomainLifeSpan> queryMissedRegisteredUnblockables(String tld, org.joda.time.DateTime now) Finds all currently registered domains that match BSA labels but are not recorded as unblockable.- Returns:
- The missing unblockables and their creation and deletion time.
-