From OQL to Entity Java Action

1
How do I retrieve an Entity from a Java Action using Core.retrieveXX ? I want to retrieve entities and batch them for deletion. I'm able to delete them, but I need to fetch them somehow from a Java Action.
asked
2 answers
0

To retrieve an object, simply use Core.retrieveXPathQuery(). Check the javadoc for its variations. This can be found in your Mendix installation folder (for example: C:\Program Files (x86)\Mendix\2.5.5.1\runtime\javadoc)

If you want to batch delete items, have a look at Core.removeBatch() too.

answered
0

You can download the communitycommons package and take a look at the java source of the communitycommons.Batches.deleteAll method.

answered