Package google.registry.model
Class CreateAutoTimestamp
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.CreateAutoTimestamp
-
- All Implemented Interfaces:
UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
@Embeddable public class CreateAutoTimestamp extends ImmutableObject implements UnsafeSerializable
A timestamp that auto-updates when first saved to the database.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
-
Field Summary
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description CreateAutoTimestamp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateAutoTimestamp
create(org.joda.time.DateTime creationTime)
org.joda.time.DateTime
getTimestamp()
Returns the timestamp.-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
getTimestamp
@Nullable public org.joda.time.DateTime getTimestamp()
Returns the timestamp.
-
create
public static CreateAutoTimestamp create(@Nullable org.joda.time.DateTime creationTime)
-
-