Class BlobInfoFactory
- java.lang.Object
-
- com.google.appengine.api.blobstore.BlobInfoFactory
-
public class BlobInfoFactory extends Object
BlobInfoFactoryprovides a trivial interface for retrievingBlobInfometadata.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 aBlobInfoFactorythat uses the default implementation ofDatastoreService.BlobInfoFactory(DatastoreService datastoreService)Creates aBlobInfoFactorywith the specified implementation ofDatastoreService.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobInfocreateBlobInfo(Entity entity)@Nullable BlobInfoloadBlobInfo(BlobKey blobKey)Loads theBlobInfometadata forblobKey.Iterator<BlobInfo>queryBlobInfos()Iterator<BlobInfo>queryBlobInfosAfter(@Nullable BlobKey previousBlob)Queries forBlobInfoinstances, beginning at the blob followingpreviousBlobin 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 aBlobInfoFactorythat uses the default implementation ofDatastoreService.
-
BlobInfoFactory
public BlobInfoFactory(DatastoreService datastoreService)
Creates aBlobInfoFactorywith the specified implementation ofDatastoreService.
-
-
Method Detail
-
queryBlobInfosAfter
public Iterator<BlobInfo> queryBlobInfosAfter(@Nullable BlobKey previousBlob)
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.
-
-