Package google.registry.model.host
Class HostResource
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.BackupGroupRoot
-
- google.registry.model.EppResource
-
- google.registry.model.host.HostBase
-
- google.registry.model.host.HostResource
-
- All Implemented Interfaces:
Buildable
,EppResource.ForeignKeyedEppResource
,DatastoreAndSqlEntity
,DatastoreEntity
,SqlEntity
,UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
@Entity(name="Host") public class HostResource extends HostBase implements DatastoreAndSqlEntity, EppResource.ForeignKeyedEppResource
A persistable Host resource including mutable and non-mutable fields.The
Id
of the HostResource is the repoId.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HostResource.Builder
A builder for constructingHostResource
, since it is immutable.-
Nested classes/interfaces inherited from class google.registry.model.EppResource
EppResource.BuilderWithTransferData<T extends TransferData,B extends EppResource.BuilderWithTransferData<T,B>>, EppResource.ForeignKeyedEppResource, EppResource.ResourceWithTransferData<T extends TransferData>
-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotCompare, ImmutableObject.DoNotHydrate, ImmutableObject.EmptySetToNull, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
Nested classes/interfaces inherited from interface google.registry.model.Buildable
Buildable.GenericBuilder<S,B extends Buildable.GenericBuilder<?,?>>, Buildable.Overlayable<T>
-
-
Field Summary
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description HostResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostResource.Builder
asBuilder()
Override ofBuildable.asBuilder()
so that the extra methods are visible.void
beforeDatastoreSaveOnReplay()
A method called before the object is saved to Datastore in asynchronous replay.void
beforeSqlSaveOnReplay()
A method that will be called before the object is saved to SQL in asynchronous replay.VKey<HostResource>
createVKey()
Create the VKey for the specified EPP resource.java.lang.String
getRepoId()
-
Methods inherited from class google.registry.model.host.HostBase
cloneProjectedAtTime, computeLastTransferTime, getForeignKey, getHostName, getInetAddresses, getLastSuperordinateChange, getLastTransferTime, getSuperordinateDomain, isSubordinate
-
Methods inherited from class google.registry.model.EppResource
getCreationRegistrarId, getCreationTime, getDeletionTime, getLastEppUpdateRegistrarId, getLastEppUpdateTime, getPersistedCurrentSponsorRegistrarId, getRevisions, getStatusValues, loadCached, loadCached, saveIndexesToDatastore, setCacheForTest, setRepoId
-
Methods inherited from class google.registry.model.BackupGroupRoot
copyUpdateTimestamp, getUpdateTimestamp, resetUpdateTimestamp, setUpdateTimestamp
-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface google.registry.model.replay.DatastoreAndSqlEntity
toDatastoreEntity, toSqlEntity
-
Methods inherited from interface google.registry.model.replay.SqlEntity
getPrimaryKeyString
-
-
-
-
Method Detail
-
getRepoId
public java.lang.String getRepoId()
- Overrides:
getRepoId
in classEppResource
-
createVKey
public VKey<HostResource> createVKey()
Description copied from class:EppResource
Create the VKey for the specified EPP resource.- Overrides:
createVKey
in classHostBase
-
beforeSqlSaveOnReplay
public void beforeSqlSaveOnReplay()
Description copied from interface:SqlEntity
A method that will be called before the object is saved to SQL in asynchronous replay.- Specified by:
beforeSqlSaveOnReplay
in interfaceSqlEntity
-
beforeDatastoreSaveOnReplay
public void beforeDatastoreSaveOnReplay()
Description copied from interface:DatastoreEntity
A method called before the object is saved to Datastore in asynchronous replay.- Specified by:
beforeDatastoreSaveOnReplay
in interfaceDatastoreEntity
-
asBuilder
public HostResource.Builder asBuilder()
Description copied from class:EppResource
Override ofBuildable.asBuilder()
so that the extra methods are visible.
-
-