You are writing a façade method which needs to remove an existing row from the database.
Under classic Cúram, you would have created a call to the generated "entity" method as follows:
// ... public void removeSomeEntityDetails(final SomeEntityKey key) throws AppException, InformationalException { // objects for writing to the database final SomeEntity someEntityObj = SomeEntityFactory.newInstance(); // create an instance of the key final SomeEntityKey someEntityKey = new SomeEntityKey(); someEntityKey.someEntityID = key.someEntityID; // do the remove someEntityObj.remove(someEntityKey); // check for informational exceptions TransactionInfo.getInformationalManager().failOperation(); } // ...
How do you remove an existing row from a database table using a service-layer API (developed using the Persistence Infrastructure)?