Package google.registry.model.reporting
Class DomainTransactionRecord
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.reporting.DomainTransactionRecord
-
- All Implemented Interfaces:
Buildable
,UnsafeSerializable
,java.io.Serializable
,java.lang.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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DomainTransactionRecord.Builder
A builder forDomainTransactionRecord
since it is immutable.static class
DomainTransactionRecord.TransactionReportField
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
Constructors Constructor Description DomainTransactionRecord()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainTransactionRecord.Builder
asBuilder()
static DomainTransactionRecord
create(java.lang.String tld, org.joda.time.DateTime reportingTime, DomainTransactionRecord.TransactionReportField transactionReportField, int reportAmount)
An alternative construction method when the builder is not necessary.HistoryEntry.HistoryEntryId
getHistoryEntryId()
int
getReportAmount()
DomainTransactionRecord.TransactionReportField
getReportField()
org.joda.time.DateTime
getReportingTime()
java.lang.String
getTld()
-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
getHistoryEntryId
public HistoryEntry.HistoryEntryId getHistoryEntryId()
-
getReportingTime
public org.joda.time.DateTime getReportingTime()
-
getTld
public java.lang.String getTld()
-
getReportField
public DomainTransactionRecord.TransactionReportField getReportField()
-
getReportAmount
public int getReportAmount()
-
create
public static DomainTransactionRecord create(java.lang.String tld, org.joda.time.DateTime reportingTime, DomainTransactionRecord.TransactionReportField transactionReportField, int reportAmount)
An alternative construction method when the builder is not necessary.
-
asBuilder
public DomainTransactionRecord.Builder asBuilder()
-
-