/** * Look in the backend for a record matching the given identifier. Returns true * if such a record exists. * * @param identifier - An identifier for the record. * @return true if a record for the provided identifier can be found. */ public boolean exists(final DataIdentifier identifier) { try { if (identifier != null) { return backend.exists(identifier); } } catch (DataStoreException e) { LOG.warn(String.format("Data Store Exception caught checking for %s in pending uploads", identifier), e); } return false; }
/** * Look in the backend for a record matching the given identifier. Returns true * if such a record exists. * * @param identifier - An identifier for the record. * @return true if a record for the provided identifier can be found. */ public boolean exists(final DataIdentifier identifier) { try { if (identifier != null) { return backend.exists(identifier); } } catch (DataStoreException e) { LOG.warn(String.format("Data Store Exception caught checking for %s in pending uploads", identifier), e); } return false; }
/** * Look in the backend for a record matching the given identifier. Returns true * if such a record exists. * * @param identifier - An identifier for the record. * @return true if a record for the provided identifier can be found. */ public boolean exists(final DataIdentifier identifier) { try { if (identifier != null) { return backend.exists(identifier); } } catch (DataStoreException e) { LOG.warn(String.format("Data Store Exception caught checking for %s in pending uploads", identifier), e); } return false; }