com.google.appengine.api.blobstore.dev
Class BlobInfoStorage
- java.lang.Object
-
- com.google.appengine.api.blobstore.dev.BlobInfoStorage
-
public final class BlobInfoStorage extends java.lang.Object
BlobInfoStorage
provides persistence of blob metadata (in the form ofBlobInfo
objects). It usesDatastoreService
as its persistence mechanism.
-
-
Constructor Summary
Constructors Constructor and Description BlobInfoStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
deleteBlobInfo(com.google.appengine.api.blobstore.BlobKey blobKey)
Delete the metadata associated withblobKey
.protected com.google.appengine.api.datastore.Key
getMetadataKeyForBlobKey(com.google.appengine.api.blobstore.BlobKey blobKey)
com.google.appengine.api.blobstore.BlobInfo
loadBlobInfo(com.google.appengine.api.blobstore.BlobKey blobKey)
Load blob metadata forblobKey
.com.google.appengine.api.blobstore.BlobInfo
loadGsFileInfo(com.google.appengine.api.blobstore.BlobKey blobKey)
Load Google Storage file metadata for ablobKey
.void
saveBlobInfo(com.google.appengine.api.blobstore.BlobInfo blobInfo)
Save the metadata inblobInfo
.
-
-
-
Method Detail
-
loadBlobInfo
public com.google.appengine.api.blobstore.BlobInfo loadBlobInfo(com.google.appengine.api.blobstore.BlobKey blobKey)
Load blob metadata forblobKey
. Returnsnull
if no matching blob is found.
-
loadGsFileInfo
public com.google.appengine.api.blobstore.BlobInfo loadGsFileInfo(com.google.appengine.api.blobstore.BlobKey blobKey)
Load Google Storage file metadata for ablobKey
. Returnsnull
if no matching file is found.
-
saveBlobInfo
public void saveBlobInfo(com.google.appengine.api.blobstore.BlobInfo blobInfo)
Save the metadata inblobInfo
.
-
deleteBlobInfo
public void deleteBlobInfo(com.google.appengine.api.blobstore.BlobKey blobKey)
Delete the metadata associated withblobKey
.
-
getMetadataKeyForBlobKey
protected com.google.appengine.api.datastore.Key getMetadataKeyForBlobKey(com.google.appengine.api.blobstore.BlobKey blobKey)
-
-