Package google.registry.model
Class UpdateAutoTimestamp
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.UpdateAutoTimestamp
-
- All Implemented Interfaces:
UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
@Embeddable public class UpdateAutoTimestamp extends ImmutableObject implements UnsafeSerializable
A timestamp that auto-updates on each save to Cloud SQL.- 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 UpdateAutoTimestamp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateAutoTimestamp
create(org.joda.time.DateTime timestamp)
org.joda.time.DateTime
getTimestamp()
Returns the timestamp, orSTART_OF_TIME
if it's null.-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
getTimestamp
public org.joda.time.DateTime getTimestamp()
Returns the timestamp, orSTART_OF_TIME
if it's null.
-
create
public static UpdateAutoTimestamp create(@Nullable org.joda.time.DateTime timestamp)
-
-