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 aBlobInfoFactory
that uses the default implementation ofDatastoreService
.BlobInfoFactory
(DatastoreService datastoreService) Creates aBlobInfoFactory
with the specified implementation ofDatastoreService
. -
Method Summary
Modifier and TypeMethodDescriptioncreateBlobInfo
(Entity entity) @Nullable BlobInfo
loadBlobInfo
(BlobKey blobKey) Loads theBlobInfo
metadata forblobKey
.queryBlobInfosAfter
(@Nullable BlobKey previousBlob) Queries forBlobInfo
instances, beginning at the blob followingpreviousBlob
in 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 aBlobInfoFactory
that uses the default implementation ofDatastoreService
. -
BlobInfoFactory
Creates aBlobInfoFactory
with the specified implementation ofDatastoreService
.
-
-
Method Details
-
loadBlobInfo
-
queryBlobInfos
-
queryBlobInfosAfter
Queries forBlobInfo
instances, beginning at the blob followingpreviousBlob
in lexicographic order. IfpreviousBlob
is null, the first blob will be returned.This is useful for displaying discrete pages of blobs.
-
createBlobInfo
-