Class BlobInfoFactory
- java.lang.Object
-
- com.google.appengine.api.blobstore.BlobInfoFactory
-
public class BlobInfoFactory extends Object
BlobInfoFactory
provides a trivial interface for retrievingBlobInfo
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.
-
-
Constructor Summary
Constructors Constructor Description BlobInfoFactory()
Creates aBlobInfoFactory
that uses the default implementation ofDatastoreService
.BlobInfoFactory(DatastoreService datastoreService)
Creates aBlobInfoFactory
with the specified implementation ofDatastoreService
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobInfo
createBlobInfo(Entity entity)
@Nullable BlobInfo
loadBlobInfo(BlobKey blobKey)
Loads theBlobInfo
metadata forblobKey
.Iterator<BlobInfo>
queryBlobInfos()
Iterator<BlobInfo>
queryBlobInfosAfter(@Nullable BlobKey previousBlob)
Queries forBlobInfo
instances, beginning at the blob followingpreviousBlob
in lexicographic order.
-
-
-
Field Detail
-
KIND
public static final String KIND
- See Also:
- Constant Field Values
-
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
-
CREATION
public static final String CREATION
- See Also:
- Constant Field Values
-
FILENAME
public static final String FILENAME
- See Also:
- Constant Field Values
-
SIZE
public static final String SIZE
- See Also:
- Constant Field Values
-
MD5_HASH
public static final String MD5_HASH
- See Also:
- Constant Field Values
-
GS_OBJECT_NAME
public static final String GS_OBJECT_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BlobInfoFactory
public BlobInfoFactory()
Creates aBlobInfoFactory
that uses the default implementation ofDatastoreService
.
-
BlobInfoFactory
public BlobInfoFactory(DatastoreService datastoreService)
Creates aBlobInfoFactory
with the specified implementation ofDatastoreService
.
-
-
Method Detail
-
queryBlobInfosAfter
public Iterator<BlobInfo> queryBlobInfosAfter(@Nullable BlobKey previousBlob)
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.
-
-