public class FetchQuery<T extends CDAResource> extends AbsQuery<T,FetchQuery<T>>
Constructor and Description |
---|
FetchQuery(java.lang.Class<T> type,
CDAClient client)
Create a FetchQuery for the given type, using the client.
|
Modifier and Type | Method and Description |
---|---|
CDAArray |
all()
Fetch and return all resources matching the type of this query.
|
<C extends CDACallback<CDAArray>> |
all(C callback)
Async fetch all resources matching the type of this query.
|
T |
one(java.lang.String id)
Fetch and return a resource matching the given
id . |
<C extends CDACallback<T>> |
one(java.lang.String id,
C callback)
Async fetch resource matching the given
id . |
include, limit, linksToAssetId, linksToEntryId, orderBy, orderBy, reverseOrderBy, select, select, skip, where, where, withContentType
public T one(java.lang.String id)
id
.id
- resource id.public <C extends CDACallback<T>> C one(java.lang.String id, C callback)
id
.C
- callback type.id
- resource id.callback
- callback.callback
instance.public CDAArray all()
CDAArray
result.public <C extends CDACallback<CDAArray>> C all(C callback)
C
- callback type.callback
- callback.callback
instance.Copyright © 2019 Contentful, GmbH.. All Rights Reserved.