Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/SQRelationArtifact.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | 8d5ca5175038 |
children | 1e4e5ff44aa9 |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
29 | 29 |
30 | 30 |
31 public class SQRelationArtifact | 31 public class SQRelationArtifact |
32 extends StaticD4EArtifact | 32 extends StaticD4EArtifact |
33 { | 33 { |
34 private static final Logger logger = | 34 private static final Logger log = |
35 Logger.getLogger(SQRelationArtifact.class); | 35 Logger.getLogger(SQRelationArtifact.class); |
36 | 36 |
37 public static final String XPATH_RIVER = "/art:action/art:river/@art:name"; | 37 public static final String XPATH_RIVER = "/art:action/art:river/@art:name"; |
38 public static final String XPATH_STATION = | 38 public static final String XPATH_STATION = |
39 "/art:action/art:measurement_station/@art:number"; | 39 "/art:action/art:measurement_station/@art:number"; |
55 Object context, | 55 Object context, |
56 CallMeta callmeta, | 56 CallMeta callmeta, |
57 Document data, | 57 Document data, |
58 List<Class> loadFacets) | 58 List<Class> loadFacets) |
59 { | 59 { |
60 logger.debug("SQRelationArtifact.setup()"); | 60 log.debug("SQRelationArtifact.setup()"); |
61 | 61 |
62 String code = getDatacageIDValue(data); | 62 String code = getDatacageIDValue(data); |
63 | 63 |
64 logger.debug("SQRelationDCArtifact.setup Id: " + code); | 64 log.debug("SQRelationDCArtifact.setup Id: " + code); |
65 | 65 |
66 if (code != null && !code.isEmpty()) { | 66 if (code != null && !code.isEmpty()) { |
67 /* Case that we were instantiated from the datacage */ | 67 /* Case that we were instantiated from the datacage */ |
68 addStringData("ids", code); | 68 addStringData("ids", code); |
69 super.setup(identifier, factory, context, callmeta, data, loadFacets); | 69 super.setup(identifier, factory, context, callmeta, data, loadFacets); |
108 ) { | 108 ) { |
109 StaticState state = new SQStaticState(STATIC_STATE_NAME); | 109 StaticState state = new SQStaticState(STATIC_STATE_NAME); |
110 | 110 |
111 List<Facet> fs = new ArrayList<Facet>(); | 111 List<Facet> fs = new ArrayList<Facet>(); |
112 state.computeInit(this, hash(), context, callMeta, fs); | 112 state.computeInit(this, hash(), context, callMeta, fs); |
113 logger.debug("Init static state computed facets"); | 113 log.debug("Init static state computed facets"); |
114 for (Facet face: fs) { | 114 for (Facet face: fs) { |
115 logger.debug("Got a facet with name: " + face.getName()); | 115 log.debug("Got a facet with name: " + face.getName()); |
116 } | 116 } |
117 | 117 |
118 if (hasParameter(StaticSQRelation.Parameter.A, fs)) { | 118 if (hasParameter(StaticSQRelation.Parameter.A, fs)) { |
119 DefaultOutput outputA = new DefaultOutput( | 119 DefaultOutput outputA = new DefaultOutput( |
120 SQ_RELATION_OUT_A, | 120 SQ_RELATION_OUT_A, |