Hi Tim,
in the core.java is stated:
/**
* Rollback changes of the object with the given id (asynchronously).
* When the object's state is NORMAL: Removes the object from the cache, all performed changes without commit will be lost.
* When the object's state is NEW: Removes the object from the database.
* @param context the context.
* @param id the identifier of the object to rollback.
* @return returns the Future object.
* @throws CoreException
*/
@Deprecated
public static Future<IMendixObject> rollbackAsync(IContext context, IMendixIdentifier id) throws CoreException
{
return component.core().rollbackAsync(context, id);
}
Which would mean, that the object in cache (with changes) is simply deleted. Any new use of the object will trigger a retrieve from DB, with the unadjusted values.
You might want to have a look at this learning path, especially the part about transactions: Mendix Academy - Manage Mendix Runtime and DB Interaction