Skip to content

Commit 2e6155e

Browse files
committed
Chage dirty manage implementation in BCs to get better performance
Issue 203831
1 parent 25b7753 commit 2e6155e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

common/src/main/java/com/genexus/GxSilentTrnSdt.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
package com.genexus;
2-
import com.genexus.ModelContext;
2+
33
import com.genexus.common.interfaces.IPendingEventHelper;
44
import com.genexus.common.interfaces.SpecificImplementation;
55
import com.genexus.util.GXProperties;
6-
7-
import java.io.InputStream;
8-
import java.io.StringWriter;
96
import com.genexus.xml.GXXMLSerializer;
107

8+
import java.lang.reflect.Method;
9+
import java.util.HashMap;
10+
import java.util.HashSet;
11+
import java.util.Set;
12+
1113
public class GxSilentTrnSdt extends com.genexus.xml.GXXMLSerializable
1214
{
1315

1416
IPendingEventHelper pendingHelper;
15-
GXProperties dirties = new GXProperties();
17+
Set<String> dirties = new HashSet<>();
1618

1719
IGxSilentTrn trn;
1820
public GxSilentTrnSdt( ModelContext context, String type)
@@ -237,14 +239,12 @@ public boolean InsertOrUpdate()
237239

238240
public void SetDirty(String fieldName)
239241
{
240-
dirties.put(fieldName.toLowerCase(), "true");
242+
dirties.add(fieldName.toLowerCase());
241243
}
242244
@Override
243245
public boolean IsDirty(String fieldName)
244246
{
245-
if (dirties.containsKey(fieldName.toLowerCase()))
246-
return true;
247-
return false;
247+
return dirties.contains(fieldName.toLowerCase());
248248
}
249249

250250
public GXProperties getMetadata()

0 commit comments

Comments
 (0)