Skip to content

Commit 451be35

Browse files
authored
Preparing for Mendix 9
Preparing for Mendix 9
2 parents 70c18ca + 87f0649 commit 451be35

File tree

250 files changed

+31387
-925
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+31387
-925
lines changed
11.5 MB
Binary file not shown.

src/AuditTrailModule/javasource/audittrail/actions/CreateLogRecordChangesBeforeDelete.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was generated by Mendix Modeler.
1+
// This file was generated by Mendix Studio Pro.
22
//
33
// WARNING: Only the following code will be retained when actions are regenerated:
44
// - the import list

src/AuditTrailModule/javasource/audittrail/actions/CreateLogRecordOfObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was generated by Mendix Modeler.
1+
// This file was generated by Mendix Studio Pro.
22
//
33
// WARNING: Only the following code will be retained when actions are regenerated:
44
// - the import list

src/AuditTrailModule/javasource/audittrail/actions/GetDiff.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was generated by Mendix Modeler.
1+
// This file was generated by Mendix Studio Pro.
22
//
33
// WARNING: Only the following code will be retained when actions are regenerated:
44
// - the import list

src/AuditTrailModule/javasource/audittrail/log/CreateLogObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static IMendixObject createAuditLogItems(final IMendixObject auditableObj
8383

8484
final IContext sudoContext = Core.createSystemContext();
8585
final IMendixObject logObject = Core.instantiate(sudoContext, Log.getType());
86-
;
86+
8787
IMendixIdentifier userObjectId = null;
8888

8989
try {
@@ -113,7 +113,7 @@ public static IMendixObject createAuditLogItems(final IMendixObject auditableObj
113113
logObject.setValue(sudoContext, Log.MemberNames.Log_AudittrailSuperClass.toString(),
114114
auditableObject.getId());
115115
} else {
116-
// Retrieve the custom created association to AuditbleObject, look it up when
116+
// Retrieve the custom created association to AuditableObject, look it up when
117117
// not found
118118
association = getAssociationName(auditableObject.getType());
119119

src/AuditTrailModule/javasource/objecthandling/ORM.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
import java.util.Arrays;
66
import java.util.Date;
77
import java.util.HashMap;
8-
import java.util.HashSet;
98
import java.util.List;
109
import java.util.Map;
11-
import java.util.Map.Entry;
12-
import java.util.Set;
13-
import java.util.concurrent.ConcurrentHashMap;
1410

1511
import com.mendix.core.Core;
1612
import com.mendix.core.CoreException;
@@ -25,7 +21,6 @@
2521
import com.mendix.systemwideinterfaces.core.IMendixObject.ObjectState;
2622
import com.mendix.systemwideinterfaces.core.IMendixObjectMember;
2723
import com.mendix.systemwideinterfaces.core.IMendixObjectMember.MemberState;
28-
import com.mendix.systemwideinterfaces.core.ISession;
2924
import com.mendix.systemwideinterfaces.core.meta.IMetaAssociation;
3025
import com.mendix.systemwideinterfaces.core.meta.IMetaAssociation.AssociationType;
3126
import com.mendix.systemwideinterfaces.core.meta.IMetaEnumValue;
@@ -37,8 +32,6 @@
3732
public class ORM
3833
{
3934

40-
41-
4235
public static Long getGUID(IMendixObject item)
4336
{
4437
return item.getId().toLong();
@@ -180,8 +173,8 @@ private static void duplicateReverseAssociations(IContext ctx, IMendixObject src
180173
throw new IllegalArgumentException("It is not possible to clone reverse referencesets: '" + fullAssocName + "'");
181174
}
182175

183-
List<IMendixObject> objs = Core.retrieveXPathQueryEscaped(ctx, "//%s[%s='%s']",
184-
relationParent.getName(), assocname, String.valueOf(src.getId().toLong()));
176+
List<IMendixObject> objs = Core.retrieveXPathQuery(ctx, String.format("//%s[%s='%s']",
177+
relationParent.getName(), assocname, String.valueOf(src.getId().toLong())));
185178

186179
for(IMendixObject obj : objs) {
187180
@SuppressWarnings("unused") // object is unused on purpose

0 commit comments

Comments
 (0)