TEntity - the type parameterTOperations - the type parameterpublic abstract class OrcEntityFetcher<TEntity extends ODataBaseEntity,TOperations extends OrcOperations> extends OrcFetcher<TEntity> implements Readable<TEntity>
clazz, parent, urlComponent| Constructor and Description |
|---|
OrcEntityFetcher(java.lang.String urlComponent,
OrcExecutable parent,
java.lang.Class<TEntity> clazz,
java.lang.Class<TOperations> operationClazz)
Instantiates a new OrcEntityFetcher.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture |
delete()
Deletes
|
OrcEntityFetcher<TEntity,TOperations> |
expand(java.lang.String expand)
Expand OrcCollectionFetcher.
|
TOperations |
getOperations()
Gets operations.
|
protected com.google.common.util.concurrent.ListenableFuture<OrcResponse> |
oDataExecute(Request request)
OData execute.
|
com.google.common.util.concurrent.ListenableFuture<TEntity> |
read()
Reads
|
com.google.common.util.concurrent.ListenableFuture<java.lang.String> |
readRaw()
Reads raw
|
OrcEntityFetcher<TEntity,TOperations> |
select(java.lang.String select)
Select OrcCollectionFetcher.
|
com.google.common.util.concurrent.ListenableFuture<TEntity> |
update(TEntity updatedEntity)
Updates the given entity.
|
com.google.common.util.concurrent.ListenableFuture<TEntity> |
update(TEntity updatedEntity,
boolean update)
Updates the given entity.
|
com.google.common.util.concurrent.ListenableFuture<java.lang.String> |
updateRaw(java.lang.String payload,
boolean update)
Updates the given entity.
|
addByteArrayResultCallback, getResolver, setSelectorUrladdCustomHeader, addCustomParameter, as, getHeaders, getParameters, logpublic OrcEntityFetcher(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 clazzprotected com.google.common.util.concurrent.ListenableFuture<OrcResponse> oDataExecute(Request request)
OrcExecutableoDataExecute in class OrcExecutablerequest - the requestpublic com.google.common.util.concurrent.ListenableFuture<TEntity> update(TEntity updatedEntity)
updatedEntity - the updated entitypublic com.google.common.util.concurrent.ListenableFuture<TEntity> update(TEntity updatedEntity, boolean update)
updatedEntity - the updated entityupdate - overridepublic com.google.common.util.concurrent.ListenableFuture<java.lang.String> updateRaw(java.lang.String payload,
boolean update)
payload - the updated entitypublic com.google.common.util.concurrent.ListenableFuture delete()
public com.google.common.util.concurrent.ListenableFuture<TEntity> read()
read in interface Readable<TEntity extends ODataBaseEntity>public com.google.common.util.concurrent.ListenableFuture<java.lang.String> readRaw()
readRaw in interface Readable<TEntity extends ODataBaseEntity>readRaw in class OrcFetcher<TEntity extends ODataBaseEntity>public OrcEntityFetcher<TEntity,TOperations> select(java.lang.String select)
select - the selectpublic OrcEntityFetcher<TEntity,TOperations> expand(java.lang.String expand)
expand - the expandpublic TOperations getOperations()