/** * <p> * Create a <code>JobDataMap</code> with the given data. * </p> */ public JobDataMap(Map<?, ?> map) { this(); @SuppressWarnings("unchecked") // casting to keep API compatible and avoid compiler errors/warnings. Map<String, Object> mapTyped = (Map<String, Object>)map; putAll(mapTyped); // When constructing a new data map from another existing map, we should NOT mark dirty flag as true // Use case: loading JobDataMap from DB clearDirtyFlag(); }
/** * <p> * Create a <code>JobDataMap</code> with the given data. * </p> */ public JobDataMap(Map<?, ?> map) { this(); @SuppressWarnings("unchecked") // casting to keep API compatible and avoid compiler errors/warnings. Map<String, Object> mapTyped = (Map<String, Object>)map; putAll(mapTyped); // When constructing a new data map from another existing map, we should NOT mark dirty flag as true // Use case: loading JobDataMap from DB clearDirtyFlag(); }
if (newData != null) { newData = (JobDataMap)newData.clone(); newData.clearDirtyFlag();
if (newData != null) { newData = (JobDataMap)newData.clone(); newData.clearDirtyFlag();
job.getJobDataMap().clearDirtyFlag();
job.getJobDataMap().clearDirtyFlag();
if (newData != null) { newData = (JobDataMap) newData.clone(); newData.clearDirtyFlag();
if (newData != null) { newData = (JobDataMap) newData.clone(); newData.clearDirtyFlag();
if (newData != null) { newData = (JobDataMap)newData.clone(); newData.clearDirtyFlag();
if (newData != null) { newData = (JobDataMap)newData.clone(); newData.clearDirtyFlag();
job.getJobDataMap().clearDirtyFlag();
job.getJobDataMap().clearDirtyFlag();