Package google.registry.model.reporting
Class DomainTransactionRecord
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.reporting.DomainTransactionRecord
- All Implemented Interfaces:
Buildable
,UnsafeSerializable
,Serializable
,Cloneable
@Entity
public class DomainTransactionRecord
extends ImmutableObject
implements Buildable, UnsafeSerializable
The record of the mutations which contribute to transaction reporting.
This will only be constructed for a HistoryEntry which contributes to the transaction report, i.e. only domain mutations.
The registrar accredited with this transaction is the enclosing HistoryEntry.clientId. The only exception is for reportField = TRANSFER_LOSING_SUCCESSFUL or TRANSFER_LOSING_NACKED, which uses HistoryEntry.otherClientId because the losing party in a transfer is always the otherClient.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder forDomainTransactionRecord
since it is immutable.static enum
The field added to by reportAmount within the transaction report.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 TypeMethodDescriptionstatic DomainTransactionRecord
create
(String tld, org.joda.time.DateTime reportingTime, DomainTransactionRecord.TransactionReportField transactionReportField, int reportAmount) An alternative construction method when the builder is not necessary.int
org.joda.time.DateTime
getTld()
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
DomainTransactionRecord
public DomainTransactionRecord()
-
-
Method Details
-
getHistoryEntryId
-
getReportingTime
public org.joda.time.DateTime getReportingTime() -
getTld
-
getReportField
-
getReportAmount
public int getReportAmount() -
create
public static DomainTransactionRecord create(String tld, org.joda.time.DateTime reportingTime, DomainTransactionRecord.TransactionReportField transactionReportField, int reportAmount) An alternative construction method when the builder is not necessary. -
asBuilder
-