TEntity - the type parameterTFetcher - the type parameterTOperations - the type parameterpublic class OrcCollectionFetcher<TEntity,TFetcher extends OrcEntityFetcher,TOperations extends OrcOperations> extends OrcFetcher<TEntity> implements Readable<java.util.List<TEntity>>
clazz, parent, urlComponent| Constructor and Description |
|---|
OrcCollectionFetcher(java.lang.String urlComponent,
OrcExecutable parent,
java.lang.Class<TEntity> clazz,
java.lang.Class<TOperations> operationClazz)
Instantiates a new OrcCollectionFetcher.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<TEntity> |
add(TEntity entity)
Add listenable future.
|
OrcCollectionFetcher<TEntity,TFetcher,TOperations> |
addHeader(java.lang.String name,
java.lang.String value)
Add header.
|
OrcCollectionFetcher<TEntity,TFetcher,TOperations> |
addParameter(java.lang.String name,
java.lang.Object value)
Add parameter.
|
com.google.common.util.concurrent.ListenableFuture<java.lang.String> |
addRaw(java.lang.String payload)
Add raw.
|
OrcCollectionFetcher<TEntity,TFetcher,TOperations> |
expand(java.lang.String expand)
Expand OrcCollectionFetcher.
|
OrcCollectionFetcher<TEntity,TFetcher,TOperations> |
filter(java.lang.String filter)
Filter OrcCollectionFetcher.
|
TFetcher |
getById(java.lang.String id)
Gets by id.
|
TOperations |
getOperations()
Gets operations.
|
protected com.google.common.util.concurrent.ListenableFuture<OrcResponse> |
oDataExecute(Request request)
OData execute.
|
OrcCollectionFetcher<TEntity,TFetcher,TOperations> |
orderBy(java.lang.String orderBy)
Order OrcCollectionFetcher.
|
com.google.common.util.concurrent.ListenableFuture<java.util.List<TEntity>> |
read()
Reads
|
com.google.common.util.concurrent.ListenableFuture<java.lang.String> |
readRaw()
Reads raw
|
void |
reset()
Reset void.
|
OrcCollectionFetcher<TEntity,TFetcher,TOperations> |
select(java.lang.String select)
Select OrcCollectionFetcher.
|
protected void |
setPathForCollections(OrcURL url,
java.lang.String urlComponent,
int top,
int skip,
java.lang.String select,
java.lang.String expand,
java.lang.String filter,
java.lang.String orderBy)
Sets path for collections.
|
OrcCollectionFetcher<TEntity,TFetcher,TOperations> |
skip(int skip)
Skip OrcCollectionFetcher.
|
OrcCollectionFetcher<TEntity,TFetcher,TOperations> |
top(int top)
Top OrcCollectionFetcher.
|
addByteArrayResultCallback, getResolver, setSelectorUrladdCustomHeader, addCustomParameter, as, getHeaders, getParameters, logpublic OrcCollectionFetcher(java.lang.String urlComponent,
OrcExecutable parent,
java.lang.Class<TEntity> clazz,
java.lang.Class<TOperations> operationClazz)
urlComponent - the url componentparent - the parentclazz - the clazzoperationClazz - the operation clazzpublic void reset()
public OrcCollectionFetcher<TEntity,TFetcher,TOperations> top(int top)
top - the toppublic OrcCollectionFetcher<TEntity,TFetcher,TOperations> skip(int skip)
skip - the skippublic OrcCollectionFetcher<TEntity,TFetcher,TOperations> select(java.lang.String select)
select - the selectpublic OrcCollectionFetcher<TEntity,TFetcher,TOperations> expand(java.lang.String expand)
expand - the expandpublic OrcCollectionFetcher<TEntity,TFetcher,TOperations> filter(java.lang.String filter)
filter - the filterpublic OrcCollectionFetcher<TEntity,TFetcher,TOperations> orderBy(java.lang.String orderBy)
orderBy - the orderBypublic TFetcher getById(java.lang.String id)
id - the idprotected com.google.common.util.concurrent.ListenableFuture<OrcResponse> oDataExecute(Request request)
OrcExecutableoDataExecute in class OrcExecutablerequest - the requestpublic com.google.common.util.concurrent.ListenableFuture<java.util.List<TEntity>> read()
public com.google.common.util.concurrent.ListenableFuture<java.lang.String> readRaw()
public com.google.common.util.concurrent.ListenableFuture<TEntity> add(TEntity entity)
entity - the entitypublic com.google.common.util.concurrent.ListenableFuture<java.lang.String> addRaw(java.lang.String payload)
payload - the payloadpublic TOperations getOperations()
public OrcCollectionFetcher<TEntity,TFetcher,TOperations> addParameter(java.lang.String name, java.lang.Object value)
name - the namevalue - the valuepublic OrcCollectionFetcher<TEntity,TFetcher,TOperations> addHeader(java.lang.String name, java.lang.String value)
name - the namevalue - the valueprotected void setPathForCollections(OrcURL url, java.lang.String urlComponent, int top, int skip, java.lang.String select, java.lang.String expand, java.lang.String filter, java.lang.String orderBy)
url - the urlurlComponent - the url componenttop - the topskip - the skipselect - the selectexpand - the expandfilter - the filterorderBy - the order by