Class BlobInfoFactory
java.lang.Object
com.google.appengine.api.blobstore.BlobInfoFactory
BlobInfoFactory provides a trivial interface for retrieving
BlobInfo metadata.
BlobInfo metadata is stored in read-only __BlobInfo__
entities in the datastore. This class provides an easy way to
access these entities. For more complex queries, you can use the
datastore directly.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates aBlobInfoFactorythat uses the default implementation ofDatastoreService.BlobInfoFactory(DatastoreService datastoreService) Creates aBlobInfoFactorywith the specified implementation ofDatastoreService. -
Method Summary
Modifier and TypeMethodDescriptioncreateBlobInfo(Entity entity) @Nullable BlobInfoloadBlobInfo(BlobKey blobKey) Loads theBlobInfometadata forblobKey.queryBlobInfosAfter(@Nullable BlobKey previousBlob) Queries forBlobInfoinstances, beginning at the blob followingpreviousBlobin lexicographic order.
-
Field Details
-
KIND
- See Also:
-
CONTENT_TYPE
- See Also:
-
CREATION
- See Also:
-
FILENAME
- See Also:
-
SIZE
- See Also:
-
MD5_HASH
- See Also:
-
GS_OBJECT_NAME
- See Also:
-
-
Constructor Details
-
BlobInfoFactory
public BlobInfoFactory()Creates aBlobInfoFactorythat uses the default implementation ofDatastoreService. -
BlobInfoFactory
Creates aBlobInfoFactorywith the specified implementation ofDatastoreService.
-
-
Method Details
-
loadBlobInfo
-
queryBlobInfos
-
queryBlobInfosAfter
Queries forBlobInfoinstances, beginning at the blob followingpreviousBlobin lexicographic order. IfpreviousBlobis null, the first blob will be returned.This is useful for displaying discrete pages of blobs.
-
createBlobInfo
-