Class FederationUploadKey
- java.lang.Object
-
- app.coronawarn.server.common.persistence.domain.DiagnosisKey
-
- app.coronawarn.server.common.persistence.domain.FederationUploadKey
-
public class FederationUploadKey extends DiagnosisKey
This entity is mapped to a table which serves as data source for the uploading of diagnosis keys to the Federation Gateway Service. The underlying table is filled by replicating diagnosis keys on insert (currently via database triggers).The entity is almost equivalent to the
DiagnosisKeyin content, but carries some additional specific metadata, and could diverge in the future.
-
-
Field Summary
-
Fields inherited from class app.coronawarn.server.common.persistence.domain.DiagnosisKey
KEY_DATA_LENGTH, MAX_DAYS_SINCE_ONSET_OF_SYMPTOMS, MAX_ROLLING_PERIOD, MAX_TRANSMISSION_RISK_LEVEL, MIN_DAYS_SINCE_ONSET_OF_SYMPTOMS, MIN_ROLLING_PERIOD, MIN_TRANSMISSION_RISK_LEVEL, ROLLING_PERIOD_MINUTES_INTERVAL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static FederationUploadKeyfrom(DiagnosisKey diagnosisKeySource)Create a new instance of an upload key by copying the properties of the given source diagnosis key.StringgetBatchTag()inthashCode()-
Methods inherited from class app.coronawarn.server.common.persistence.domain.DiagnosisKey
builder, getDaysSinceOnsetOfSymptoms, getKeyData, getOriginCountry, getReportType, getRollingPeriod, getRollingStartIntervalNumber, getSubmissionTimestamp, getTransmissionRiskLevel, getVisitedCountries, isConsentToFederation, isYoungerThanRetentionThreshold, toString, validate
-
-
-
-
Method Detail
-
getBatchTag
public String getBatchTag()
-
from
public static FederationUploadKey from(DiagnosisKey diagnosisKeySource)
Create a new instance of an upload key by copying the properties of the given source diagnosis key.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDiagnosisKey
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDiagnosisKey
-
-