Refer to Datastore everywhere correctly by its capitalized form

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=147479683
This commit is contained in:
mcilwain 2017-02-14 09:11:30 -08:00 committed by Ben McIlwain
parent a8cf81bca2
commit cdadb54acd
123 changed files with 232 additions and 235 deletions

View file

@ -22,9 +22,9 @@ import google.registry.export.DatastoreBackupService;
import google.registry.tools.Command.RemoteApiCommand;
/**
* Command to check the status of a datastore backup, or "snapshot".
* Command to check the status of a Datastore backup, or "snapshot".
*/
@Parameters(separators = " =", commandDescription = "Check the status of a datastore snapshot")
@Parameters(separators = " =", commandDescription = "Check the status of a Datastore snapshot")
public class CheckSnapshotCommand implements RemoteApiCommand {
@Parameter(

View file

@ -67,7 +67,7 @@ import org.joda.time.DateTime;
* </pre>
*
* <p>We only care about three fields: 1) the "Affiliate" field which corresponds to the registrar
* clientId stored in datastore, and which we use to determine which registrar gets the credit, 2)
* clientId stored in Datastore, and which we use to determine which registrar gets the credit, 2)
* the "Commissions" field which contains the amount of the auction credit (as determined by logic
* on the auction provider's side, see the Finance Requirements Doc for more information), and 3)
* the "CurrencyCode" field, which we validate matches the TLD-wide currency for this TLD.

View file

@ -31,7 +31,7 @@ import java.util.List;
import org.joda.time.DateTime;
/** Command to create a {@link ReservedList} on Datastore. */
@Parameters(separators = " =", commandDescription = "Create a ReservedList in datastore.")
@Parameters(separators = " =", commandDescription = "Create a ReservedList in Datastore.")
final class CreateReservedListCommand extends CreateOrUpdateReservedListCommand {
@VisibleForTesting

View file

@ -74,7 +74,7 @@ final class GenerateEscrowDepositCommand implements RemoteApiCommand {
@Parameter(
names = {"-w", "--watermark"},
description = "Point-in-time timestamp for snapshotting the datastore.",
description = "Point-in-time timestamp for snapshotting Datastore.",
validateWith = DateTimeParameter.class)
private DateTime watermark = DateTime.now(UTC);

View file

@ -31,7 +31,7 @@ import java.nio.file.Paths;
* A command to download the current claims list.
*
* <p>This is not the original file we fetched from TMCH. It is just a representation of what we
* are currently storing in datastore.
* are currently storing in Datastore.
*/
@Parameters(separators = " =", commandDescription = "Download the current claims list")
final class GetClaimsListCommand implements RemoteApiCommand {

View file

@ -25,7 +25,7 @@ import google.registry.tools.Command.RemoteApiCommand;
import java.util.List;
/**
* Command to get info on a datastore resource by websafe key.
* Command to get info on a Datastore resource by websafe key.
*/
@Parameters(separators = " =")
final class GetResourceByKeyCommand implements RemoteApiCommand {

View file

@ -32,8 +32,8 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/** Command to load datastore snapshots into Bigquery. */
@Parameters(separators = " =", commandDescription = "Load datastore snapshot into Bigquery")
/** Command to load Datastore snapshots into Bigquery. */
@Parameters(separators = " =", commandDescription = "Load Datastore snapshot into Bigquery")
final class LoadSnapshotCommand extends BigqueryCommand {
@Parameter(
@ -43,12 +43,12 @@ final class LoadSnapshotCommand extends BigqueryCommand {
@Parameter(
names = "--gcs_bucket",
description = "Name of the GCS bucket from which to import datastore snapshots.")
description = "Name of the GCS bucket from which to import Datastore snapshots.")
private String snapshotGcsBucket = "domain-registry/snapshots/testing";
@Parameter(
names = "--kinds",
description = "List of datastore kinds for which to import snapshot data.")
description = "List of Datastore kinds for which to import snapshot data.")
private List<String> kindNames = new ArrayList<>(ExportConstants.getReportingKinds());
/** Runs the main snapshot import logic. */

View file

@ -44,7 +44,7 @@ import java.util.Objects;
import java.util.Set;
import javax.annotation.Nullable;
/** A {@link ConfirmingCommand} that changes objects in the datastore. */
/** A {@link ConfirmingCommand} that changes objects in Datastore. */
public abstract class MutatingCommand extends ConfirmingCommand implements RemoteApiCommand {
/**

View file

@ -33,7 +33,7 @@ import java.util.HashMap;
import java.util.Map;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
/** Container class to create and run remote commands against a datastore instance. */
/** Container class to create and run remote commands against a Datastore instance. */
@Parameters(separators = " =", commandDescription = "Command-line interface to the registry")
final class RegistryCli {

View file

@ -19,7 +19,7 @@ import google.registry.tools.javascrap.FixDomainNameserverKeysCommand;
import google.registry.tools.javascrap.RemoveDomainTransferDataCommand;
import google.registry.tools.javascrap.RemoveIpAddressCommand;
/** Container class to create and run remote commands against a datastore instance. */
/** Container class to create and run remote commands against a Datastore instance. */
public final class RegistryTool {
/**

View file

@ -26,7 +26,7 @@ import java.util.List;
/**
* A command to load and resave an entity by websafe key.
*
* <p>This triggers @OnSave changes. If the entity was directly edited in the datastore viewer, this
* <p>This triggers @OnSave changes. If the entity was directly edited in the Datastore viewer, this
* can be used to make sure that the commit logs reflect the new state.
*/
@Parameters(

View file

@ -28,7 +28,7 @@ import org.joda.time.DateTime;
/**
* A command to load and resave an {@link EppResource} by foreign key.
*
* <p>This triggers @OnSave changes. If the entity was directly edited in the datastore viewer, this
* <p>This triggers @OnSave changes. If the entity was directly edited in the Datastore viewer, this
* can be used to make sure that the commit logs reflect the new state.
*/
@Parameters(

View file

@ -153,7 +153,7 @@ final class UpdateApplicationStatusCommand extends MutatingCommand {
applicationBuilder.addStatusValue(StatusValue.PENDING_CREATE);
}
// Stage changes for all entities that need to be saved to datastore.
// Stage changes for all entities that need to be saved to Datastore.
stageEntityChange(domainApplication, applicationBuilder.build());
stageEntityChange(null, pollMessageBuilder.build());
stageEntityChange(null, newHistoryEntry);

View file

@ -111,7 +111,7 @@ final class UpdateClaimsNoticeCommand implements RemoteApiCommand {
.setBySuperuser(true)
.build();
// Save entities to datastore.
// Save entities to Datastore.
ofy().save().<Object>entities(updatedApplication, newHistoryEntry);
}
}

View file

@ -27,7 +27,7 @@ import google.registry.util.SystemClock;
import java.nio.file.Files;
/** Command to safely update {@link ReservedList} on Datastore. */
@Parameters(separators = " =", commandDescription = "Update a ReservedList in datastore.")
@Parameters(separators = " =", commandDescription = "Update a ReservedList in Datastore.")
final class UpdateReservedListCommand extends CreateOrUpdateReservedListCommand {
@Override

View file

@ -113,7 +113,7 @@ final class UpdateSmdCommand implements RemoteApiCommand {
.setReason("UpdateSmdCommand" + (reason != null ? ": " + reason : ""))
.build();
// Save entities to datastore.
// Save entities to Datastore.
ofy().save().<Object>entities(updatedApplication, newHistoryEntry);
}
}

View file

@ -78,7 +78,7 @@ public class DeleteEntityAction implements Runnable {
rawDeletionsBuilder.add(rawEntity.get().getKey());
continue;
}
// The entity could not be found by either Objectify or the datastore service
// The entity could not be found by either Objectify or the Datastore service
throw new BadRequestException("Could not find entity with key " + rawKeyString);
}
// Delete raw entities.
@ -108,7 +108,7 @@ public class DeleteEntityAction implements Runnable {
try {
return Optional.fromNullable(getDatastoreService().get(rawKey));
} catch (EntityNotFoundException e) {
logger.warningfmt(e, "Could not load entity from datastore service with key %s",
logger.warningfmt(e, "Could not load entity from Datastore service with key %s",
rawKey.toString());
return Optional.absent();
}

View file

@ -35,7 +35,7 @@ import google.registry.request.Response;
import java.util.Arrays;
import javax.inject.Inject;
/** Deletes all commit logs in datastore. */
/** Deletes all commit logs in Datastore. */
@Action(path = "/_dr/task/killAllCommitLogs", method = POST)
public class KillAllCommitLogsAction implements Runnable {

View file

@ -35,7 +35,7 @@ import google.registry.request.Action;
import google.registry.request.Response;
import javax.inject.Inject;
/** Deletes all {@link EppResource} objects in datastore, including indices and descendants. */
/** Deletes all {@link EppResource} objects in Datastore, including indices and descendants. */
@Action(path = "/_dr/task/killAllEppResources", method = POST)
public class KillAllEppResourcesAction implements Runnable {