Package google.registry.model.reporting
Enum Class DomainTransactionRecord.TransactionReportField
java.lang.Object
java.lang.Enum<DomainTransactionRecord.TransactionReportField>
google.registry.model.reporting.DomainTransactionRecord.TransactionReportField
- All Implemented Interfaces:
Serializable
,Comparable<DomainTransactionRecord.TransactionReportField>
,Constable
- Enclosing class:
DomainTransactionRecord
public static enum DomainTransactionRecord.TransactionReportField
extends Enum<DomainTransactionRecord.TransactionReportField>
The field added to by reportAmount within the transaction report.
The reportField specifies which column the reportAmount contributes to in the overall report. ICANN wants a column for every add/renew broken down by number of years, so we have the NET_ADDS_#_YR and NET_RENEWS_#_YR boilerplate to facilitate report generation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionstatic final com.google.common.collect.ImmutableSet
<DomainTransactionRecord.TransactionReportField> static final com.google.common.collect.ImmutableSet
<DomainTransactionRecord.TransactionReportField> -
Method Summary
Modifier and TypeMethodDescriptionnetAddsFieldFromYears
(int years) Boilerplate to simplify getting the NET_ADDS_#_YR enum from a number of years.netRenewsFieldFromYears
(int years) Boilerplate to simplify getting the NET_RENEWS_#_YR enum from a number of years.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NET_ADDS_1_YR
-
NET_ADDS_2_YR
-
NET_ADDS_3_YR
-
NET_ADDS_4_YR
-
NET_ADDS_5_YR
-
NET_ADDS_6_YR
-
NET_ADDS_7_YR
-
NET_ADDS_8_YR
-
NET_ADDS_9_YR
-
NET_ADDS_10_YR
-
NET_RENEWS_1_YR
-
NET_RENEWS_2_YR
-
NET_RENEWS_3_YR
-
NET_RENEWS_4_YR
-
NET_RENEWS_5_YR
-
NET_RENEWS_6_YR
-
NET_RENEWS_7_YR
-
NET_RENEWS_8_YR
-
NET_RENEWS_9_YR
-
NET_RENEWS_10_YR
-
TRANSFER_SUCCESSFUL
-
TRANSFER_NACKED
-
DELETED_DOMAINS_GRACE
-
DELETED_DOMAINS_NOGRACE
-
RESTORED_DOMAINS
-
-
Field Details
-
ADD_FIELDS
public static final com.google.common.collect.ImmutableSet<DomainTransactionRecord.TransactionReportField> ADD_FIELDS -
RENEW_FIELDS
public static final com.google.common.collect.ImmutableSet<DomainTransactionRecord.TransactionReportField> RENEW_FIELDS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
netAddsFieldFromYears
Boilerplate to simplify getting the NET_ADDS_#_YR enum from a number of years. -
netRenewsFieldFromYears
Boilerplate to simplify getting the NET_RENEWS_#_YR enum from a number of years.
-