|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.api.blobstore.BlobInfoFactory
public class 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 | |
---|---|
static java.lang.String |
CONTENT_TYPE
|
static java.lang.String |
CREATION
|
static java.lang.String |
FILENAME
|
static java.lang.String |
KIND
|
static java.lang.String |
SIZE
|
Constructor Summary | |
---|---|
BlobInfoFactory()
Creates a BlobInfoFactory that uses the default
implementation of DatastoreService . |
|
BlobInfoFactory(DatastoreService datastoreService)
Creates a BlobInfoFactory with the specified
implementation of DatastoreService . |
Method Summary | |
---|---|
BlobInfo |
createBlobInfo(Entity entity)
Creates a BlobInfo by extracting content from the
specified Entity . |
BlobInfo |
loadBlobInfo(BlobKey blobKey)
Loads the BlobInfo metadata for blobKey . |
java.util.Iterator<BlobInfo> |
queryBlobInfos()
Queries for BlobInfo instances, beginning with the BlobKey that appears first in lexicographic order. |
java.util.Iterator<BlobInfo> |
queryBlobInfosAfter(BlobKey previousBlob)
Queries for BlobInfo instances, beginning at the blob
following previousBlob in lexicographic order. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KIND
public static final java.lang.String CONTENT_TYPE
public static final java.lang.String CREATION
public static final java.lang.String FILENAME
public static final java.lang.String SIZE
Constructor Detail |
---|
public BlobInfoFactory()
BlobInfoFactory
that uses the default
implementation of DatastoreService
.
public BlobInfoFactory(DatastoreService datastoreService)
BlobInfoFactory
with the specified
implementation of DatastoreService
.
Method Detail |
---|
public BlobInfo loadBlobInfo(BlobKey blobKey)
BlobInfo
metadata for blobKey
. Returns
null
if no matching blob is found.
public java.util.Iterator<BlobInfo> queryBlobInfos()
BlobInfo
instances, beginning with the BlobKey
that appears first in lexicographic order.
public java.util.Iterator<BlobInfo> queryBlobInfosAfter(BlobKey previousBlob)
BlobInfo
instances, beginning at the blob
following previousBlob
in lexicographic order. If previousBlob
is null, the first blob will be returned.
This is useful for displaying discrete pages of blobs.
public BlobInfo createBlobInfo(Entity entity)
BlobInfo
by extracting content from the
specified Entity
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |