Mercurial > dive4elements > river
changeset 7378:aff189df381b
(issue1474) Fix copying of SQ* Facets
The main thing causing confusion was that the fractionIdx
was not copied. But the other DataFacet specific parts were
also lost.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 17 Oct 2013 18:37:56 +0200 (2013-10-17) |
parents | ad2fdc34910a |
children | e07dc8854a8f |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQCurveFacet.java artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOutlierCurveFacet.java artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOutlierMeasurementFacet.java artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOverviewFacet.java |
diffstat | 4 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQCurveFacet.java Thu Oct 17 17:47:58 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQCurveFacet.java Thu Oct 17 18:37:56 2013 +0200 @@ -106,6 +106,10 @@ public SQCurveFacet deepCopy() { SQCurveFacet copy = new SQCurveFacet(); copy.set(this); + copy.type = type; + copy.hash = hash; + copy.stateId = stateId; + copy.fractionIdx = fractionIdx; return copy; }
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOutlierCurveFacet.java Thu Oct 17 17:47:58 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOutlierCurveFacet.java Thu Oct 17 18:37:56 2013 +0200 @@ -104,6 +104,11 @@ public Facet deepCopy() { SQOutlierCurveFacet copy = new SQOutlierCurveFacet(); copy.set(this); + copy.type = type; + copy.hash = hash; + copy.stateId = stateId; + copy.fractionIdx = fractionIdx; + return copy; } }
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOutlierMeasurementFacet.java Thu Oct 17 17:47:58 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOutlierMeasurementFacet.java Thu Oct 17 18:37:56 2013 +0200 @@ -75,6 +75,11 @@ public Facet deepCopy() { SQOutlierMeasurementFacet copy = new SQOutlierMeasurementFacet(); copy.set(this); + copy.type = type; + copy.hash = hash; + copy.stateId = stateId; + copy.fractionIdx = fractionIdx; + return copy; } }
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOverviewFacet.java Thu Oct 17 17:47:58 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQOverviewFacet.java Thu Oct 17 18:37:56 2013 +0200 @@ -62,6 +62,10 @@ public SQOverviewFacet deepCopy() { SQOverviewFacet copy = new SQOverviewFacet(); copy.set(this); + copy.type = type; + copy.hash = hash; + copy.stateId = stateId; + copy.fractionIdx = fractionIdx; return copy; }