Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/Datacage.java @ 6719:7b2b81974018
Cosmetics.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 30 Jul 2013 18:27:58 +0200 |
parents | 05395533fe82 |
children | 5077fc1ace1c |
comparison
equal
deleted
inserted
replaced
6718:1b9529f6f5ff | 6719:7b2b81974018 |
---|---|
401 sql.get(SQL_DELETE_FACETS_BY_ARTIFACT_ID); | 401 sql.get(SQL_DELETE_FACETS_BY_ARTIFACT_ID); |
402 SQL_DELETE_ARTIFACT_BY_GID = | 402 SQL_DELETE_ARTIFACT_BY_GID = |
403 sql.get(SQL_DELETE_ARTIFACT_BY_GID); | 403 sql.get(SQL_DELETE_ARTIFACT_BY_GID); |
404 } | 404 } |
405 | 405 |
406 /** Sum over facets in outs. */ | |
406 protected static final int numFacets(List<Output> outs) { | 407 protected static final int numFacets(List<Output> outs) { |
407 int sum = 0; | 408 int sum = 0; |
408 for (Output out: outs) { | 409 for (Output out: outs) { |
409 sum += out.getFacets().size(); | 410 sum += out.getFacets().size(); |
410 } | 411 } |
907 log.error("storing state of artifact failed ("+artifactId+","+artifact.getCurrentStateId()+")"); | 908 log.error("storing state of artifact failed ("+artifactId+","+artifact.getCurrentStateId()+")"); |
908 } | 909 } |
909 } | 910 } |
910 | 911 |
911 protected void storeData( | 912 protected void storeData( |
912 final int artifactId, | 913 final int artifactId, |
913 D4EArtifact artifact | 914 D4EArtifact artifact |
914 ) { | 915 ) { |
915 final Collection<StateData> data = artifact.getAllData(); | 916 final Collection<StateData> data = artifact.getAllData(); |
916 | 917 |
917 if (data.isEmpty()) { | 918 if (data.isEmpty()) { |
918 return; | 919 return; |