Class EppResource
- All Implemented Interfaces:
Buildable
,UnsafeSerializable
,Serializable
,Cloneable
- Direct Known Subclasses:
ContactBase
,DomainBase
,HostBase
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
EppResource.Builder<T extends EppResource,
B extends EppResource.Builder<T, B>> Abstract builder forEppResource
types.static interface
EppResource.BuilderWithTransferData<T extends TransferData,
B extends EppResource.BuilderWithTransferData<T, B>> An interface for builders of resources that have transfer data.static interface
EppResources that are loaded via foreign keys should implement this marker interface.static interface
An interface for resources that have transfer data.Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, 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
-
Method Summary
Modifier and TypeMethodDescriptionabstract EppResource.Builder
<?, ?> Override ofBuildable.asBuilder()
so that the extra methods are visible.abstract EppResource
cloneProjectedAtTime
(org.joda.time.DateTime now) Return a clone of the resource with timed status values modified using the given time.abstract VKey
<? extends EppResource> Create the VKey for the specified EPP resource.final org.joda.time.DateTime
org.joda.time.DateTime
abstract String
Get the foreign key string for this resource.org.joda.time.DateTime
final String
Get the stored value ofcurrentSponsorRegistrarId
.final com.google.common.collect.ImmutableSet
<StatusValue> static <T extends EppResource>
TloadCached
(VKey<T> key) Loads a given EppResource by its key using the cache (if enabled).static com.google.common.collect.ImmutableMap
<VKey<? extends EppResource>, EppResource> loadCached
(Iterable<VKey<? extends EppResource>> keys) Loads the given EppResources by their keys using the cache (if enabled).static void
setCacheForTest
(Optional<Duration> expiry) void
Sets the repository ID.Methods inherited from class google.registry.model.UpdateAutoTimestampEntity
copyUpdateTimestamp, getUpdateTimestamp, resetUpdateTimestamp, setUpdateTimestamp
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
EppResource
public EppResource()
-
-
Method Details
-
getRepoId
-
setRepoId
Sets the repository ID.This should only be used for restoring the repo id of an object being loaded in a PostLoad method (effectively, when it is still under construction by Hibernate). In all other cases, the object should be regarded as immutable and changes should go through a Builder.
In addition to this special case use, this method must exist to satisfy Hibernate.
-
getCreationTime
public final org.joda.time.DateTime getCreationTime() -
getCreationRegistrarId
-
getLastEppUpdateTime
public org.joda.time.DateTime getLastEppUpdateTime() -
getLastEppUpdateRegistrarId
-
getPersistedCurrentSponsorRegistrarId
Get the stored value ofcurrentSponsorRegistrarId
.For subordinate hosts, this value may not represent the actual current client id, which is the client id of the superordinate host. For all other resources this is the true client id.
-
getStatusValues
-
getDeletionTime
public org.joda.time.DateTime getDeletionTime() -
cloneProjectedAtTime
Return a clone of the resource with timed status values modified using the given time. -
getForeignKey
Get the foreign key string for this resource. -
createVKey
Create the VKey for the specified EPP resource.- Overrides:
createVKey
in classImmutableObject
-
asBuilder
Override ofBuildable.asBuilder()
so that the extra methods are visible. -
setCacheForTest
-
loadCached
public static com.google.common.collect.ImmutableMap<VKey<? extends EppResource>,EppResource> loadCached(Iterable<VKey<? extends EppResource>> keys) Loads the given EppResources by their keys using the cache (if enabled).Don't use this unless you really need it for performance reasons, and be sure that you are OK with the trade-offs in loss of transactional consistency.
-
loadCached
Loads a given EppResource by its key using the cache (if enabled).Don't use this unless you really need it for performance reasons, and be sure that you are OK with the trade-offs in loss of transactional consistency.
-