public class Entity extends Object implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Field and Description |
|---|---|
protected com.github.davidmoten.odata.client.internal.ChangedFields |
changedFields |
protected com.github.davidmoten.odata.client.ContextPath |
contextPath |
protected String |
id |
protected String |
odataType |
protected com.github.davidmoten.odata.client.internal.UnmappedFields |
unmappedFields |
| Modifier | Constructor and Description |
|---|---|
protected |
Entity() |
| Modifier and Type | Method and Description |
|---|---|
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<String> |
getId() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
Entity |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
Entity |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
Entity |
withId(String id) |
protected com.github.davidmoten.odata.client.ContextPath contextPath
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected com.github.davidmoten.odata.client.internal.ChangedFields changedFields
protected String odataType
protected String id
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypepublic com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypepublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypepublic Entity patch()
this with changed fields reset.this with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic Entity put()
this
with changed fields reset (they were ignored anyway).this with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedCopyright © 2018–2020. All rights reserved.