/** * INTERNAL: * This method is used to revert an object within the unit of work * @param cloneMapping may not be the same as what is in the uow */ public void revertChanges(Object clone, ClassDescriptor descriptor, UnitOfWorkImpl uow, Map cloneMapping) { cloneMapping.put(clone, buildBackupClone(clone, descriptor.getObjectBuilder(), uow)); clearChanges(clone, uow, descriptor); }
/** * INTERNAL: * This method is used to revert an object within the unit of work * @param cloneMapping may not be the same as what is in the uow */ public void revertChanges(Object clone, ClassDescriptor descriptor, UnitOfWorkImpl uow, Map cloneMapping, boolean forRefresh) { cloneMapping.put(clone, buildBackupClone(clone, descriptor.getObjectBuilder(), uow)); clearChanges(clone, uow, descriptor, forRefresh); }
/** * INTERNAL: * This method is used to revert an object within the unit of work * @param cloneMapping may not be the same as what is in the uow */ public void revertChanges(Object clone, ClassDescriptor descriptor, UnitOfWorkImpl uow, Map cloneMapping, boolean forRefresh) { cloneMapping.put(clone, buildBackupClone(clone, descriptor.getObjectBuilder(), uow)); clearChanges(clone, uow, descriptor, forRefresh); }