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
DiagnosisKey
in 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
ISO_COUNTRY_CODE_LENGTH, 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 boolean
equals(Object o)
static FederationUploadKey
from(DiagnosisKey diagnosisKeySource)
Create a new instance of an upload key by copying the properties of the given source diagnosis key.String
getBatchTag()
int
hashCode()
-
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:
equals
in classDiagnosisKey
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDiagnosisKey
-
-