public BlobId getBlobId() { return new BlobId(getBlob()); }
/** * @return the blob ref encoded as a string, using the syntax {@code store@node:blob-id} */ public String toString() { return String.format("%s@%s:%s", getStore(), getNode(), getBlob()); }
private void updateDocWithNewName(final String originalName, final String newName, final ODocument doc) { BlobRef blobRef = BlobRef.parse(doc.field("blob_ref", String.class)); if (blobRef.getStore().equals(originalName)) { doc.field("blob_ref", new BlobRef(blobRef.getNode(), newName, blobRef.getBlob())).save(); } }