Package google.registry.model.domain
Class DomainBase
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.BackupGroupRoot
-
- google.registry.model.EppResource
-
- google.registry.model.domain.DomainContent
-
- google.registry.model.domain.DomainBase
-
- All Implemented Interfaces:
Buildable
,EppResource.ForeignKeyedEppResource
,EppResource.ResourceWithTransferData<DomainTransferData>
,DatastoreAndSqlEntity
,DatastoreEntity
,SqlEntity
,UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
@Entity(name="Domain") public class DomainBase extends DomainContent implements DatastoreAndSqlEntity, EppResource.ForeignKeyedEppResource
A persistable domain resource including mutable and non-mutable fields.For historical reasons, the name of this entity is "DomainBase". Ideally it would be "DomainResource" for linguistic parallelism with the other
EppResource
entity classes, but that would necessitate a complex data migration which isn't worth it.- See Also:
- RFC 5731, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DomainBase.Builder
A builder for constructingDomainBase
, 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.domain.DomainContent
MAX_REGISTRATION_YEARS
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description DomainBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainBase.Builder
asBuilder()
An override ofEppResource.asBuilder()
with tighter typing.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.DomainBase
cloneProjectedAtTime(org.joda.time.DateTime now)
Return a clone of the resource with timed status values modified using the given time.VKey<DomainBase>
createVKey()
Create the VKey for the specified EPP resource.static VKey<DomainBase>
createVKey(com.googlecode.objectify.Key<DomainBase> key)
java.util.Set<VKey<HostResource>>
getNsHosts()
java.lang.String
getRepoId()
protected void
postLoad()
Post-load method to eager load the collections.-
Methods inherited from class google.registry.model.domain.DomainContent
beforeSqlDelete, extendRegistrationWithCap, getAdminContact, getAuthInfo, getAutorenewBillingEvent, getAutorenewEndTime, getAutorenewPollMessage, getBillingContact, getContacts, getCurrentSponsorRegistrarId, getDeletePollMessage, getDnsRefreshRequestTime, getDomainName, getDsData, getForeignKey, getGracePeriods, getGracePeriodsOfType, getGracePeriodStatuses, getHistoryId, getIdnTableName, getLastTransferTime, getLaunchNotice, getNameservers, getReferencedContacts, getRegistrant, getRegistrationExpirationTime, getSmdId, getSubordinateHosts, getTechContact, getTld, getTransferData, loadNameserverHostNames, restoreOfyFrom, shouldPublishToDns
-
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
-
getNsHosts
public java.util.Set<VKey<HostResource>> getNsHosts()
-
postLoad
protected void postLoad()
Post-load method to eager load the collections.- Overrides:
postLoad
in classDomainContent
-
createVKey
public VKey<DomainBase> createVKey()
Description copied from class:EppResource
Create the VKey for the specified EPP resource.- Overrides:
createVKey
in classDomainContent
-
cloneProjectedAtTime
public DomainBase cloneProjectedAtTime(org.joda.time.DateTime now)
Description copied from class:EppResource
Return a clone of the resource with timed status values modified using the given time.- Overrides:
cloneProjectedAtTime
in classDomainContent
-
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
-
createVKey
public static VKey<DomainBase> createVKey(com.googlecode.objectify.Key<DomainBase> key)
-
asBuilder
public DomainBase.Builder asBuilder()
An override ofEppResource.asBuilder()
with tighter typing.- Specified by:
asBuilder
in interfaceBuildable
- Overrides:
asBuilder
in classDomainContent
-
-