public long getTimestamp(ModelPersistenceContext context, String objectTypeId, String objectId) throws ModelObjectPersisterException { // do not process if persister is disabled if (!isEnabled()) { return -1; } // determine the path of this object in the store String path = generatePath(objectTypeId, objectId); long timestamp = -1; try { timestamp = this.store.lastModified(path); } catch (IOException ioe) { throw new ModelObjectPersisterException("Unable to check timestamp for object path: " + path, ioe); } return timestamp; }
public long getTimestamp(ModelPersistenceContext context, String objectTypeId, String objectId) throws ModelObjectPersisterException { // do not process if persister is disabled if (!isEnabled()) { return -1; } // determine the path of this object in the store String path = generatePath(objectTypeId, objectId); long timestamp = -1; try { timestamp = this.store.lastModified(path); } catch (IOException ioe) { throw new ModelObjectPersisterException("Unable to check timestamp for object path: " + path, ioe); } return timestamp; }
try if (this.store.lastModified(path) > obj.getModificationTime())
try if (this.store.lastModified(path) > obj.getModificationTime())