|
1 | 1 | package com.genexus; |
2 | | -import com.genexus.ModelContext; |
| 2 | + |
3 | 3 | import com.genexus.common.interfaces.IPendingEventHelper; |
4 | 4 | import com.genexus.common.interfaces.SpecificImplementation; |
5 | 5 | import com.genexus.diagnostics.core.ILogger; |
6 | 6 | import com.genexus.diagnostics.core.LogManager; |
7 | 7 | import com.genexus.util.GXProperties; |
8 | 8 |
|
9 | | -import java.io.InputStream; |
10 | | -import java.io.StringWriter; |
11 | 9 | import java.lang.reflect.Method; |
12 | 10 | import java.util.HashMap; |
13 | 11 | import java.util.HashSet; |
14 | | - |
15 | | -import com.genexus.xml.GXXMLSerializer; |
| 12 | +import java.util.Set; |
16 | 13 |
|
17 | 14 | public class GxSilentTrnSdt extends com.genexus.xml.GXXMLSerializable |
18 | 15 | { |
19 | 16 | static final ILogger logger = LogManager.getLogger(GxSilentTrnSdt.class); |
20 | 17 | static final String SET_METHOD_PREFIX = "setgxTv_"; |
21 | 18 | static final String GET_METHOD_PREFIX = "getgxTv_"; |
22 | 19 | IPendingEventHelper pendingHelper; |
23 | | - GXProperties dirties = new GXProperties(); |
| 20 | + Set<String> dirties = new HashSet<>(); |
24 | 21 |
|
25 | 22 | IGxSilentTrn trn; |
26 | 23 | public GxSilentTrnSdt( ModelContext context, String type) |
@@ -238,14 +235,12 @@ public boolean InsertOrUpdate() |
238 | 235 |
|
239 | 236 | public void SetDirty(String fieldName) |
240 | 237 | { |
241 | | - dirties.put(fieldName.toLowerCase(), "true"); |
| 238 | + dirties.add(fieldName.toLowerCase()); |
242 | 239 | } |
243 | 240 | @Override |
244 | 241 | public boolean IsDirty(String fieldName) |
245 | 242 | { |
246 | | - if (dirties.containsKey(fieldName.toLowerCase())) |
247 | | - return true; |
248 | | - return false; |
| 243 | + return dirties.contains(fieldName.toLowerCase()); |
249 | 244 | } |
250 | 245 |
|
251 | 246 | public GXProperties getMetadata() |
|
0 commit comments