Package google.registry.model.replay
Interface DatastoreEntity
-
- All Known Subinterfaces:
DatastoreAndSqlEntity
,DatastoreOnlyEntity
,NonReplicatedEntity
- All Known Implementing Classes:
AllocationToken
,BillingEvent.Cancellation
,BillingEvent.Modification
,BillingEvent.OneTime
,BillingEvent.Recurring
,CommitLogBucket
,CommitLogCheckpoint
,CommitLogCheckpointRoot
,CommitLogManifest
,CommitLogMutation
,ContactHistory
,ContactResource
,Cursor
,DomainBase
,DomainHistory
,DomainHistoryLite
,DomainTransactionRecord
,EntityGroupRoot
,EppResourceIndex
,EppResourceIndexBucket
,ForeignKeyIndex.ForeignKeyContactIndex
,ForeignKeyIndex.ForeignKeyDomainIndex
,ForeignKeyIndex.ForeignKeyHostIndex
,GracePeriod
,HistoryEntry
,HostHistory
,HostResource
,LastSqlTransaction
,Lock
,PollMessage
,PollMessage.Autorenew
,PollMessage.OneTime
,RdeRevision
,Registrar
,RegistrarContact
,Registry
,ReplayGap
,ServerSecret
public interface DatastoreEntity
An object that can be stored in Datastore and serialized using Objectify'sSaver.toEntity(Object)
code.This is used when replaying
CommitLogManifest
s to import transactions and data into the secondary SQL store during the first, Datastore-primary, phase of the migration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
beforeDatastoreSaveOnReplay()
A method called before the object is saved to Datastore in asynchronous replay.java.util.Optional<SqlEntity>
toSqlEntity()
-
-
-
Method Detail
-
toSqlEntity
java.util.Optional<SqlEntity> toSqlEntity()
-
beforeDatastoreSaveOnReplay
default void beforeDatastoreSaveOnReplay()
A method called before the object is saved to Datastore in asynchronous replay.
-
-