Package google.registry.model.replay
Interface SqlEntity
-
- All Known Subinterfaces:
DatastoreAndSqlEntity
,NonReplicatedEntity
,SqlOnlyEntity
- All Known Implementing Classes:
AllocationToken
,BillingEvent.Cancellation
,BillingEvent.OneTime
,BillingEvent.Recurring
,ClaimsList
,ContactHistory
,ContactResource
,Cursor
,DatabaseMigrationStateSchedule
,DomainBase
,DomainBaseLite
,DomainDsDataHistory
,DomainHistory
,DomainHistoryHost
,DomainHistoryLite
,DomainHost
,DomainTransactionRecord
,GracePeriod
,GracePeriod.GracePeriodHistory
,HostHistory
,HostResource
,Lock
,PollMessage
,PollMessage.Autorenew
,PollMessage.OneTime
,PremiumList
,PremiumList.PremiumEntry
,RdeRevision
,Registrar
,RegistrarContact
,Registry
,RegistryLock
,ReservedList
,ReservedList.ReservedListEntry
,ServerSecret
,SignedMarkRevocationList
,Spec11ThreatMatch
,SqlReplayCheckpoint
,TmchCrl
,TransactionEntity
public interface SqlEntity
An object that can be stored in Cloud SQL usingEntityManager.persist(Object)
This will be used when replaying SQL transactions into Datastore, during the second, SQL-primary, phase of the migration from Datastore to SQL.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
beforeSqlSaveOnReplay()
A method that will be called before the object is saved to SQL in asynchronous replay.default java.lang.String
getPrimaryKeyString()
Returns this entity's primary key field(s) in a string.java.util.Optional<DatastoreEntity>
toDatastoreEntity()
-
-
-
Method Detail
-
toDatastoreEntity
java.util.Optional<DatastoreEntity> toDatastoreEntity()
-
beforeSqlSaveOnReplay
default void beforeSqlSaveOnReplay()
A method that will be called before the object is saved to SQL in asynchronous replay.
-
getPrimaryKeyString
default java.lang.String getPrimaryKeyString()
Returns this entity's primary key field(s) in a string.
-
-