Package google.registry.model.tld.label
Class ReservedListDao
java.lang.Object
google.registry.model.tld.label.ReservedListDao
A
ReservedList
DAO for Cloud SQL.-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkExists
(String reservedListName) Returns whether the reserved list of the given name exists.static void
delete
(ReservedList reservedList) Deletes a reserved list from Cloud SQL.static Optional
<ReservedList> getLatestRevision
(String reservedListName) Returns the most recent revision of theReservedList
with the specified name, if it exists.static void
save
(ReservedList reservedList) Persist a new reserved list to Cloud SQL.
-
Method Details
-
save
Persist a new reserved list to Cloud SQL. -
delete
Deletes a reserved list from Cloud SQL. -
getLatestRevision
Returns the most recent revision of theReservedList
with the specified name, if it exists. -
checkExists
Returns whether the reserved list of the given name exists.This means that at least one reserved list revision must exist for the given name.
-